/*
Theme Name: Rushd Magazine
Theme URI: https://www.rushdmagazine.com/
Author: Rushd Magazine
Description: An editorial magazine theme for Rushd — ideas, culture, history and society. Cream & navy palette, Malayalam-first typography, hero story, latest stories, feature essay, category tiles, photo essay slider, archive series and subscribe band. Configure in Appearance → Customize → Rushd Theme.
Version: 1.1.2
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rushd
Tags: blog, news, two-columns, custom-logo, custom-menu, featured-images, translation-ready
*/

/* ===================== Tokens ===================== */
:root {
	--navy: #14264b;
	--navy-2: #0d1b38;
	--ink: #1a2233;
	--text: #3b404b;
	--muted: #757985;
	--cream: #f8f3ea;
	--cream-2: #f1e8d9;
	--paper: #fcfaf6;
	--line: #e3d8c6;
	--rust: #b0532c;
	--sand: #e9d6b4;
	--gold: #c9a96b;

	--f-display: "Cinzel", "Times New Roman", serif;
	--f-serif: "Cormorant Garamond", Georgia, serif;
	--f-ml-head: "manjari", "Manjari", system-ui, sans-serif;
	--f-ml-body: "manjari", "Manjari", system-ui, sans-serif;
	--f-ui: "manjari", "Manjari", system-ui, -apple-system, sans-serif;

	--wrap: 1240px;
	--narrow: 760px;
	--gutter: clamp(16px, 4vw, 40px);
	--radius: 2px;
	--shadow: 0 10px 30px -18px rgba(13, 27, 56, .45);

	--pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23b8945a' stroke-width='.8' opacity='.55'%3E%3Cpath d='M40 8l9.4 22.6L72 40l-22.6 9.4L40 72l-9.4-22.6L8 40l22.6-9.4z'/%3E%3Cpath d='M17.4 17.4L40 26.8l22.6-9.4-9.4 22.6 9.4 22.6L40 53.2l-22.6 9.4 9.4-22.6z'/%3E%3Ccircle cx='40' cy='40' r='7'/%3E%3Cpath d='M0 0l8 8M80 0l-8 8M0 80l8-8M80 80l-8-8'/%3E%3C/g%3E%3C/svg%3E");
}

/* ===================== Base ===================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--text);
	font-family: var(--f-ui);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--rust); }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4, h5, h6 { color: var(--ink); margin: 0 0 .5em; line-height: 1.3; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(var(--narrow) + 2 * var(--gutter)); }
.screen-reader-text, .skip-link:not(:focus) {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 999; background: #fff; padding: 8px 14px; }

.img-placeholder {
	display: block; width: 100%; height: 100%; min-height: 120px;
	background: var(--pattern) center/60px, linear-gradient(135deg, #e8dcc6, #d6c3a2);
}
.pattern-bg { position: relative; isolation: isolate; }
.pattern-bg::after {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: var(--pattern) right top / 90px;
	-webkit-mask-image: linear-gradient(270deg, #000 0%, transparent 45%);
	mask-image: linear-gradient(270deg, #000 0%, transparent 45%);
	opacity: .55;
}

/* ===================== Shared pieces ===================== */
.kicker {
	font-family: var(--f-ui);
	font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
	color: var(--rust); margin: 0 0 12px;
}
.kicker a { color: inherit; }
.kicker a:hover { color: var(--navy); }
.kicker__dot { margin: 0 4px; }
.kicker--light { color: var(--sand); }

