/*
Theme Name: Ansh Himachali
Theme URI: https://anshhimachali.com/
Description: Lightweight custom theme for Ansh Himachali Blogs. No page builder required.
Author: Ansh Himachali
Version: 1.2.0
Requires at least: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: ansh
*/

/* ---------- Tokens ---------- */
:root {
	--bg: #ffffff;
	--bg-soft: #f6f7f4;
	--bg-green: #eef3ee;
	--ink: #1a2420;
	--ink-soft: #3b4540;
	--muted: #6b746f;
	--line: #e5e8e3;
	--brand: #1f5a44;
	--brand-dark: #16432f;
	--brand-soft: #e6f0ea;
	--forest: #102b22;
	--gold: #e5b567;
	--radius: 14px;
	--radius-sm: 8px;
	--shadow: 0 2px 10px rgba(16, 43, 34, .06);
	--shadow-lift: 0 14px 34px rgba(16, 43, 34, .12);
	--font: "Noto Sans", "Noto Sans Devanagari", "Nirmala UI", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
	--font-head: "Lora", "Noto Sans Devanagari", Georgia, "Times New Roman", serif;
	--container: 1200px;
	--narrow: 760px;
	--gutter: clamp(16px, 4vw, 32px);
	--header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); scroll-behavior: smooth; }
body {
	margin: 0; background: var(--bg); color: var(--ink);
	font-family: var(--font); font-size: 1rem; font-weight: 400; line-height: 1.7;
	-webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--brand); text-underline-offset: .2em; }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); font-weight: 600; line-height: 1.35; margin: 0 0 .6em; color: var(--ink); overflow-wrap: break-word; }
strong, b { font-weight: 600; }
p { margin: 0 0 1.1em; }
button, input, textarea, select { font: inherit; color: inherit; }

.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;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0;
	left: 12px; top: 12px; z-index: 1000; padding: 10px 16px;
	background: #fff; color: var(--brand); border-radius: var(--radius-sm); box-shadow: var(--shadow-lift);
}

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container.narrow { max-width: calc(var(--narrow) + 2 * var(--gutter)); }
.site-main { display: block; min-height: 60vh; }
.site-main:focus { outline: none; }

.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-fill { fill: currentColor; stroke: none; }

.eyebrow { font-family: var(--font); font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--brand); margin: 0 0 10px; }

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 46px; padding: 10px 24px; border: 1.5px solid transparent; border-radius: 999px;
	background: var(--brand); color: #fff; font-size: .95rem; font-weight: 500; text-decoration: none; cursor: pointer;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover { background: var(--brand-dark); color: #fff; }
.btn .icon { width: 17px; height: 17px; transition: transform .2s ease; }
.btn:hover .icon { transform: translateX(3px); }
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .85); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-sm { min-height: 42px; padding: 8px 20px; font-size: .9rem; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line);
	transition: transform .35s cubic-bezier(.4, 0, .2, 1), box-shadow .3s ease;
	will-change: transform;
}
.header-scrolled .site-header { box-shadow: 0 6px 24px rgba(16, 43, 34, .08); }
.header-hidden .site-header { transform: translateY(-100%); box-shadow: none; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

.header-inner { position: relative; display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; flex: none; }
.brand:hover { color: var(--ink); }
.brand-logo { width: 46px; height: 46px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-name { font-family: var(--font-head); font-size: 1.3rem; font-weight: 600; white-space: nowrap; }
.brand-tag { font-size: .62rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); white-space: nowrap; margin-top: 2px; }

.site-nav { margin-inline: auto; }
.site-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.site-nav .menu a {
	position: relative; display: block; padding: 10px 12px;
	color: var(--ink-soft); font-size: .92rem; font-weight: 500; text-decoration: none; white-space: nowrap;
	transition: color .2s ease;
}
.site-nav .menu a:hover { color: var(--brand); }
.site-nav .current-menu-item > a, .site-nav .current_page_item > a { color: var(--brand); }
@media (min-width: 1100px) {
	.site-nav .current-menu-item > a::after, .site-nav .current_page_item > a::after {
		content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--brand);
	}
}
.site-nav .sub-menu { display: none; }