.section { padding-block: clamp(44px, 6vw, 72px); }
.section-head {
	display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
	margin-bottom: 26px;
}
.section-title {
	font-family: var(--f-display); font-weight: 600;
	font-size: clamp(22px, 2.6vw, 30px); letter-spacing: .04em; text-transform: uppercase;
	color: var(--navy); margin: 0;
}
.section-sub { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.link-arrow {
	display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
	font-size: 13px; font-weight: 700; color: var(--navy);
}
.link-arrow svg { transition: transform .2s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

.btn-line, .btn-outline, .btn-sand {
	display: inline-flex; align-items: center; gap: 10px;
	font-family: var(--f-ui); font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
	color: var(--navy);
}
.btn-line { padding: 10px 0 14px; position: relative; }
.btn-line::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line);
}
.btn-line::before {
	content: ""; position: absolute; left: 30px; bottom: 0; width: 34px; height: 2px; background: var(--rust); z-index: 1;
	transition: width .3s ease;
}
.btn-line:hover::before { width: calc(100% - 30px); }
.btn-outline { border: 1.5px solid var(--navy); padding: 12px 22px; border-radius: var(--radius); transition: all .2s ease; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-sand { background: var(--sand); padding: 15px 24px; border-radius: var(--radius); }
.btn-sand:hover { background: #fff; color: var(--navy); }

/* Meta row */
.meta { display: flex; align-items: center; gap: 12px; }
.meta__avatar img { border-radius: 50%; width: 40px; height: 40px; object-fit: cover; }
.card .meta__avatar img { width: 36px; height: 36px; }
.meta__text { display: flex; flex-direction: column; line-height: 1.35; }
.meta__author { font-family: var(--f-ml-body); font-weight: 600; font-size: 13.5px; color: var(--ink); }
.meta__sub { font-size: 12px; color: var(--muted); }
.meta__sep { margin: 0 6px; }

/* ===================== Topbar & Header ===================== */
.topbar { background: var(--navy-2); color: #e9e2d4; }
.topbar__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 34px; }
.topbar__text {
	margin: 0; font-family: var(--f-serif); font-style: italic; font-weight: 600; font-size: 14.5px; letter-spacing: .12em;
}
.social { display: flex; align-items: center; gap: 14px; }
.social--top { justify-content: flex-end; }
.social a { display: inline-flex; color: inherit; opacity: .9; }
.social a:hover { color: var(--sand); opacity: 1; }

.site-header {
	position: sticky; top: 0; z-index: 50;
	background: var(--cream);
	border-bottom: 1px solid var(--line);
	transition: box-shadow .25s ease;
}
.site-header::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: var(--pattern) left center / 70px, var(--pattern) right center / 70px;
	background-repeat: no-repeat;
	opacity: .5;
}
.site-header.is-scrolled { box-shadow: 0 6px 20px -14px rgba(13, 27, 56, .5); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }

.header__inner { position: relative; display: flex; align-items: center; gap: 28px; min-height: 84px; }
.brand { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; color: var(--navy); flex-shrink: 0; }
.brand:hover { color: var(--navy); }
.brand__name { font-family: var(--f-display); font-weight: 600; font-size: 40px; letter-spacing: .06em; }
.brand__sub { font-family: var(--f-ui); font-size: 10px; font-weight: 600; letter-spacing: .58em; margin-top: 6px; margin-right: -.58em; text-transform: uppercase; }
.brand--small .brand__name { font-size: 30px; }
.brand--logo img { max-height: 58px; width: auto; }
.brand--footer.brand--logo img { max-height: 70px; }
.brand--small.brand--logo img { max-height: 46px; }

.primary-nav { margin-left: auto; }
.primary-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.primary-nav .menu > li { position: relative; }
.primary-nav .menu > li > a {
	display: block; padding: 30px 11px; font-size: 13.5px; font-weight: 500; color: var(--ink); position: relative;
}
.primary-nav .menu > li > a::after {
	content: ""; position: absolute; left: 11px; right: 11px; bottom: 22px; height: 1.5px; background: var(--rust);
	transform: scaleX(0); transition: transform .25s ease; transform-origin: left;
}
.primary-nav .menu > li:hover > a::after,
.primary-nav .menu > .current-menu-item > a::after,
.primary-nav .menu > .current-menu-ancestor > a::after { transform: scaleX(1); }
.primary-nav .menu > li.menu-item-has-children > a { padding-right: 22px; }
.primary-nav .menu > .menu-item-has-children > a::before {
	content: ""; position: absolute; right: 7px; top: 50%; width: 5px; height: 5px; margin-top: -4px;
	border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg);
}
.primary-nav .sub-menu {
	list-style: none; margin: 0; padding: 10px 0; position: absolute; top: 100%; left: 0; min-width: 220px;
	background: #fff; border: 1px solid var(--line); border-top: 2px solid var(--rust); box-shadow: var(--shadow);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .2s ease; z-index: 60;
	max-height: 70vh; overflow: auto;
}
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-nav .sub-menu a { display: block; padding: 8px 20px; font-size: 13.5px; color: var(--ink); }
.primary-nav .sub-menu a:hover { background: var(--cream); color: var(--rust); }
.primary-nav .sub-menu .sub-menu { top: -11px; left: 100%; }