.header-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.header-search .search-form { width: 210px; }
.header-search .search-form input[type="search"] { height: 42px; border-radius: 999px; font-size: .88rem; padding-left: 16px; background: var(--bg-soft); }
.header-search .search-form .btn { background: transparent; color: var(--ink-soft); width: 36px; height: 36px; top: 3px; right: 3px; }
.header-search .search-form .btn:hover { color: var(--brand); }
.icon-btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border: 0; border-radius: 999px;
	background: transparent; color: var(--ink-soft); cursor: pointer;
}
.icon-btn:hover { background: var(--bg-soft); color: var(--brand); }
.nav-toggle { position: relative; }
.nav-toggle .icon { position: absolute; top: 50%; left: 50%; margin: -10px 0 0 -10px; transition: transform .3s ease, opacity .2s ease; }
.nav-toggle .icon-close { opacity: 0; transform: rotate(-90deg) scale(.6); }
.nav-open .nav-toggle .icon-open { opacity: 0; transform: rotate(90deg) scale(.6); }
.nav-open .nav-toggle .icon-close { opacity: 1; transform: none; }
.search-panel { border-top: 1px solid var(--line); background: #fff; padding-block: 14px; }
.search-panel[hidden] { display: none; }

@media (min-width: 1100px) {
	.search-toggle, .nav-toggle { display: none; }
}
@media (max-width: 1099.98px) {
	.header-search { display: none; }
	.header-inner { gap: 8px; }
	.brand { margin-right: auto; }
	/* Collapsible panel: animates height (grid 0fr -> 1fr), fade and slide. */
	.site-nav {
		display: grid; grid-template-rows: 0fr; margin: 0;
		position: absolute; left: 0; right: 0; top: 100%;
		background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
		box-shadow: 0 16px 30px rgba(16, 43, 34, .08);
		opacity: 0; visibility: hidden; transform: translateY(-6px);
		transition: grid-template-rows .35s cubic-bezier(.4, 0, .2, 1), opacity .25s ease, transform .35s cubic-bezier(.4, 0, .2, 1), visibility 0s linear .35s;
	}
	.nav-open .site-nav {
		grid-template-rows: 1fr; opacity: 1; visibility: visible; transform: none;
		transition: grid-template-rows .35s cubic-bezier(.4, 0, .2, 1), opacity .25s ease, transform .35s cubic-bezier(.4, 0, .2, 1), visibility 0s;
	}
	.site-nav > .menu { min-height: 0; overflow: hidden; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
	.site-nav .menu { flex-direction: column; align-items: stretch; gap: 0; padding: 0 var(--gutter); }
	.site-nav .menu li:first-child { margin-top: 6px; }
	.site-nav .menu li:last-child { margin-bottom: 12px; }
	.site-nav .menu li + li { border-top: 1px solid var(--line); }
	.site-nav .menu li { opacity: 0; transform: translateY(-8px); transition: opacity .2s ease, transform .25s ease; }
	.nav-open .site-nav .menu li { opacity: 1; transform: none; transition: opacity .3s ease, transform .35s ease; }
	.nav-open .site-nav .menu li:nth-child(1) { transition-delay: .06s; }
	.nav-open .site-nav .menu li:nth-child(2) { transition-delay: .1s; }
	.nav-open .site-nav .menu li:nth-child(3) { transition-delay: .14s; }
	.nav-open .site-nav .menu li:nth-child(4) { transition-delay: .18s; }
	.nav-open .site-nav .menu li:nth-child(5) { transition-delay: .22s; }
	.nav-open .site-nav .menu li:nth-child(n+6) { transition-delay: .26s; }
	.site-nav .menu a { padding: 14px 2px; font-size: 1rem; }
}
@media (max-width: 640px) {
	.header-cta { display: none; }
	.brand-name { font-size: 1.15rem; }
	.brand-logo { width: 40px; height: 40px; }
}
@media (max-width: 360px) {
	.brand-tag { display: none; }
}

/* ---------- Search form ---------- */
.search-form { position: relative; display: flex; width: 100%; max-width: 560px; }
.search-form input[type="search"] {
	flex: 1; min-width: 0; height: 50px; padding: 10px 58px 10px 20px;
	border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 1rem;
	-webkit-appearance: none; appearance: none;
}
.search-form input[type="search"]:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.search-form .btn { position: absolute; right: 5px; top: 5px; width: 40px; height: 40px; min-height: 0; padding: 0; border-radius: 50%; }
.search-form .btn:hover .icon { transform: none; }

/* ---------- Hero ---------- */
.hero {
	position: relative; isolation: isolate; overflow: hidden;
	display: flex; align-items: center;
	min-height: clamp(460px, 64vh, 580px);
	padding-block: 64px 120px;
	background: var(--forest); color: #fff;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(90deg, rgba(8, 20, 15, .82) 0%, rgba(8, 20, 15, .58) 38%, rgba(8, 20, 15, .12) 70%, rgba(8, 20, 15, 0) 100%);
}
.hero-inner { position: static; }
.hero .eyebrow { color: #f1d7a8; }
.hero-title { color: #fff; font-size: clamp(2.3rem, 5.6vw, 4.1rem); font-weight: 600; line-height: 1.08; letter-spacing: -.01em; margin-bottom: 20px; max-width: 17ch; }
.hero-title span { display: block; color: var(--gold); }
.hero-lead { font-size: clamp(1rem, 1.8vw, 1.15rem); line-height: 1.7; color: rgba(255, 255, 255, .9); max-width: 34rem; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-script {
	position: absolute; right: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); bottom: 96px; margin: 0;
	font-family: var(--font-head); font-style: italic; font-weight: 500; font-size: 1.6rem; line-height: 1.25;
	color: rgba(255, 255, 255, .92); text-align: left; transform: rotate(-6deg);
}
.hero-script::after { content: ""; display: block; width: 26px; height: 2px; margin: 8px 0 0 auto; background: rgba(255, 255, 255, .8); }
@media (max-width: 899.98px) {
	.hero::before { background: linear-gradient(180deg, rgba(8, 20, 15, .55) 0%, rgba(8, 20, 15, .78) 100%); }
	.hero-script { display: none; }
}
@media (max-width: 560px) {
	.hero { padding-block: 48px 104px; min-height: 480px; }
}

/* ---------- Topic tiles ---------- */
.topics-wrap { position: relative; z-index: 2; margin-top: -64px; }
.topics {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(2, 1fr);
	background: #fff; border-radius: var(--radius); box-shadow: 0 12px 40px rgba(16, 43, 34, .12); overflow: hidden;
}
@media (min-width: 640px) { .topics { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .topics { grid-template-columns: repeat(6, 1fr); } }
.topics li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.topic {
	display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px;
	height: 100%; padding: 22px 12px 20px; text-decoration: none; color: var(--ink);
	transition: background-color .2s ease;
}
.topic:hover { background: var(--bg-green); color: var(--ink); }
.topic-icon { width: 38px; height: 38px; color: var(--brand); stroke-width: 1.5; margin-bottom: 10px; transition: transform .25s ease; }
.topic:hover .topic-icon { transform: translateY(-3px); }
.topic-title { font-weight: 600; font-size: .98rem; }
.topic-sub { font-size: .8rem; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(44px, 6vw, 72px); }
.section-tight { padding-bottom: clamp(20px, 3vw, 32px); }
.section-tight + .section-tight { padding-top: clamp(24px, 3vw, 40px); padding-bottom: clamp(44px, 6vw, 72px); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 20px; margin-bottom: 28px; flex-wrap: wrap; }
.section-title { font-size: clamp(1.6rem, 3.2vw, 2.1rem); margin: 0; }
.section-sub { color: var(--muted); font-size: .95rem; margin: 6px 0 0; }
.view-all { display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-size: .92rem; font-weight: 500; text-decoration: none; padding-bottom: 6px; }
.view-all .icon { width: 16px; height: 16px; transition: transform .2s ease; }
.view-all:hover .icon { transform: translateX(3px); }

/* Inner page banner */
.page-hero {
	position: relative; isolation: isolate; overflow: hidden;
	background: var(--forest); color: #fff;
	padding-block: clamp(40px, 7vw, 76px);
}
.page-hero::before {
	content: ""; position: absolute; inset: 0; z-index: -2;
	background-image: var(--hero-img); background-size: cover; background-position: 62% 40%;
}
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 20, 15, .88), rgba(8, 20, 15, .62)); }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 4.4vw, 2.8rem); margin-bottom: 10px; max-width: 26ch; }
.page-hero .eyebrow { color: #f1d7a8; }
.page-hero .lead { color: rgba(255, 255, 255, .88); max-width: 680px; }
.page-hero .lead p:last-child { margin-bottom: 0; }
.page-hero-meta { color: rgba(255, 255, 255, .75); font-size: .92rem; margin: 0; }
.page-hero .search-form { margin-top: 22px; }
.page-hero .search-form input[type="search"] { border-color: transparent; }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: .85rem; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); text-decoration: underline; }
.breadcrumb .sep { opacity: .5; }
.page-hero .breadcrumb { color: rgba(255, 255, 255, .75); }
.page-hero .breadcrumb a:hover { color: #fff; }

.filter-bar { margin-bottom: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chip {
	display: inline-flex; align-items: center; min-height: 38px; padding: 6px 16px;
	background: #fff; border: 1px solid var(--line); border-radius: 999px;
	color: var(--ink-soft); font-size: .9rem; font-weight: 500; text-decoration: none;
	transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- Cards ---------- */
.post-grid { display: grid; grid-template-columns: 1fr; gap: 28px 24px; }
@media (min-width: 640px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 28px; } }

.card {
	position: relative; display: flex; flex-direction: column; min-width: 0;
	background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
	border: 1px solid var(--line); overflow: hidden;
	transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card:focus-within { box-shadow: 0 0 0 2px var(--brand), var(--shadow-lift); }
.card-media { position: relative; flex: none; width: 100%; aspect-ratio: 16 / 10; background: var(--bg-green); }
.card-media img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; border-radius: 0; }
.card-cat {
	position: absolute; left: 16px; bottom: -13px; z-index: 2;
	display: inline-flex; align-items: center; height: 26px; padding: 0 12px;
	background: var(--brand); color: #fff; border-radius: 999px;
	font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
	box-shadow: 0 2px 6px rgba(16, 43, 34, .2);
}
.card-cat:hover { background: var(--brand-dark); color: #fff; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 26px 20px 20px; }
.card-title { font-size: 1.15rem; line-height: 1.5; margin: 0 0 16px; }
.card-title a {
	color: var(--ink); text-decoration: none;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card:hover .card-title a { color: var(--brand); }
.card-meta { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; font-size: .82rem; color: var(--muted); }
.card-meta span { display: inline-flex; align-items: center; gap: 6px; }
.card-meta .icon { width: 15px; height: 15px; }

.no-results { text-align: center; padding: 48px 16px; background: var(--bg-soft); border-radius: var(--radius); }
.no-results .search-form { margin: 18px auto 0; }
.no-results .chips { justify-content: center; margin-top: 16px; }

/* ---------- Pagination ---------- */
.pagination { margin-top: clamp(40px, 5vw, 56px); }
.pagination ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pagination a.page-numbers, .pagination span.page-numbers {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	min-width: 44px; height: 44px; padding: 0 14px;
	background: #fff; border: 1px solid var(--line); border-radius: 999px;
	color: var(--ink-soft); font-weight: 500; font-size: .95rem; text-decoration: none;
}
.pagination a.page-numbers:hover { border-color: var(--brand); color: var(--brand); }
.pagination .page-numbers.current { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination .page-numbers.dots { border: 0; background: none; min-width: 20px; padding: 0; }
.pagination .icon { width: 16px; height: 16px; }
@media (max-width: 480px) {
	.pagination .nav-label { display: none; }
	.pagination a.page-numbers, .pagination span.page-numbers { min-width: 40px; height: 40px; padding: 0 10px; }
}

/* ---------- Newsletter band ---------- */
/* Background image path is relative to the built file in assets/css/. */
.nl-band {
	position: relative; overflow: hidden;
	background: #eef3ee url("../img/cta-bg.webp") center bottom / cover no-repeat;
	padding-block: clamp(56px, 8vw, 104px) clamp(72px, 10vw, 128px);
}
.nl-inner { position: relative; display: grid; gap: 20px 40px; align-items: center; }
@media (min-width: 900px) { .nl-inner { grid-template-columns: 1fr 1.1fr auto; } }
.nl-copy h2 { font-size: clamp(1.6rem, 3vw, 2rem); margin-bottom: 8px; }
.nl-copy p:last-child { color: var(--ink-soft); margin: 0; font-size: .95rem; }
.newsletter-form { display: flex; gap: 10px; margin: 0; width: 100%; }
.newsletter-form input[type="email"] {
	flex: 1; min-width: 0; height: 50px; padding: 10px 18px;
	border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink);
}
.newsletter-form input[type="email"]:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31, 90, 68, .15); }
.newsletter-form button {
	display: inline-flex; align-items: center; gap: 8px;
	height: 50px; padding: 0 22px; border: 0; border-radius: var(--radius-sm);
	background: var(--forest); color: #fff; font-weight: 500; cursor: pointer; white-space: nowrap;
}
.newsletter-form button:hover { background: var(--brand); }
.newsletter-form button .icon { width: 16px; height: 16px; }
.nl-note { font-size: .8rem; color: var(--muted); margin: 10px 0 0; }
.subscription-message { margin-top: 8px; font-weight: 500; color: var(--brand-dark); }
.nl-script { margin: 0; font-family: var(--font-head); font-style: italic; font-weight: 500; font-size: 1.35rem; line-height: 1.3; color: var(--ink-soft); transform: rotate(-6deg); }
@media (max-width: 899.98px) { .nl-script { display: none; } }
@media (max-width: 420px) { .newsletter-form { flex-direction: column; } .newsletter-form button { justify-content: center; } }

/* ---------- Single post ---------- */
.entry-header { padding-top: clamp(28px, 5vw, 48px); padding-bottom: 24px; }
.entry-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.entry-cats a {
	display: inline-flex; align-items: center; height: 26px; padding: 0 12px;
	background: var(--brand); color: #fff; border-radius: 999px;
	font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
}
.entry-cats a:hover { background: var(--brand-dark); }
.entry-title { font-size: clamp(1.7rem, 3.8vw, 2.4rem); line-height: 1.4; margin-bottom: 18px; }
.entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; color: var(--muted); font-size: .9rem; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.entry-meta span { display: inline-flex; align-items: center; gap: 7px; }
.entry-meta .icon { width: 16px; height: 16px; }
.entry-meta img { width: 28px; height: 28px; border-radius: 50%; }
.entry-hero { margin: 4px auto clamp(28px, 4vw, 44px); max-width: calc(1000px + 2 * var(--gutter)); }
.entry-hero img { width: 100%; border-radius: var(--radius); aspect-ratio: 16 / 9; object-fit: cover; }
.entry-hero figcaption { color: var(--muted); font-size: .85rem; text-align: center; margin-top: 8px; }

/* Article typography: tuned for long Hindi reading */
.prose { font-size: 1.125rem; line-height: 1.9; color: #28302c; overflow-wrap: break-word; }
.prose > * { margin-top: 0; margin-bottom: 1.25em; }
.prose h2, .prose h3, .prose h4 { color: var(--ink); margin-top: 1.9em; margin-bottom: .65em; line-height: 1.5; }
.prose h2 { font-size: clamp(1.4rem, 2.8vw, 1.7rem); }
.prose h3 { font-size: clamp(1.2rem, 2.3vw, 1.35rem); }
.prose h4 { font-size: 1.1rem; }
.prose h2 strong, .prose h3 strong, .prose h4 strong { font-weight: 600; }
.prose a { color: var(--brand); text-decoration: underline; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--brand-dark); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--brand); }
.prose img { border-radius: var(--radius-sm); }
.prose figure { margin-inline: 0; }
.prose figcaption, .prose .wp-element-caption { color: var(--muted); font-size: .88rem; text-align: center; margin-top: 8px; }
.prose blockquote {
	margin-inline: 0; padding: 16px 22px; border-left: 3px solid var(--brand);
	background: var(--bg-green); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink);
	font-family: var(--font-head); font-style: italic;
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2em; }
.prose table { width: 100%; border-collapse: collapse; font-size: .98rem; line-height: 1.6; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--bg-soft); font-weight: 600; }
.prose .wp-block-table { overflow-x: auto; }
.prose .wp-block-embed__wrapper iframe { width: 100%; }
.prose .alignleft { float: left; margin: .3em 1.2em 1em 0; max-width: 50%; }
.prose .alignright { float: right; margin: .3em 0 1em 1.2em; max-width: 50%; }
.prose .aligncenter { margin-inline: auto; }
.prose::after { content: ""; display: table; clear: both; }
@media (max-width: 560px) {
	.prose { font-size: 1.0625rem; line-height: 1.85; }
	.prose .alignleft, .prose .alignright { float: none; max-width: 100%; margin: 0 0 1em; }
}

#ez-toc-container {
	background: var(--bg-soft) !important; border: 1px solid var(--line) !important;
	border-radius: var(--radius) !important; padding: 16px 20px !important; box-shadow: none !important;
	width: 100% !important; max-width: 100%;
}
#ez-toc-container .ez-toc-title { font-family: var(--font-head); font-weight: 600 !important; }
#ez-toc-container a { text-decoration: none; color: var(--ink-soft) !important; }
#ez-toc-container a:hover { color: var(--brand) !important; }
.rank-math-faq-item { background: var(--bg-soft); border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 12px; }
.rank-math-question { margin-top: 0 !important; font-size: 1.05rem !important; }
.addtoany_share_save_container { margin: 0 0 1.4em; }

.entry-footer { padding-bottom: 32px; }
.entry-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.entry-tags a { font-size: .85rem; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); text-decoration: none; }
.entry-tags a:hover { border-color: var(--brand); color: var(--brand); }

.post-navigation { border-top: 1px solid var(--line); padding-top: 28px; }
.post-navigation .nav-links { display: grid; gap: 14px; }
@media (min-width: 640px) { .post-navigation .nav-links { grid-template-columns: 1fr 1fr; } }
.post-navigation .nav-next { grid-column: -2; }
.post-navigation a {
	display: block; height: 100%; padding: 16px 18px; background: #fff;
	border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink);
	transition: border-color .2s ease, box-shadow .2s ease;
}
.post-navigation a:hover { border-color: var(--brand); box-shadow: var(--shadow); color: var(--ink); }
.post-navigation .nav-next a { text-align: right; }
.post-navigation .nav-subtitle { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: 4px; }
.post-navigation .nav-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-family: var(--font-head); font-weight: 600; line-height: 1.5; }