.header__actions { display: flex; align-items: center; gap: 4px; padding-left: 16px; border-left: 1px solid var(--line); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; background: transparent; color: var(--navy); border-radius: 50%; }
.icon-btn:hover { background: var(--cream-2); }
.header__actions .js-drawer-open { display: none; }

.search-panel { border-top: 1px solid var(--line); background: var(--cream); padding: 16px 0; }
.search-form { display: flex; border: 1px solid var(--line); background: #fff; }
.search-field { flex: 1; min-width: 0; border: 0; padding: 12px 16px; font: inherit; font-size: 15px; background: transparent; color: var(--ink); }
.search-field:focus { outline: none; }
.search-submit { border: 0; background: var(--navy); color: #fff; width: 52px; display: inline-flex; align-items: center; justify-content: center; }

/* Drawer */
.drawer { position: fixed; inset: 0; z-index: 100; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(13, 27, 56, .55); opacity: 0; transition: opacity .3s ease; }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer__panel {
	position: absolute; top: 0; right: 0; height: 100%; width: min(380px, 88vw);
	background: var(--cream); padding: 20px 22px 32px; overflow-y: auto;
	transform: translateX(100%); transition: transform .3s ease;
	display: flex; flex-direction: column; gap: 20px;
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; }
.drawer__nav .menu, .drawer__nav .sub-menu { list-style: none; margin: 0; padding: 0; }
.drawer__nav li { position: relative; border-bottom: 1px solid var(--line); }
.drawer__nav a { display: block; padding: 13px 40px 13px 0; font-weight: 600; color: var(--ink); }
.drawer__nav .sub-menu { display: none; padding-left: 14px; border-top: 1px solid var(--line); }
.drawer__nav .sub-menu li:last-child { border-bottom: 0; }
.drawer__nav .sub-menu a { font-weight: 500; font-size: 14.5px; padding-block: 10px; }
.drawer__nav .is-open > .sub-menu { display: block; }
.submenu-toggle { position: absolute; right: 0; top: 6px; width: 36px; height: 36px; border: 0; background: transparent; color: var(--navy); transition: transform .2s; }
.is-open > .submenu-toggle { transform: rotate(180deg); }
.social--drawer { color: var(--navy); margin-top: auto; }

/* ===================== Hero ===================== */
.hero { position: relative; background: var(--cream); overflow: hidden; min-height: clamp(440px, 46vw, 580px); display: flex; align-items: center; }
.hero__media { position: absolute; top: 0; right: 0; bottom: 0; width: 66%; }
.hero__media img, .hero__media .img-placeholder { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(90deg, var(--cream) 0%, rgba(248, 243, 234, .85) 18%, rgba(248, 243, 234, 0) 50%);
}
.hero__inner { position: relative; z-index: 1; }
.hero__content { max-width: 520px; padding-block: 56px; }
.hero__title {
	font-family: var(--f-ml-head); font-weight: 800; color: var(--navy);
	font-size: clamp(30px, 3.6vw, 46px); line-height: 1.3; margin-bottom: 18px;
}
.hero__title a:hover { color: var(--rust); }
.hero__excerpt { font-family: var(--f-ml-body); font-size: 16px; line-height: 1.8; color: var(--text); margin-bottom: 24px; }
.hero .meta { margin-bottom: 26px; }

/* ===================== Cards / Latest ===================== */
.latest__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.latest__grid .card { padding-inline: 18px; border-left: 1px solid var(--line); }
.latest__grid .card:first-child { padding-left: 0; border-left: 0; }
.latest__grid .card:last-child { padding-right: 0; }
.card { display: flex; flex-direction: column; }
.card__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--cream-2); margin-bottom: 18px; }
.card__media img, .card__media .img-placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { display: flex; flex-direction: column; flex: 1; }
.card__title { font-family: var(--f-ml-head); font-weight: 700; font-size: 20px; line-height: 1.45; color: var(--navy); margin-bottom: 10px; }
.card__excerpt { font-family: var(--f-ml-body); font-size: 14px; line-height: 1.75; color: var(--text); margin-bottom: 16px; }
.card .meta { margin-top: auto; }