.related { background: var(--bg-soft); }

/* ---------- Pages ---------- */
.page-content { padding-block: clamp(36px, 5vw, 56px) clamp(48px, 7vw, 80px); }

.contact-form { display: grid; gap: 4px; background: var(--bg-soft); border-radius: var(--radius); padding: clamp(20px, 4vw, 32px); margin-top: 8px; font-family: var(--font); font-size: 1rem; line-height: 1.6; }
.contact-form p { margin: 0 0 12px; }
.contact-form .row-2 { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .contact-form .row-2 { grid-template-columns: 1fr 1fr; } }
.contact-form label { display: block; font-weight: 500; font-size: .92rem; color: var(--ink); margin-bottom: 6px; }
.contact-form label .opt { color: var(--muted); font-weight: 400; }
.contact-form input, .contact-form textarea {
	width: 100%; min-height: 48px; padding: 10px 14px;
	border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; font-size: 1rem;
}
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn { justify-self: start; }
.form-notice { padding: 12px 16px; border-radius: var(--radius-sm); font-weight: 500; margin-bottom: 8px; }
.form-notice.ok { background: var(--brand-soft); color: var(--brand-dark); }
.form-notice.err { background: #fdecea; color: #9b2c1f; }

/* ---------- Comments ---------- */
.comments { padding-block: 8px 48px; }
.comments-title { font-size: 1.35rem; }
.comment-list { list-style: none; margin: 0 0 32px; padding: 0; }
.comment-list .children { list-style: none; padding-left: clamp(12px, 4vw, 40px); }
.comment-body { background: var(--bg-soft); border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 12px; }
.comment-meta { font-size: .88rem; color: var(--muted); margin-bottom: 6px; }
.comment-author img { border-radius: 50%; vertical-align: middle; margin-right: 8px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff;
}
.comment-form .submit { min-height: 46px; padding: 10px 24px; border: 0; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 500; cursor: pointer; }

/* ---------- 404 ---------- */
.error-404 { text-align: center; }
.error-404 .big { font-family: var(--font-head); font-size: clamp(4rem, 14vw, 7rem); font-weight: 600; line-height: 1; color: var(--brand); opacity: .15; margin: 0 0 8px; }
.error-404 .search-form { margin: 24px auto 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest); color: #b7c4bd; font-size: .93rem; }
.site-footer a { color: #dfe8e3; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-top { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 24px; padding-block: clamp(48px, 6vw, 72px) 40px; }
.footer-top > .footer-brand, .footer-top > .footer-col:last-child { grid-column: 1 / -1; }
@media (min-width: 1024px) {
	.footer-top { grid-template-columns: 1.7fr .8fr .8fr 1.3fr; gap: 36px 32px; }
	.footer-top > .footer-brand, .footer-top > .footer-col:last-child { grid-column: auto; }
}
.footer-brand .brand { color: #fff; margin: 0 0 18px; }
.footer-brand .brand:hover { text-decoration: none; }
.footer-brand .brand-tag { color: #8fa197; }
.footer-brand p { max-width: 400px; line-height: 1.75; }
.footer-title { font-family: var(--font); color: #fff; font-size: 1rem; font-weight: 600; margin: 0 0 16px; }
.footer-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-contact { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.6; }
.footer-contact .icon { margin-top: 3px; color: var(--gold); width: 17px; height: 17px; }
.footer-contact a { overflow-wrap: anywhere; }
.social { display: flex; gap: 10px; }
.social a {
	display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px;
	border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff;
	transition: background-color .2s ease, transform .2s ease;
}
.social a:hover { background: var(--brand); transform: translateY(-2px); text-decoration: none; }
.footer-quote { margin: 28px 0 0; }
.footer-mountain { width: 64px; height: 40px; color: rgba(255, 255, 255, .35); stroke-width: 1.2; }
.footer-quote blockquote { margin: 8px 0 0; font-family: var(--font-head); font-style: italic; font-size: 1.05rem; line-height: 1.6; color: #dfe8e3; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 20px; font-size: .85rem; color: #8fa197; display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; }
.footer-bottom p { margin: 0; }
.footer-bottom .heart { color: #e0605e; }

/* Single post banner (same dark image banner as other inner pages) */
.entry-banner { padding-block: clamp(32px, 5vw, 56px) clamp(40px, 6vw, 64px); }
.entry-banner.has-image { padding-bottom: clamp(110px, 17vw, 210px); }
.entry-banner .entry-title { color: #fff; max-width: none; font-size: clamp(1.7rem, 3.8vw, 2.5rem); line-height: 1.4; margin-bottom: 18px; }
.entry-banner .entry-cats a { background: var(--gold); color: var(--forest); }
.entry-banner .entry-cats a:hover { background: #fff; color: var(--forest); }
.entry-banner .entry-meta { color: rgba(255, 255, 255, .82); border-bottom: 0; padding-bottom: 0; }
.entry-banner .entry-meta img { box-shadow: 0 0 0 2px rgba(255, 255, 255, .6); }
.entry-banner + .entry-hero { position: relative; z-index: 2; margin-top: calc(-1 * clamp(80px, 13.5vw, 170px)); }
.entry-hero img { box-shadow: 0 18px 44px rgba(16, 43, 34, .22); }
.entry-banner + .entry-content, .entry-banner + .entry-hero + .entry-content { padding-top: 8px; }
.entry-banner:not(.has-image) + .entry-content { padding-top: clamp(32px, 5vw, 48px); }
.related { padding-block: clamp(44px, 6vw, 72px); }

/* Tags: compact, labelled */
.entry-tags { align-items: center; gap: 6px; }
.entry-tags-label { font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.entry-tags a { font-size: .8rem; padding: 3px 11px; background: var(--bg-soft); border-color: transparent; color: var(--ink-soft); }
.entry-tags a:hover { background: var(--brand-soft); border-color: transparent; color: var(--brand); }

/* Comments: clean cards */
.comments { border-top: 1px solid var(--line); padding-top: 32px; }
.comment-list li { margin: 0; }
.comment-body { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 600; font-style: normal; }
.comment-author img { margin: 0; }
.comment-author .says { display: none; }
.comment-metadata { margin: 2px 0 10px 50px; font-size: .82rem; }
.comment-metadata a { color: var(--muted); text-decoration: none; }
.comment-content { font-size: 1rem; line-height: 1.75; color: var(--ink-soft); }
.comment-content p:last-child { margin-bottom: 0; }
.reply a { display: inline-block; margin-top: 8px; font-size: .85rem; font-weight: 500; color: var(--brand); text-decoration: none; }
.comment-respond { margin-top: 12px; }
/* Author box */
.author-box {
	display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start;
	background: var(--bg-green); border-radius: var(--radius); padding: clamp(18px, 3vw, 26px); margin: 8px 0 28px;
}
.author-box-img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: #fff; }
.author-box .eyebrow { margin-bottom: 2px; }
.author-box-name { font-size: 1.2rem; margin: 0 0 6px; }
.author-box-name a { color: var(--ink); text-decoration: none; }
.author-box-name a:hover { color: var(--brand); }
.author-box-bio { color: var(--ink-soft); font-size: .95rem; line-height: 1.7; margin: 0 0 10px; }
.author-box-links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .88rem; font-weight: 500; }
.author-box-links a { display: inline-flex; align-items: center; gap: 6px; color: var(--brand); text-decoration: none; }
.author-box-links a:hover { text-decoration: underline; }
.author-box-links .icon { width: 16px; height: 16px; }
@media (max-width: 480px) { .author-box { grid-template-columns: 1fr; } }

/* Homepage: about this blog */
.about-blog { background: var(--bg-soft); border-top: 1px solid var(--line); }
.about-blog-inner { display: grid; gap: 32px 56px; align-items: center; }
@media (min-width: 900px) { .about-blog-inner { grid-template-columns: 1.6fr 1fr; } }
.about-blog-text { font-size: 1.05rem; line-height: 1.85; }
.about-blog-text h2 { margin-top: 0; font-size: clamp(1.5rem, 3vw, 1.9rem); }
.about-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.about-stats li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.about-stats strong { display: block; font-family: var(--font-head); font-size: 1.8rem; line-height: 1.1; color: var(--brand); }
.about-stats span { font-size: .88rem; color: var(--muted); }
.about-stats .about-stats-cta { display: flex; align-items: center; justify-content: center; background: none; border: 0; padding: 0; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}