.grid-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 32px; }

/* ===================== Feature essay ===================== */
.feature { display: grid; grid-template-columns: 56% 44%; background: var(--cream); min-height: 420px; }
.feature__media { position: relative; overflow: hidden; }
.feature__media img, .feature__media .img-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature__content { padding: clamp(36px, 5vw, 64px) clamp(24px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.feature__title { font-family: var(--f-display); font-weight: 600; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.2; text-transform: uppercase; color: var(--navy); letter-spacing: .02em; margin-bottom: 18px; max-width: 15ch; }
.feature__text { font-family: var(--f-ml-body); line-height: 1.85; max-width: 46ch; margin-bottom: 28px; }

/* ===================== Category tiles ===================== */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tile { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy); color: #fff; }
.tile img, .tile .img-placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 27, 56, 0) 35%, rgba(13, 27, 56, .85) 100%); }
.tile:hover { color: #fff; }
.tile:hover img { transform: scale(1.06); }
.tile__label {
	position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 1;
	display: flex; justify-content: space-between; align-items: center;
	font-family: var(--f-serif); font-weight: 600; font-size: 21px;
	padding-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, .45);
}
.tile__label svg { transition: transform .25s ease; }
.tile:hover .tile__label svg { transform: translateX(4px); }

/* ===================== Photo essay ===================== */
.photo-essay { background: var(--cream-2); overflow: hidden; }
.photo-essay__inner { display: grid; grid-template-columns: 40% 60%; align-items: center; padding-right: 0; }
.pe__text { padding: 48px 32px 48px 0; }
.pe__title { font-family: var(--f-ml-head); font-weight: 800; font-size: clamp(26px, 2.8vw, 36px); line-height: 1.35; color: var(--navy); }
.pe__excerpt { font-family: var(--f-ml-body); line-height: 1.85; margin-bottom: 26px; }
.pe__item.is-active { animation: fadeUp .45s ease; }
.pe__visual { position: relative; }
.pe__stage { position: relative; aspect-ratio: 16 / 7.4; overflow: hidden; background: var(--navy); }
.pe__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.pe__slide.is-active { opacity: 1; z-index: 1; }
.pe__slide img, .pe__slide .img-placeholder { width: 100%; height: 100%; object-fit: cover; }
.pe__stage::before {
	content: ""; position: absolute; inset: 0 auto 0 0; width: 22%; z-index: 2; pointer-events: none;
	background: linear-gradient(90deg, var(--cream-2), rgba(241, 232, 217, 0));
}
.pe__thumbs { display: flex; align-items: center; gap: 8px; padding: 10px 0; }
.pe__thumb-track { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.pe__thumb-track::-webkit-scrollbar { display: none; }
.pe__thumb { flex: 0 0 auto; width: 76px; height: 50px; padding: 0; border: 2px solid transparent; background: var(--navy); opacity: .65; transition: all .2s ease; }
.pe__thumb img, .pe__thumb .img-placeholder { width: 100%; height: 100%; object-fit: cover; min-height: 0; }
.pe__thumb.is-active, .pe__thumb:hover { opacity: 1; border-color: var(--rust); }
.pe__nav { flex: 0 0 auto; width: 34px; height: 50px; border: 1px solid var(--line); background: var(--paper); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; }
.pe__nav:hover { background: var(--navy); color: #fff; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ===================== Archive series ===================== */
.series { display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; }
.series__item { display: flex; flex-direction: column; color: var(--navy); }
.series__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 10px; background: var(--cream-2); }
.series__media img, .series__media .img-placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.series__item:hover img { transform: scale(1.06); }
.series__label { font-family: var(--f-serif); font-weight: 700; font-size: 17px; line-height: 1.2; }
.series__item svg { margin-top: 4px; color: var(--navy); transition: transform .2s ease; }
.series__item:hover svg { transform: translateX(4px); color: var(--rust); }

/* ===================== Subscribe ===================== */
.subscribe { position: relative; background: linear-gradient(90deg, var(--navy-2), #1c3466); color: #dfe4ee; overflow: hidden; }
.subscribe__skyline { position: absolute; right: 0; bottom: 0; width: 70%; height: 100%; color: #fff; opacity: .07; }
.subscribe__inner { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: center; padding-block: 48px; }
.subscribe__title { font-family: var(--f-serif); font-weight: 600; font-size: clamp(28px, 3vw, 38px); color: #fff; margin-bottom: 8px; }
.subscribe__text { margin: 0; font-size: 14.5px; }
.sub-form { display: flex; gap: 8px; }
.sub-form input { flex: 1; min-width: 0; border: 0; border-radius: var(--radius); padding: 15px 18px; font: inherit; font-size: 14px; background: #fff; color: var(--ink); }
.sub-form button { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: var(--radius); padding: 0 24px; background: var(--sand); color: var(--navy); font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.sub-form button:hover { background: #fff; }
.subscribe__form { justify-self: end; width: 100%; max-width: 480px; }
.admin-note { margin-top: 10px; font-size: 12px; opacity: .7; font-style: italic; }

/* ===================== Footer ===================== */
.site-footer { background: var(--cream); border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.site-footer::after { content: ""; position: absolute; right: -30px; bottom: 30px; width: 260px; height: 260px; background: var(--pattern) center / 86px; opacity: .45; pointer-events: none; -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 70%); mask-image: radial-gradient(circle, #000 20%, transparent 70%); }
.footer__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; padding-block: 56px 44px; }
.brand--footer { align-items: flex-start; margin-bottom: 18px; }
.brand--footer .brand__name { font-size: 32px; }
.brand--footer .brand__sub { margin-right: 0; }
.footer__about p { font-size: 14px; max-width: 34ch; color: var(--text); }
.footer__title { font-family: var(--f-ui); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--navy); margin-bottom: 16px; }
.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__list li { margin-bottom: 6px; font-size: 14px; }
.social--footer { color: var(--navy); gap: 18px; margin-bottom: 24px; }
.footer__tagline { font-family: var(--f-serif); font-style: italic; font-size: 17px; color: var(--muted); }
.footer__bar { background: var(--navy-2); color: #c9cfdc; font-size: 12.5px; }
.footer__bar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 48px; flex-wrap: wrap; }
.footer__bar p { margin: 0; }
.footer__bar a:hover { color: #fff; }

/* ===================== Archive head ===================== */
.archive-head { background: var(--cream); border-bottom: 1px solid var(--line); padding-block: clamp(40px, 6vw, 72px); }
.archive-head__title { font-family: var(--f-display); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--navy); font-size: clamp(30px, 4vw, 48px); margin: 0; }
.archive-head__desc { margin-top: 14px; max-width: 64ch; font-family: var(--f-ml-body); }
.single--page .archive-head__title { text-transform: none; font-family: var(--f-ml-head); font-weight: 800; letter-spacing: 0; }

.pagination { margin-top: 56px; }
.pagination .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
.pagination .page-numbers { min-width: 42px; height: 42px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); font-weight: 700; font-size: 14px; color: var(--navy); background: #fff; }
.pagination .page-numbers.current, .pagination a.page-numbers:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.pagination .dots { border: 0; background: transparent; }
.empty { text-align: center; max-width: 520px; margin: 0 auto; }

/* ===================== Single ===================== */
.single__head { background: var(--cream); padding-block: clamp(40px, 6vw, 72px) 36px; }
.single__title { font-family: var(--f-ml-head); font-weight: 800; color: var(--navy); font-size: clamp(30px, 4.2vw, 48px); line-height: 1.32; margin-bottom: 18px; }
.single__dek { font-family: var(--f-ml-body); font-size: 18px; line-height: 1.8; color: var(--text); }
.single__meta-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 22px; margin-top: 8px; border-top: 1px solid var(--line); }
.single__figure { margin: 0 auto; padding-top: 0; position: relative; }
.single__figure::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 50%; background: var(--cream); z-index: -1; }
.single__figure img { width: 100%; max-height: 640px; object-fit: cover; }
.single__figure figcaption { font-size: 13px; color: var(--muted); padding-top: 8px; text-align: center; }

.share { display: flex; align-items: center; gap: 8px; }
.share span { font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.share a { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; color: var(--navy); background: #fff; }
.share a:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

.entry-content { padding-block: 44px 20px; font-family: var(--f-ml-body); font-size: 18px; line-height: 1.95; color: #2b303a; }
.entry-content > * { margin-block: 0 1.3em; }
.entry-content h2, .entry-content h3, .entry-content h4 { font-family: var(--f-ml-head); color: var(--navy); margin-top: 1.8em; line-height: 1.4; }
.entry-content h2 { font-size: 1.55em; }
.entry-content h3 { font-size: 1.3em; }
.entry-content a { color: var(--rust); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.entry-content blockquote, .entry-content .wp-block-quote, .entry-content .wp-block-pullquote {
	margin: 2em 0; padding: 4px 0 4px 26px; border-left: 3px solid var(--rust);
	font-family: var(--f-ml-head); font-size: 1.15em; color: var(--navy);
}
.entry-content .wp-block-pullquote { border: 0; border-block: 1px solid var(--line); padding: 28px 0; text-align: center; }
.entry-content blockquote cite { display: block; font-family: var(--f-ui); font-size: 13px; color: var(--muted); margin-top: 8px; font-style: normal; }
.entry-content img { height: auto; }
.entry-content figure { margin-inline: 0; }
.entry-content figcaption, .entry-content .wp-caption-text { font-size: 13.5px; color: var(--muted); text-align: center; margin-top: 8px; font-family: var(--f-ui); }
.entry-content .alignwide { margin-inline: calc(-1 * min(120px, (100vw - 760px) / 2)); max-width: none; }
.entry-content .alignfull { margin-inline: calc(50% - 50vw); width: 100vw; max-width: 100vw; }
.entry-content .aligncenter { margin-inline: auto; }
.entry-content .alignleft { float: left; margin: .3em 1.4em 1em 0; max-width: 50%; }
.entry-content .alignright { float: right; margin: .3em 0 1em 1.4em; max-width: 50%; }
.entry-content hr { border: 0; height: 1px; background: var(--line); margin: 2.4em 0; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .9em; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 8px 12px; }
.entry-content iframe { max-width: 100%; }

.single__foot { padding-bottom: 40px; }
.single__foot .share { padding: 18px 0; border-block: 1px solid var(--line); margin-bottom: 28px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tags a { font-size: 12.5px; font-weight: 600; padding: 5px 12px; background: var(--cream-2); color: var(--navy); }
.tags a:hover { background: var(--navy); color: #fff; }
.author-box { display: flex; gap: 20px; align-items: flex-start; padding: 24px; background: var(--cream); border: 1px solid var(--line); }
.author-box img { border-radius: 50%; flex-shrink: 0; }
.author-box .kicker { margin-bottom: 4px; }
.author-box__name { font-family: var(--f-ml-head); font-size: 20px; margin-bottom: 6px; }
.author-box p:last-child { margin: 0; font-size: 14.5px; }

.related { background: var(--cream); border-top: 1px solid var(--line); }

/* Comments */
.comments-wrap { padding-block: 48px; }
.comments-wrap .comments-title, .comments-wrap .comment-reply-title { font-family: var(--f-display); text-transform: uppercase; font-size: 22px; color: var(--navy); }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 28px; }
.comment-body { padding: 18px 0; border-bottom: 1px solid var(--line); }
.comment-author img { border-radius: 50%; float: left; margin-right: 12px; }
.comment-metadata { font-size: 12.5px; color: var(--muted); }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea {
	width: 100%; border: 1px solid var(--line); background: #fff; padding: 12px 14px; font: inherit;
}
.comment-form .submit { background: var(--navy); color: #fff; border: 0; padding: 13px 26px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: 12.5px; }
.comment-form .submit:hover { background: var(--rust); }

.page-links { display: flex; gap: 6px; font-weight: 700; }
.notfound .search-form { margin: 24px 0; max-width: 480px; }

/* ===================== Responsive ===================== */
@media (max-width: 1180px) {
	.primary-nav .menu > li > a { padding-inline: 8px; font-size: 13px; }
	.series { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1024px) {
	.primary-nav { display: none; }
	.header__actions { margin-left: auto; border-left: 0; }
	.header__actions .js-drawer-open { display: inline-flex; }
	.header__inner { min-height: 72px; }
	.brand__name { font-size: 32px; }
	.tiles { grid-template-columns: repeat(2, 1fr); }
	.feature { grid-template-columns: 1fr; }
	.feature__media { aspect-ratio: 16 / 9; }
	.photo-essay__inner { grid-template-columns: 1fr; padding-right: var(--gutter); }
	.pe__visual { order: -1; margin-top: 24px; }
	.pe__stage::before { display: none; }
	.pe__text { padding: 12px 0 40px; }
	.footer__grid { grid-template-columns: 1fr 1fr; }
	.subscribe__inner { grid-template-columns: 1fr; }
	.subscribe__form { justify-self: stretch; max-width: none; }
}
@media (max-width: 900px) {
	.hero { flex-direction: column; align-items: stretch; min-height: 0; }
	.hero__media { position: relative; width: 100%; aspect-ratio: 16 / 10; }
	.hero__media::after { background: linear-gradient(0deg, var(--cream) 0%, rgba(248, 243, 234, 0) 35%); }
	.hero__content { padding-block: 4px 40px; max-width: none; }
	.latest__grid { grid-template-columns: 1fr; gap: 36px; }
	.latest__grid .card { padding: 0; border: 0; }
	.grid-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
	.topbar__inner { grid-template-columns: 1fr auto; }
	.topbar__spacer { display: none; }
	.topbar__text { font-size: 12.5px; letter-spacing: .06em; }
	.social--top { gap: 10px; }
	.section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
	.tiles { grid-template-columns: 1fr 1fr; gap: 8px; }
	.tile__label { font-size: 16px; left: 10px; right: 10px; bottom: 10px; padding-bottom: 6px; }
	.tile__label svg { display: none; }
	.series { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
	.series::-webkit-scrollbar { display: none; }
	.series__item { flex: 0 0 42%; scroll-snap-align: start; }
	.grid-cards { grid-template-columns: 1fr; }
	.footer__grid { grid-template-columns: 1fr; gap: 28px; }
	.sub-form { flex-direction: column; }
	.sub-form button { padding: 14px; justify-content: center; }
	.entry-content { font-size: 17px; }
	.entry-content .alignleft, .entry-content .alignright { float: none; margin: 0 0 1em; max-width: 100%; }
	.pe__stage { aspect-ratio: 4 / 3; }
	.single__meta-row { flex-direction: column; align-items: flex-start; }
	.author-box { flex-direction: column; }
}

/* ===================== Font guard =====================
   The "Use Any Font" plugin forces Manjari on all text with !important.
   Keep it for Malayalam, but restore the English display fonts here. */
body .brand__name, body .section-title, body .feature__title, body .archive-head__title:not(.single--page *),
body .comments-title, body .comment-reply-title { font-family: var(--f-display) !important; }
body .tile__label, body .tile__label span, body .series__label, body .subscribe__title,
body .topbar__text, body .footer__tagline { font-family: var(--f-serif) !important; }
.footer__follow { justify-self: end; text-align: right; }
.footer__follow .social { justify-content: flex-end; }
@media (max-width: 640px) { .footer__follow { justify-self: start; text-align: left; } .footer__follow .social { justify-content: flex-start; } }
