/*
Theme Name:  Mychengai Custom theme
Theme URI:   https://www.yuktopia.com/
Description: Blazing-fast, zero-dependency news theme. Child of Twenty Twenty-Five. Optimised for LiteSpeed Cache, RankMath.
Author:      Vignesh Mohan
Author URI:  https://www.vigneshmohan.in/
Version:     1.0.0
Template:    twentytwentyfive
Requires at least: 6.7
Tested up to: 7.0
Requires PHP: 8.1
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mychengai-news
Tags:        news, magazine, lightweight, fast, block-theme, fse
*/

/* ════════════════════════════════════════════════════════════════════════════
   SITE HEADER — 3-Row Layout
   Row 1: Logo + 728×90 Ad
   Row 2: Navigation bar (white bg, contained left-aligned links, Oneindia-style)
   Row 3: சற்றுமுன் ticker (latest posts scroll)
   ════════════════════════════════════════════════════════════════════════════ */

/* ── Header shell: ONE shared width for all 3 rows ──────────────────────────
   The whole header is constrained to the content width, so the logo row,
   nav bar and ticker all start and end at exactly the same x — borders
   included. On the homepage the gutter media queries below align it with
   the body content between the left/right ad rails. */
.site-header {
	max-width: 1240px;
	margin-inline: auto;
}

/* Remove browser focus outline on the main landmark (tabindex="-1" skip-link target) */
#main-content:focus,
#main-content:focus-visible {
	outline: none;
}

/* Remove click focus ring on image/logo links and post thumbnail anchors */
a:has(img):focus,
a:has(img):focus-visible,
.wp-block-site-logo a:focus,
.wp-block-site-logo a:focus-visible,
.wp-block-post-featured-image a:focus,
.wp-block-post-featured-image a:focus-visible {
	outline: none;
}

/* GLOBAL: no border/outline box on mouse-click for any link or button.
   :focus-visible is still honoured, so keyboard Tab users keep the outline
   for accessibility. This stops the recurring "border box on click" issue. */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
	outline: none;
	box-shadow: none;
}

/* No underline on category/tag terms inside any card */
.mcn-archive-card .wp-block-post-terms a,
.mcn-related-card .wp-block-post-terms a {
	text-decoration: none !important;
}

/* ── Shared inner-container constraint ──────────────────────────────────────── */
.site-header__top-inner,
.site-header__nav-inner,
.mcn-ticker {
	max-width: 1240px;
	margin-inline: auto;
	padding-inline: 1.25rem;
	width: 100%;
	box-sizing: border-box;
}

/* ── Row 1: Hamburger + Logo | Ad | Live TV · Radio · Search ─────────────────── */
.site-header__top {
	background: #fff;
	position: relative; /* anchor for the search dropdown */
	padding-top: 0.75rem !important;
	padding-bottom: 0.75rem !important;
	border-bottom: 1px solid var(--wp--preset--color--border, #e5e5e5) !important;
}

.site-header__top-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	flex-wrap: nowrap;
	min-height: 56px;
}

/* Brand: logo image + site title side by side */
.site-header__brand {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	text-decoration: none;
	flex-shrink: 0;
}

/* Zero out WordPress default margins on the site-logo block wrapper */
.site-header__brand .wp-block-site-logo,
.site-header__brand .wp-block-site-logo figure {
	margin: 0 !important;
	padding: 0 !important;
	line-height: 0;
}

/* Logo image */
.site-header__logo-img img,
.site-header__brand .wp-block-site-logo img {
	max-height: 100px;
	width: auto;
	display: block;
	object-fit: contain;
}

/* Site title text in header */
.site-header__site-title,
.site-header__brand .wp-block-site-title {
	font-size: 1.5rem !important;
	font-weight: 800 !important;
	line-height: 1 !important;
	letter-spacing: -0.02em;
	margin: 0 !important;
}

.site-header__site-title a,
.site-header__brand .wp-block-site-title a {
	color: var(--wp--preset--color--text, #0a0a0a) !important;
	text-decoration: none !important;
}

.site-header__site-title a:hover,
.site-header__brand .wp-block-site-title a:hover {
	color: var(--wp--preset--color--accent, #dc2626) !important;
}

/* When a real logo image IS present, hide the text site-title to avoid duplication.
   Uses :has() which is supported in all modern browsers. */
.site-header__brand:has(.wp-block-site-logo img) .wp-block-site-title {
	display: none;
}

/* ── Drawer hamburger (row 1, before logo) — core nav block, overlayMenu:always ──
   MOBILE ONLY: on desktop the row-2 inline menu is used, so the hamburger hides.
   Scoped to .site-header + !important so it always beats core's .wp-block-navigation. */
.site-header .mcn-drawer-nav {
	flex-shrink: 0;
	display: none !important;
}

@media (max-width: 781px) {
	.site-header .mcn-drawer-nav {
		display: flex !important;
		align-items: center;
		margin-inline-end: 0.25rem;
	}
}

.mcn-drawer-nav .wp-block-navigation__responsive-container-open,
.mcn-more-nav .wp-block-navigation__responsive-container-open {
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: 0;
	padding: 0.25rem;
	color: var(--wp--preset--color--text, #0a0a0a);
	cursor: pointer;
}

.mcn-drawer-nav .wp-block-navigation__responsive-container-open svg {
	width: 26px;
	height: 26px;
}

/* ── Mobile nav overlay — left slide-in drawer ───────────────────────────── */
.mcn-drawer-nav .wp-block-navigation__responsive-container.is-menu-open {
	background: rgba(0, 0, 0, 0.55) !important;
	padding: 0 !important;
	display: flex !important;
	align-items: stretch !important;
	justify-content: flex-start !important;
	overflow-x: hidden !important; /* never scroll sideways */
}

/* White left panel */
.mcn-drawer-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-close {
	width: min(280px, 82vw) !important;
	max-width: 100% !important;
	background: #fff;
	box-shadow: 6px 0 24px rgba(0, 0, 0, 0.18);
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	margin: 0 !important;
	border-top: 4px solid var(--wp--preset--color--accent, #dc2626);
}

/* Dialog: reserve a top band so the first item clears the X (close) button */
.mcn-drawer-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog {
	padding: 3.25rem 0 1.25rem;
	position: relative;
	flex: 1;
}

/* Container content: no extra padding */
.mcn-drawer-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding: 0 !important;
	margin: 0 !important;
}

/* Nav list: column, zero gap, zero list margins */
.mcn-drawer-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	flex-direction: column !important;
	gap: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	width: 100%;
}

/* Each list item: no margin, full width */
.mcn-drawer-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	width: 100%;
	margin: 0 !important;
	padding: 0 !important;
}

/* Link itself: compact, left-aligned tap target */
.mcn-drawer-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	display: block !important;
	width: 100%;
	box-sizing: border-box !important; /* include padding in the 100% — prevents horizontal overflow */
	padding: 0.6rem 1.25rem !important;
	margin: 0 !important;
	font-size: 0.9375rem !important;
	font-weight: 600 !important;
	line-height: 1.3 !important;
	white-space: normal !important;
	color: #111827 !important;
	text-decoration: none !important;
	border-bottom: 1px solid #f3f4f6 !important;
	border-left: 3px solid transparent !important;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}

/* Keep each row to a single compact line (prevents the 2-line tall items) */
.mcn-drawer-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item,
.mcn-drawer-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	min-height: 0 !important;
	height: auto !important;
}

.mcn-drawer-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--accent, #dc2626) !important;
	background: #fff5f5 !important;
	border-left-color: var(--wp--preset--color--accent, #dc2626) !important;
}

/* Reset active-page underline from desktop styles inside the overlay */
body.home .mcn-drawer-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .wp-block-navigation-item:first-child .wp-block-navigation-item__content,
.mcn-drawer-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content[aria-current="page"],
.mcn-drawer-nav .wp-block-navigation__responsive-container.is-menu-open .current-menu-item > .wp-block-navigation-item__content {
	border-bottom: 1px solid #f3f4f6 !important;
	border-left-color: var(--wp--preset--color--accent, #dc2626) !important;
	color: var(--wp--preset--color--accent, #dc2626) !important;
}

/* Close (X) button — top-right corner of the panel */
.mcn-drawer-nav .wp-block-navigation__responsive-container-close {
	display: flex !important;
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	background: transparent !important;
	border: none !important;
	color: #111827 !important;
	cursor: pointer;
	padding: 0.375rem;
	z-index: 10;
}

.mcn-drawer-nav .wp-block-navigation__responsive-container-close svg {
	width: 20px;
	height: 20px;
}

/* ── Row 1 right actions: Live TV · Radio · | · Search ── */
.site-header__actions {
	display: flex;
	align-items: center;
	gap: 1.375rem;
	flex-shrink: 0;
}

.mcn-header-action {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	font-size: 0.6875rem;
	font-weight: 600;
	line-height: 1;
	color: var(--wp--preset--color--text, #0a0a0a);
	text-decoration: none;
	transition: color 0.15s;
}

.mcn-header-action svg {
	width: 23px;
	height: 23px;
	display: block;
}

.mcn-header-action--yt svg {
	color: #ff0000;
}

.mcn-header-action:hover {
	color: var(--wp--preset--color--accent, #dc2626);
}

.mcn-header-action:focus:not(:focus-visible) {
	outline: none;
}

.mcn-action-divider {
	width: 1px;
	height: 30px;
	background: var(--wp--preset--color--border, #e5e5e5);
}

.mcn-search-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	background: transparent;
	border: 0;
	border-radius: 50%;
	color: var(--wp--preset--color--text, #0a0a0a);
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
}

.mcn-search-toggle:hover {
	background: var(--wp--preset--color--light-gray, #f5f5f5);
	color: var(--wp--preset--color--accent, #dc2626);
}

.mcn-search-toggle svg {
	width: 21px;
	height: 21px;
}

/* ── Search dropdown (toggled by js/mcn-header.js) ── */
.site-header__search-pop {
	display: none;
	position: absolute;
	top: 100%;
	right: 1.25rem;
	z-index: 80;
	width: min(380px, calc(100vw - 2.5rem));
	background: #fff;
	border: 1px solid var(--wp--preset--color--border, #e5e5e5);
	border-radius: 6px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
	padding: 0.875rem;
	margin: 0 !important;
}

.site-header__search-pop.is-open {
	display: block;
}

/* Ad spot — 728×90 leaderboard RESERVED next to the logo at all times. */
.site-header__top .mcn-ad--header_banner {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 1 728px;
	min-height: 90px;
	max-width: 728px;
	margin: 0 !important;
	overflow: hidden;
}

/* Actions stay last in the row even when the ad placeholder ::after exists */
.site-header__actions {
	order: 2;
}

/* No ad code saved yet → show a quiet reserved-slot placeholder so the
   spot is always visible and the row height never jumps when ads go live.
   order:1 slots it BETWEEN the brand (0) and the actions (2), like a real ad. */
.site-header__top-inner:not(:has(.mcn-ad--header_banner))::after {
	content: 'AD · 728 × 90';
	order: 1;
	flex: 0 1 728px;
	min-height: 90px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fafbfc;
	border: 1px dashed #e5e8eb;
	border-radius: 3px;
	color: #c2c7cd;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	box-sizing: border-box;
}

@media (max-width: 1099px) {
	.site-header__top-inner:not(:has(.mcn-ad--header_banner))::after {
		display: none;
	}
}

/* ── Row 2: Navigation bar (Oneindia-style — contained, left-aligned) ─────── */

/* Full-width white band; content is constrained inside __nav-inner */
.site-header__nav,
.site-header__ticker-row,
.site-header__top {
	box-sizing: border-box;
	width: 100%;
	max-width: 100% !important;
}

.site-header__nav {
	background: #fff;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	/* Single 1px line below the nav — row 1 already draws the line above it */
	border-top: none !important;
	border-bottom: 1px solid var(--wp--preset--color--border, #e5e5e5) !important;
}

.site-header__nav-inner {
	display: flex;
	align-items: stretch;
	justify-content: center;
	flex-wrap: nowrap;
	height: 44px; /* fixed row height — keeps all 3 header rows proportionate */
}

/* Nav block: natural width only — do not stretch to fill the 1240px container */
.site-header__nav .wp-block-navigation {
	width: auto;
	max-width: 100%;
	flex: 0 1 auto;
}

.site-header__nav .wp-block-navigation__container,
.site-header__nav .wp-block-navigation__responsive-container-content {
	display: flex !important;
	justify-content: center !important;
	align-items: stretch;
	gap: 0;
	flex-grow: 0 !important; /* override WP core :only-child { flex-grow: 1 } */
	width: auto;
}

/* Prevent space-between / center justification from Site Editor overrides */
.site-header__nav .wp-block-navigation.items-justified-space-between,
.site-header__nav .wp-block-navigation.items-justified-center,
.site-header__nav .wp-block-navigation.items-justified-right {
	--navigation-layout-justify: flex-start;
}

.site-header__nav .wp-block-navigation.items-justified-space-between .wp-block-navigation__container,
.site-header__nav .wp-block-navigation.items-justified-center .wp-block-navigation__container,
.site-header__nav .wp-block-navigation.items-justified-right .wp-block-navigation__container {
	justify-content: flex-start !important;
}

/* First link starts EXACTLY at the logo's left edge */
.site-header__nav .wp-block-navigation__container > .wp-block-navigation-item:first-child .wp-block-navigation-item__content {
	padding-left: 0 !important;
}

/* Compact left-aligned links */
.site-header__nav .wp-block-navigation-item__content {
	padding: 0 1.125rem !important;
	height: 44px;
	font-size: 0.875rem !important;
	font-weight: 600 !important;
	white-space: nowrap;
	color: var(--wp--preset--color--text, #0a0a0a) !important;
	text-decoration: none !important;
	transition: color 0.15s;
	display: flex;
	align-items: center;
	line-height: 1;
	border-bottom: 2px solid transparent;
}

.site-header__nav .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--accent, #dc2626) !important;
	background: transparent;
}

/* Active/current page highlight — red text + red underline (per design) */
.site-header__nav .current-menu-item > .wp-block-navigation-item__content,
.site-header__nav .current-menu-ancestor > .wp-block-navigation-item__content,
.site-header__nav .mcn-main-nav .wp-block-navigation-item__content[aria-current="page"] {
	color: var(--wp--preset--color--accent, #dc2626) !important;
	border-bottom: 2px solid var(--wp--preset--color--accent, #dc2626);
}

/* Front page: WP doesn't add aria-current to a relative "/" custom link,
   so highlight the first main-nav item (முதப்பு) via the body class instead */
body.home .mcn-main-nav .wp-block-navigation__container > .wp-block-navigation-item:first-child .wp-block-navigation-item__content {
	color: var(--wp--preset--color--accent, #dc2626) !important;
	border-bottom: 2px solid var(--wp--preset--color--accent, #dc2626);
}

/* Remove nav icons — no SVG decorations on menu items (hamburger button excluded) */
.site-header__nav .wp-block-navigation-item__content svg,
.site-header__nav .wp-block-navigation-item__content img.icon {
	display: none !important;
}

/* Right-edge hamburger nav — pushed to the far end of the nav row */
.mcn-more-nav {
	margin-inline-start: auto !important;
	flex-shrink: 0;
}

.mcn-more-nav .wp-block-navigation__responsive-container-open svg {
	width: 24px;
	height: 24px;
}

/* Dropdown sub-menu */
.site-header__nav .wp-block-navigation__submenu-container {
	background: #fff;
	border: 1px solid var(--wp--preset--color--border, #e5e5e5);
	border-top: 2px solid var(--wp--preset--color--accent, #dc2626);
	border-radius: 0 0 4px 4px;
	min-width: 200px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.site-header__nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 0.625rem 1rem !important;
	font-size: 0.875rem !important;
	color: var(--wp--preset--color--text, #0a0a0a) !important;
	border-bottom: 1px solid var(--wp--preset--color--border, #e5e5e5);
}

/* Search lives in Row 1 (magnifier toggle) — see .site-header__search-pop */

/* Desktop: main nav links always inline, never collapsed to a hamburger.
   (Scoped to .mcn-main-nav so the .mcn-more-nav hamburger keeps working.) */
@media (min-width: 782px) {
	.site-header__nav .mcn-main-nav .wp-block-navigation__responsive-container-open {
		display: none !important;
	}
	.site-header__nav .mcn-main-nav .wp-block-navigation__responsive-container {
		display: flex !important;
		visibility: visible !important;
		position: static !important;
		background: transparent !important;
	}
	.site-header__nav .mcn-main-nav .wp-block-navigation__responsive-container-content {
		display: flex !important;
		flex-direction: row !important;
	}
	.site-header__nav .mcn-main-nav .wp-block-navigation__responsive-container-close {
		display: none !important;
	}
}

/* Mobile: nav row becomes a single horizontally-scrollable line of links.
   The row-1 drawer hamburger covers the full menu, so the right-edge
   hamburger is hidden to avoid three menu buttons on small screens. */
@media (max-width: 781px) {
	.site-header__nav-inner {
		overflow-x: auto;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}

	.site-header__nav-inner::-webkit-scrollbar {
		display: none;
	}

	.site-header__nav .mcn-main-nav .wp-block-navigation__container {
		flex-wrap: nowrap !important;
	}

	.mcn-more-nav {
		display: none !important;
	}
}

/* ── Row 3: சற்றுமுன் Ticker ─────────────────────────────────────────────────── */
.site-header__ticker-row {
	background: #fff;
	padding-top: 6px;
	padding-bottom: 6px;
	/* Light line closes off the header cleanly before page content starts */
	border-bottom: 1px solid var(--wp--preset--color--border, #e5e5e5) !important;
}

.mcn-ticker {
	display: flex;
	align-items: center;
	/* keeps the shared 1.25rem padding — label starts exactly at the logo edge */
	height: 38px;        /* slightly shorter than the 44px nav — clear hierarchy */
	overflow: hidden;
}

/* "தற்போது" badge — solid red rectangle, flush left (per design) */
.mcn-ticker__label {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	height: 100%;
	background: var(--wp--preset--color--accent, #dc2626);
	color: #fff;
	padding: 0 1rem;
	font-size: 0.8125rem;
	font-weight: 700;
	white-space: nowrap;
	letter-spacing: 0.03em;
	margin-inline-end: 0.75rem;
	font-family: var(--wp--preset--font-family--system, sans-serif);
}

/* Viewport: clips the scrolling track */
.mcn-ticker__viewport {
	flex: 1;
	overflow: hidden;
	position: relative;
	height: 100%;
	display: flex;
	align-items: center;
}

/* Fade edges for smooth entrance/exit */
.mcn-ticker__viewport::before,
.mcn-ticker__viewport::after {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	width: 2rem;
	z-index: 1;
	pointer-events: none;
}
.mcn-ticker__viewport::before {
	left: 0;
	background: linear-gradient(to right, #fff, transparent);
}
.mcn-ticker__viewport::after {
	right: 0;
	background: linear-gradient(to left, #fff, transparent);
}

/* Scrolling track — speed controlled via --mcn-ticker-speed CSS variable
   injected in wp_head by functions.php. Change the $speed value there. */
.mcn-ticker__track {
	display: flex;
	align-items: center;
	gap: 0;
	width: max-content;
	animation-name: mcn-ticker-scroll;
	animation-timing-function: linear;
	animation-iteration-count: infinite;
	animation-duration: var(--mcn-ticker-speed, 120s);
	will-change: transform;
}

/* Pause on hover */
.mcn-ticker__track:hover,
.mcn-ticker:hover .mcn-ticker__track {
	animation-play-state: paused;
}

/* Reduce motion: stop scrolling completely */
@media (prefers-reduced-motion: reduce) {
	.mcn-ticker__track {
		animation-name: none;
		flex-wrap: wrap;
	}
}

/* Ticker keyframes — scrolls from 0 to -50% (because items are doubled) */
@keyframes mcn-ticker-scroll {
	0%   { transform: translateX(0); }
	100% { transform: translateX(-50%); }
}

/* Individual ticker item */
.mcn-ticker__item {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	white-space: nowrap;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--wp--preset--color--text, #0a0a0a);
	text-decoration: none;
	padding-inline: 1.25rem;
	position: relative;
	height: 100%;
	transition: color 0.15s;
}

.mcn-ticker__item:hover {
	color: var(--wp--preset--color--accent, #dc2626);
}

/* Bullet separator between items */
.mcn-ticker__item::before {
	content: '●';
	font-size: 0.375rem;
	color: var(--wp--preset--color--accent, #dc2626);
	margin-inline-end: 1.125rem;
	vertical-align: middle;
	opacity: 0.7;
}

/* Prev/next squares — revealed once js/mcn-header.js enhances the ticker */
.mcn-ticker__controls {
	display: none;
	align-items: center;
	gap: 6px;
	margin-inline-start: 0.75rem;
	flex-shrink: 0;
}

.mcn-ticker.is-enhanced .mcn-ticker__controls {
	display: flex;
}

.mcn-ticker__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	padding: 0;
	border: 0;
	border-radius: 3px;
	cursor: pointer;
	color: #fff;
	transition: opacity 0.15s;
}

.mcn-ticker__btn:hover {
	opacity: 0.85;
}

.mcn-ticker__btn--prev {
	background: var(--wp--preset--color--accent, #dc2626);
}

.mcn-ticker__btn--next {
	background: var(--wp--preset--color--dark, #111827);
}

/* ── Mobile header adjustments (matches the 781px hamburger breakpoint) ──────── */
@media (max-width: 781px) {
	/* Positioning context so the hamburger can be placed absolutely in the top row */
	.site-header {
		position: relative;
	}

	/* Top row: 3-column grid — [hamburger 44px] [logo flex] [search 44px] */
	.site-header__top-inner {
		display: grid !important;
		grid-template-columns: 44px 1fr 44px;
		grid-template-rows: 64px;
		align-items: center;
		padding-inline: 0.75rem;
		padding-block: 0 !important;
		gap: 0;
		min-height: unset;
	}

	/* Hide 728×90 banner placeholder on mobile */
	.site-header__top .mcn-ad--header_banner,
	.site-header__top-inner::after {
		display: none !important;
	}

	.site-header__top {
		padding-top: 0 !important;
		padding-bottom: 0 !important;
	}

	/* Brand → col 2, centered */
	.site-header__brand {
		grid-column: 2;
		justify-content: center !important;
		gap: 0 !important;
	}

	/* Logo bigger — fills the space freed by hiding Live TV */
	.site-header__brand .wp-block-site-logo img,
	.site-header__logo-img img {
		max-height: 54px !important;
	}

	/* Hide text site-title on mobile — logo carries the brand */
	.site-header__site-title,
	.site-header__brand .wp-block-site-title {
		display: none !important;
	}

	/* Actions → col 3, centered */
	.site-header__actions {
		grid-column: 3;
		justify-content: center;
		gap: 0;
		order: unset;
	}

	/* Remove Live TV icon and divider — search icon only on mobile */
	.mcn-header-action--yt,
	.mcn-action-divider {
		display: none !important;
	}

	/* Drawer hamburger sits in column 1 of the top-row grid, centered */
	.site-header__top-inner .mcn-drawer-nav {
		grid-column: 1;
		justify-content: center;
		align-items: center;
		margin: 0 !important;
	}
	.mcn-drawer-nav .wp-block-navigation__responsive-container-open {
		width: 44px;
		height: 44px;
		padding: 0 !important;
	}

	/* Ticker slightly smaller on mobile */
	.mcn-ticker {
		height: 2.25rem;
	}
	.mcn-ticker__label {
		font-size: 0.75rem;
		padding: 0 0.875rem 0 0.75rem;
	}
	.mcn-ticker__item {
		font-size: 0.8125rem;
	}
	.mcn-ticker__controls {
		display: none !important;
	}
}

/* ─── Author Profile Card ──────────────────────────────────────────────────── */
.mcn-author-profile {
	display: flex;
	gap: 1.5rem;
	align-items: center;
	padding: 1.75rem 2rem;
	margin: 1.5rem 0 2rem;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
	position: relative;
	overflow: hidden;
}

/* accent bar down the left edge */
.mcn-author-profile::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	width: 4px;
	background: var(--wp--preset--color--accent, #dc2626);
}

.mcn-author-avatar-wrap {
	flex-shrink: 0;
}

.mcn-author-avatar-wrap img.mcn-author-avatar {
	width: 88px;
	height: 88px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid #fff;
	box-shadow: 0 0 0 2px var(--wp--preset--color--accent, #dc2626);
}

.mcn-author-info {
	flex: 1;
	min-width: 0;
}

.mcn-author-name {
	font-size: 1.5rem !important;
	font-weight: 800 !important;
	margin: 0 0 0.35rem !important;
	line-height: 1.2 !important;
	color: #111827 !important;
}

.mcn-author-bio {
	color: var(--wp--preset--color--muted, #6b7280);
	font-size: 0.9375rem;
	line-height: 1.6;
	margin: 0 0 0.625rem;
}

.mcn-author-stats {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--wp--preset--color--accent, #dc2626);
	background: #fef2f2;
	padding: 0.2rem 0.6rem;
	border-radius: 999px;
	margin: 0 0 0.625rem;
}

.mcn-author-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.mcn-author-website,
.mcn-author-social {
	font-size: 0.8125rem;
	font-weight: 600;
	color: #374151;
	text-decoration: none;
	padding: 0.3rem 0.75rem;
	border: 1px solid #e5e7eb;
	border-radius: 999px;
	transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.mcn-author-website:hover,
.mcn-author-social:hover {
	color: #fff;
	background: var(--wp--preset--color--accent, #dc2626);
	border-color: var(--wp--preset--color--accent, #dc2626);
}

/* Articles heading on author page */
.mcn-author-articles-title {
	margin-top: 0.5rem !important;
}

@media (max-width: 600px) {
	.mcn-author-profile {
		flex-direction: column;
		align-items: center;
		text-align: center;
		padding: 1.5rem;
	}
	.mcn-author-links {
		justify-content: center;
	}
}

/* ─── Post Cards ───────────────────────────────────────────────────────────── */
.mcn-post-card {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.mcn-category-badge {
	display: inline-block;
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--wp--preset--color--accent, #dc2626);
	text-decoration: none;
}

.mcn-post-meta {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.8125rem;
	color: var(--wp--preset--color--muted, #6b7280);
}

.mcn-post-meta .sep {
	opacity: 0.4;
}

/* ─── Section Labels — news-portal style: bold title on a rule line,
       short red segment under the title text ─────────────────────────────── */
.mcn-section-label {
	position: relative;
	font-size: 1.125rem !important;
	font-weight: 800 !important;
	line-height: 1.3 !important;
	margin: 1.75rem 0 1rem !important;
	padding: 0 0 0.5rem 0 !important;
	border-bottom: 2px solid var(--wp--preset--color--border, #e5e5e5);
	color: var(--wp--preset--color--text, #0a0a0a) !important;
}

.mcn-section-label::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 56px;
	height: 2px;
	background: var(--wp--preset--color--accent, #dc2626);
}

/* ─── Pagination ───────────────────────────────────────────────────────────── */
.wp-block-query-pagination {
	margin-block-start: 2.5rem;
	justify-content: center;
}

.wp-block-query-pagination a,
.wp-block-query-pagination .wp-block-query-pagination-numbers .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.25rem;
	height: 2.25rem;
	padding: 0 0.625rem;
	border: 1px solid var(--wp--preset--color--border, #e5e5e5);
	border-radius: 0.25rem;
	font-size: 0.875rem;
	font-weight: 500;
	text-decoration: none;
	color: var(--wp--preset--color--primary-text, #0a0a0a);
	transition: background 0.15s, border-color 0.15s;
}

.wp-block-query-pagination a:hover {
	background: var(--wp--preset--color--light-gray, #f5f5f5);
	border-color: var(--wp--preset--color--muted, #6b7280);
}

.wp-block-query-pagination .page-numbers.current {
	background: var(--wp--preset--color--accent, #dc2626);
	border-color: var(--wp--preset--color--accent, #dc2626);
	color: #fff;
}

/* ─── Archive page wrapper ─────────────────────────────────────────────────── */
.mcn-archive-layout {
	padding-block: 1.5rem 3rem;
}

.mcn-archive-inner {
	padding-inline: 1rem;
}

/* ─── Archive Header ───────────────────────────────────────────────────────── */
.mcn-archive-header {
	padding-bottom: 1rem;
	margin-bottom: 1.75rem;
}

.mcn-archive-header .wp-block-query-title {
	font-size: clamp(1.375rem, 3vw, 2rem);
	font-weight: 800;
	margin: 0 0 0.25rem;
}

.mcn-archive-desc {
	color: var(--wp--preset--color--muted, #6b7280);
	font-size: 0.9375rem;
	margin-block-start: 0.5rem;
}

/* ─── Archive cards ────────────────────────────────────────────────────────── */

/* Grid cells stretch so all cards in a row share the same height */
.mcn-archive-inner .wp-block-post-template > li {
	display: flex;
	flex-direction: column;
}

.mcn-archive-card {
	gap: 0 !important;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	overflow: hidden;
	height: 100%;
	display: flex !important;
	flex-direction: column !important;
	transition: box-shadow 0.2s, transform 0.2s;
}

.mcn-archive-card:hover {
	box-shadow: 0 4px 14px rgba(0,0,0,0.09);
	transform: translateY(-2px);
}

.mcn-archive-card .wp-block-post-featured-image {
	margin: 0 !important;
	padding: 0 !important;
	flex-shrink: 0;
}

.mcn-archive-card .wp-block-post-featured-image img {
	width: 100%;
	display: block;
	transition: transform 0.3s;
}

.mcn-archive-card:hover .wp-block-post-featured-image img {
	transform: scale(1.04);
}

.mcn-archive-card__body {
	padding: 0.75rem;
	gap: 0.35rem !important;
	flex: 1;
}

.mcn-archive-card .wp-block-post-terms {
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--wp--preset--color--accent, #dc2626);
	margin: 0;
}

.mcn-archive-card .wp-block-post-title {
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
	margin: 0;
	flex: 1;
	/* Break overlong Tamil words so the headline never overflows / clips. */
	overflow-wrap: break-word;
	word-break: break-word;
}

.mcn-archive-card .wp-block-post-title a {
	color: #111827;
	text-decoration: none !important;
}

.mcn-archive-card .wp-block-post-title a:hover {
	color: var(--wp--preset--color--accent, #dc2626);
}

.mcn-archive-card .wp-block-post-date {
	font-size: 0.8125rem;
	color: var(--wp--preset--color--muted, #6b7280);
	margin: 0;
}

/* ─── Archive pagination ───────────────────────────────────────────────────── */
.mcn-archive-inner .wp-block-query-pagination {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 2.5rem;
	flex-wrap: wrap;
}

.mcn-no-results {
	text-align: center;
	color: var(--wp--preset--color--muted, #6b7280);
	padding: 3rem 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SINGLE POST PAGE
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 3-column layout — <main> is the grid container ─────────────────────── */
.mcn-single-layout {
	display: grid;
	grid-template-columns: 160px 1fr 160px;
	gap: 1.25rem;
	max-width: 1380px;
	margin-inline: auto;
	padding-inline: 1rem;
	padding-block: 1.5rem 3rem;
	align-items: start;
}

.mcn-sidebar {
	position: sticky;
	top: 1.5rem;
	text-align: center;
	overflow: hidden;
}

.mcn-single-content {
	min-width: 0;
}

@media (max-width: 900px) {
	.mcn-single-layout {
		grid-template-columns: 1fr;
		padding-inline: 1rem;
	}
	.mcn-sidebar {
		display: none;
	}
}

/* ── Remove underlines from all non-content links ───────────────────────── */
.single main a:not(.wp-block-post-content a):not(.skip-link) {
	text-decoration: none !important;
}

/* ── Breadcrumbs ─────────────────────────────────────────────────────────── */
.mcn-breadcrumb {
	margin-block-end: 1rem;
	gap: 0.25rem !important;
}

.single .wp-block-home-link {
	list-style: none;
	display: inline;
	padding: 0;
	margin: 0;
}

.single .wp-block-home-link::marker {
	content: none;
}

.single .wp-block-home-link a,
.mcn-breadcrumb .wp-block-post-terms a {
	color: var(--wp--preset--color--muted, #6b7280);
	font-size: 0.8125rem;
	text-decoration: none !important;
}

.mcn-breadcrumb .wp-block-post-terms a:hover {
	color: var(--wp--preset--color--accent, #dc2626);
}

/* ── Article header ──────────────────────────────────────────────────────── */
.mcn-single-header {
	margin-block-end: 1rem;
	align-items: center !important;
}

/* Category badge — centered pill above H1 */
.mcn-cat-badge {
	text-align: center;
}

.mcn-cat-badge a,
.mcn-single-header .wp-block-post-terms a {
	display: inline-block;
	background: var(--wp--preset--color--accent, #dc2626);
	color: #fff !important;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 0.25rem 1rem;
	border-radius: 999px;
	text-decoration: none !important;
}

.mcn-single-header .wp-block-post-title {
	font-size: clamp(1.5rem, 4vw, 2.5rem);
	line-height: 1.15;
	font-weight: 800;
	color: #0a0a0a;
	text-align: center;
}

/* ── Post meta row ───────────────────────────────────────────────────────── */
.mcn-post-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.375rem;
	font-size: 0.8125rem;
	color: var(--wp--preset--color--muted, #6b7280);
	margin-block-start: 0.625rem;
}

.mcn-meta-sep {
	color: #9ca3af;
	line-height: 1;
}

.mcn-meta-updated {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
}

.mcn-meta-author {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	color: #374151;
	font-weight: 600;
	text-decoration: none !important;
}

.mcn-meta-author:hover {
	color: var(--wp--preset--color--accent, #dc2626);
}

.mcn-meta-avatar {
	width: 24px !important;
	height: 24px !important;
	border-radius: 50% !important;
	object-fit: cover;
	display: inline-block !important;
	vertical-align: middle;
}

.mcn-meta-read-time {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
}

/* ── Social share bar ────────────────────────────────────────────────────── */
.mcn-share-bar {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding-block: 0.75rem;
	flex-wrap: wrap;
	border-top: 1px solid var(--wp--preset--color--border, #e5e7eb);
	margin-block: 0.75rem;
}

.mcn-share-bar--bottom {
	border-bottom: 1px solid var(--wp--preset--color--border, #e5e7eb);
}

.mcn-share-bar__label {
	font-size: 0.8125rem;
	font-weight: 700;
	color: #374151;
	white-space: nowrap;
}

.mcn-share-bar__buttons {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
	align-items: center;
}

.mcn-share-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	padding: 0.4375rem 0.875rem;
	border-radius: 999px;
	font-size: 0.8125rem;
	font-weight: 600;
	text-decoration: none !important;
	transition: opacity 0.15s, transform 0.1s;
	border: none;
	cursor: pointer;
	line-height: 1;
}

.mcn-share-btn:hover {
	opacity: 0.85;
	transform: translateY(-1px);
}

.mcn-share-btn span { color: inherit; }

.mcn-share-btn--fb   { background: #1877f2; color: #fff; }
.mcn-share-btn--x    { background: #000;    color: #fff; }
.mcn-share-btn--wa   { background: #25d366; color: #fff; }
.mcn-share-btn--tg   { background: #0088cc; color: #fff; }
.mcn-share-btn--react {
	background: #fff7ed;
	color: #92400e;
	border: 1px solid #fed7aa;
	font-size: 1rem;
}

.mcn-share-btn--react:hover {
	background: #ffedd5;
	border-color: #fb923c;
}

.mcn-share-react-emoji {
	font-size: 1.125rem;
	line-height: 1;
}

@media (max-width: 480px) {
	/* Hide text labels but KEEP the React emoji (the React button has no SVG icon) */
	.mcn-share-btn span:not(.mcn-share-react-emoji) { display: none; }
	.mcn-share-btn      { padding: 0.5rem; }
}

/* React button (anchor) jumps smoothly to the reactions widget — no JS */
html {
	scroll-behavior: smooth;
}

#mcn-reactions {
	scroll-margin-top: 1.5rem;
}

/* ── Featured image ──────────────────────────────────────────────────────── */
.mcn-single-content .wp-block-post-featured-image {
	max-width: 800px;
	margin-inline: auto;
	margin-block-end: 1.5rem;
}

.mcn-single-content .wp-block-post-featured-image img {
	border-radius: 6px;
	width: 100%;
	height: auto;
	display: block;
}

/* ── Article body content ────────────────────────────────────────────────── */
.wp-block-post-content {
	font-size: 1.0625rem;
	line-height: 1.85;
	color: #1f2937;
}

.wp-block-post-content p {
	margin-block: 1.25em;
}

.wp-block-post-content a {
	color: var(--wp--preset--color--accent, #dc2626);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.wp-block-post-content a:hover { color: #b91c1c; }

.wp-block-post-content h2,
.wp-block-post-content h3,
.wp-block-post-content h4 {
	font-weight: 700;
	line-height: 1.3;
	margin-block: 1.75em 0.75em;
	color: #0a0a0a;
}

/* ── Author card ─────────────────────────────────────────────────────────── */
.mcn-author-card {
	gap: 1rem !important;
}

.mcn-author-card .wp-block-post-author {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.mcn-author-card .wp-block-post-author__avatar img {
	width: 72px !important;
	height: 72px !important;
	border-radius: 50% !important;
	object-fit: cover;
}

.mcn-author-card .wp-block-post-author__name a {
	font-size: 1rem;
	font-weight: 700;
	color: #111827;
	text-decoration: none !important;
}

.mcn-author-card .wp-block-post-author__name a:hover {
	color: var(--wp--preset--color--accent, #dc2626);
}

.mcn-author-card .wp-block-post-author__bio {
	font-size: 0.875rem;
	color: var(--wp--preset--color--muted, #6b7280);
	line-height: 1.5;
	margin: 0.25rem 0 0;
}

/* ── Post navigation ─────────────────────────────────────────────────────── */
.single .wp-block-post-navigation-link a {
	color: var(--wp--preset--color--accent, #dc2626);
	font-weight: 600;
	text-decoration: none !important;
	font-size: 0.875rem;
}

.single .wp-block-post-navigation-link a:hover {
	text-decoration: underline !important;
}

/* ── Section title (இதே போன்ற செய்திகள்) ──────────────────────────────── */
.mcn-section-title {
	font-size: 1.125rem;
	font-weight: 700;
	color: #0a0a0a;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid var(--wp--preset--color--accent, #dc2626);
	display: inline-block;
	margin-block-end: 1.25rem;
}

/* ── Related posts — 4-column cards ─────────────────────────────────────── */

/* Grid cell: stretch to fill row height */
.mcn-single-content .wp-block-post-template > li {
	display: flex;
	flex-direction: column;
}

.mcn-related-card {
	gap: 0 !important;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	overflow: hidden;
	transition: box-shadow 0.2s, transform 0.2s;
	/* fill the li so all cards in a row share same height */
	height: 100%;
	display: flex !important;
	flex-direction: column !important;
}

.mcn-related-card:hover {
	box-shadow: 0 4px 14px rgba(0,0,0,0.09);
	transform: translateY(-2px);
}

/* Image — zero margin/padding, flush to card top */
.mcn-related-card .wp-block-post-featured-image {
	margin: 0 !important;
	padding: 0 !important;
	border-radius: 0;
	overflow: hidden;
	flex-shrink: 0;
}

.mcn-related-card .wp-block-post-featured-image img {
	width: 100%;
	display: block;
	transition: transform 0.3s;
}

.mcn-related-card:hover .wp-block-post-featured-image img {
	transform: scale(1.04);
}

/* Title — fills remaining card height so all cards bottom-align */
.mcn-related-card .wp-block-post-title {
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.4;
	color: #111827;
	padding: 0.625rem 0.75rem 0.875rem;
	margin: 0 !important;
	flex: 1;
}

.mcn-related-card .wp-block-post-title a {
	color: inherit;
	text-decoration: none !important;
}

.mcn-related-card .wp-block-post-title a:hover {
	color: var(--wp--preset--color--accent, #dc2626);
}

/* 4-col → 2-col on mobile */
@media (max-width: 640px) {
	.mcn-single-content .wp-block-post-template {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

/* ── All category/term links in single have no underline ────────────────── */
.single .wp-block-post-terms a {
	text-decoration: none !important;
}

/* ─── Single post tags ──────────────────────────────────────────────────────── */
.mcn-single-tags {
	gap: 0.5rem;
	flex-wrap: wrap;
}

/* Make the terms block itself flex so gap applies between pills */
.mcn-single-tags .wp-block-post-terms {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
}

.mcn-single-tags .wp-block-post-terms a {
	display: inline-block;
	padding: 0.3rem 0.875rem;
	background: #f1f5f9;
	border: 1px solid #cbd5e1;
	border-radius: 999px;
	font-size: 0.8125rem;
	font-weight: 600;
	color: #475569 !important;
	text-decoration: none !important;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.mcn-single-tags .wp-block-post-terms a:hover {
	background: #e2e8f0;
	border-color: #94a3b8;
	color: #1e293b !important;
}

/* ─── Reaction widget ───────────────────────────────────────────────────────── */
.mcn-reactions {
	margin-block: 2rem;
	padding: 1.5rem 1.25rem;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.mcn-reactions__title {
	font-size: 1rem;
	font-weight: 700;
	margin: 0 0 1.25rem;
	color: #111827;
}

.mcn-reactions__grid {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
	justify-content: space-around;
}

.mcn-reaction-btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.375rem;
	background: transparent;
	border: 2px solid transparent;
	border-radius: 12px;
	padding: 0.625rem 0.75rem;
	cursor: pointer;
	transition: transform 0.15s, background 0.15s, border-color 0.15s;
	min-width: 72px;
}

.mcn-reaction-btn:hover:not(:disabled) {
	background: #f9fafb;
	transform: translateY(-4px) scale(1.05);
}

.mcn-reaction-btn__emoji {
	font-size: 3.25rem;
	line-height: 1;
	display: block;
}

.mcn-reaction-btn__label {
	font-size: 0.75rem;
	font-weight: 600;
	color: #374151;
}

.mcn-reaction-btn__pct {
	font-size: 0.6875rem;
	font-weight: 600;
	background: #f3f4f6;
	color: #6b7280;
	padding: 0.125rem 0.5rem;
	border-radius: 999px;
}

/* Voted state */
.mcn-reaction-btn.is-voted {
	cursor: default;
}

.mcn-reaction-btn.is-chosen {
	border-color: var(--wp--preset--color--accent, #dc2626);
	background: #fff5f5;
}

.mcn-reaction-btn.is-chosen .mcn-reaction-btn__pct {
	background: var(--wp--preset--color--accent, #dc2626);
	color: #fff;
}

.mcn-reaction-btn.is-chosen .mcn-reaction-btn__label {
	color: var(--wp--preset--color--accent, #dc2626);
}

.mcn-reaction-btn.is-loading .mcn-reaction-btn__emoji {
	opacity: 0.5;
}

@media (max-width: 480px) {
	.mcn-reaction-btn {
		min-width: 52px;
		padding: 0.5rem;
	}
	.mcn-reaction-btn__emoji {
		font-size: 2.5rem;
	}
}

/* ─── Skip link ────────────────────────────────────────────────────────────── */
.skip-link {
	position: absolute;
	left: -9999px;
	top: 1rem;
	z-index: 999;
	padding: 0.5rem 1rem;
	background: var(--wp--preset--color--accent, #dc2626);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	border-radius: 0.25rem;
}

.skip-link:focus {
	left: 1rem;
}

/* ─── Homepage Section Placeholder ────────────────────────────────────────── */
.mcn-section {
	padding-block: 3rem;
}

.mcn-section--alt {
	background: var(--wp--preset--color--light-gray, #f5f5f5);
}

/* ─── Responsive images ────────────────────────────────────────────────────── */
.wp-block-post-featured-image img {
	width: 100%;
	height: auto;
	display: block;
}

/* ─── Search form ──────────────────────────────────────────────────────────── */
.wp-block-search__input {
	border: 1px solid var(--wp--preset--color--border, #e5e5e5);
	border-radius: 0.25rem 0 0 0.25rem;
	padding: 0.5rem 0.75rem;
}

.wp-block-search__button {
	background: var(--wp--preset--color--accent, #dc2626);
	color: #fff;
	border: none;
	border-radius: 0 0.25rem 0.25rem 0;
	padding: 0.5rem 1rem;
	cursor: pointer;
}

/* ─── No results / 404 ─────────────────────────────────────────────────────── */
.mcn-no-results {
	padding-block: 4rem;
	text-align: center;
}

/* ════════════════════════════════════════════════════════════════════════════
   HOMEPAGE — FIRST SECTION (Lead | Headlines | Ad rail)
   ════════════════════════════════════════════════════════════════════════════ */

/* Section containers: consistent side padding + tight vertical rhythm */
.mcn-top-section,
.mcn-home-body {
	padding-inline: 1.25rem;
}

.mcn-top-section {
	padding-block: 1.25rem 1rem;
}

.mcn-home-body {
	padding-block: 0 2.5rem;
}

/* Top ad strip collapses entirely when no ad code is saved */
.mcn-homepage-top-ad:not(:has(.mcn-ad)) {
	display: none;
}

/* Section head — red-bar title left, "மேலும் பார்க்க →" link right (per design) */
.mcn-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1.375rem;
}

.mcn-section-head__title {
	font-size: 1.375rem !important;
	font-weight: 800 !important;
	line-height: 1.2 !important;
	margin: 0 !important;
	padding-inline-start: 0.75rem;
	border-inline-start: 4px solid var(--wp--preset--color--accent, #dc2626);
}

.mcn-section-head__more {
	margin: 0 !important;
	font-size: 0.875rem;
	font-weight: 600;
	white-space: nowrap;
}

.mcn-top-col--list .mcn-section-head__more,
.mcn-top-col--videos .mcn-section-head__more {
	display: block;
	text-align: center;
	margin-top: 0.875rem !important;
}

.mcn-section-head__more a {
	color: var(--wp--preset--color--text, #0a0a0a);
	text-decoration: none;
	transition: color 0.15s;
}

.mcn-section-head__more a:hover {
	color: var(--wp--preset--color--accent, #dc2626);
}

.mcn-section-head__more a:focus:not(:focus-visible) {
	outline: none;
	box-shadow: none;
}

/* Columns: clean whitespace gutters, no divider lines (per design) */
.mcn-top-columns {
	align-items: flex-start !important;
}

.mcn-top-columns > .wp-block-column {
	min-width: 0;
}

/* ── Featured story card (col 1) — image + முக்கிய செய்தி badge + title + date ── */
.mcn-feature-card__img {
	position: relative;
	overflow: hidden;
	border-radius: 8px;
}

.mcn-feature-card__img::before {
	content: 'முக்கிய செய்தி';
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	background: var(--wp--preset--color--accent, #dc2626);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1;
	padding: 0.4375rem 0.75rem;
	border-radius: 3px;
	pointer-events: none;
}

.mcn-feature-card__img img {
	width: 100%;
	height: auto;
	display: block;
	transition: transform 0.3s ease;
}

.mcn-feature-card:hover .mcn-feature-card__img img {
	transform: scale(1.03);
}

.mcn-feature-card__title {
	font-size: 1.375rem !important;
	font-weight: 800 !important;
	line-height: 1.45 !important;
	margin: 1rem 0 0.625rem !important;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.mcn-feature-card__title a {
	color: inherit !important;
	text-decoration: none !important;
}

.mcn-feature-card__title a:hover {
	color: var(--wp--preset--color--accent, #dc2626) !important;
}

/* Headline list sits below the featured card with breathing room */
.mcn-top-col--lead .wp-block-query + .wp-block-query {
	margin-top: 1.375rem;
}

/* ── Date stamp with clock icon — shared by post-date blocks & video cards ── */
.mcn-date {
	display: flex;
	align-items: center;
	font-size: 0.75rem;
	font-weight: 500;
	color: #9ca3af;
	margin: 0 !important;
}

.mcn-date::before {
	content: '';
	flex-shrink: 0;
	width: 0.875em;
	height: 0.875em;
	margin-inline-end: 0.375em;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v4.5l3 2'/%3E%3C/svg%3E") no-repeat center / contain;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v4.5l3 2'/%3E%3C/svg%3E") no-repeat center / contain;
}

.mcn-date time {
	font-size: inherit;
	color: inherit;
}

/* Muted location/category tag — like Oneindia's "சென்னை" / "Cricket" */
.mcn-muted-tag,
.mcn-muted-tag a {
	font-size: 0.8125rem !important;
	font-weight: 500;
	color: var(--wp--preset--color--muted, #6b7280) !important;
	text-decoration: none !important;
}

/* ── Compact headline rows: thumb left, top-aligned title + date right ──
   align-items here on purpose — do NOT rely on WP's generated
   wp-container-* alignment CSS (core default would centre the thumb). */
.mcn-news-row {
	display: flex;
	align-items: flex-start !important;
	gap: 0.875rem;
	padding-block: 1rem;
	border-bottom: 1px solid #f0f0f0;
	margin: 0;
}

.mcn-news-row .wp-block-post-featured-image {
	flex-shrink: 0;
	margin: 0;
	overflow: hidden;
	border-radius: 4px;
}

.mcn-news-row__img img {
	border-radius: 4px;
	object-fit: cover;
	display: block;
	width: 100%;
	height: 100%;
	transition: transform 0.3s ease;
}

.mcn-news-row:hover .mcn-news-row__img img {
	transform: scale(1.05);
}

.mcn-news-row__body {
	min-width: 0;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
}

.mcn-news-row__title {
	font-size: 0.9375rem !important;
	font-weight: 700 !important;
	line-height: 1.45 !important;
	margin: -0.2em 0 0 !important;
	display: -webkit-box !important;
	-webkit-line-clamp: 3 !important;
	line-clamp: 3 !important;
	-webkit-box-orient: vertical !important;
	overflow: hidden !important;
	/* fallback hard cap — 3 lines × 0.9375rem × 1.45 ≈ 4.08rem */
	max-height: calc(0.9375rem * 1.45 * 3) !important;
}

.mcn-news-row__title a {
	color: inherit !important;
	text-decoration: none !important;
}

.mcn-news-row__title a:hover {
	color: var(--wp--preset--color--accent, #dc2626) !important;
}

/* Kill post-template's default row gap — dividers + padding do the spacing */
.mcn-top-columns .wp-block-post-template {
	gap: 0 !important;
	row-gap: 0 !important;
	margin: 0;
}

/* First-section rows: separated by whitespace only — no divider lines.
   (Body sections keep the divider look via the base .mcn-news-row rule.) */
.mcn-top-columns .mcn-news-row {
	border-bottom: none;
	padding-block: 0.6875rem;
	align-items: stretch !important; /* image stretches to match title height */
}

/* Figure: fixed width, stretches in height with the flex row.
   display:flex lets the <a> child fill it completely.
   All height overrides need !important to beat WP's inline style="height:72px" */
.mcn-top-columns .mcn-news-row .wp-block-post-featured-image {
	width: 110px !important;
	height: auto !important;
	min-height: 72px !important;
	border-radius: 8px;
	overflow: hidden;
	flex-shrink: 0;
	display: flex !important;
	flex-direction: column !important;
}

/* Anchor beats inline style="height:72px" and fills the figure */
.mcn-top-columns .mcn-news-row .wp-block-post-featured-image a {
	flex: 1 1 0% !important;
	height: auto !important;
	min-height: 72px !important;
	display: flex !important;
}

/* Image fills the anchor — beats inline style="height:72px;object-fit:cover" */
.mcn-top-columns .mcn-news-row .wp-block-post-featured-image img,
.mcn-top-columns .mcn-news-row__img img {
	width: 110px !important;
	height: 100% !important;
	min-height: 72px !important;
	object-fit: cover !important;
	display: block;
	border-radius: 8px;
	flex-shrink: 0;
}

.mcn-top-columns .wp-block-post-template li:first-child .mcn-news-row {
	padding-top: 0;
}

.mcn-top-columns .wp-block-post-template li:last-child .mcn-news-row {
	padding-bottom: 0;
}

/* ── Col 3: YouTube video cards ([mcn_video_cards] shortcode) ── */
.mcn-top-col--videos .wp-block-shortcode {
	margin: 0;
}

.mcn-video-cards {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

/* Whole card is a bordered white box — thumbnail + title + date as one unit */
.mcn-video-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	overflow: hidden;
	transition: box-shadow 0.2s, transform 0.2s;
}

.mcn-video-card:hover {
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.09);
	transform: translateY(-2px);
}

.mcn-video-card__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	border-radius: 0;
	overflow: hidden;
	background: var(--wp--preset--color--dark, #111827);
	cursor: pointer;
}

/* Title + date sit inside the card with padding */
.mcn-video-card__body {
	padding: 0.625rem 0.75rem 0.75rem;
}

.mcn-video-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.mcn-video-card:hover .mcn-video-card__media img {
	transform: scale(1.03);
}

/* YouTube wordmark, top-right of the thumbnail */
.mcn-video-card__yt {
	position: absolute;
	top: 10px;
	right: 12px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: #fff;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
	pointer-events: none;
}

/* Centred play button */
.mcn-video-card__play {
	position: absolute;
	inset: 0;
	margin: auto;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background: rgba(15, 15, 15, 0.75);
	color: #fff;
	transition: background 0.15s, transform 0.15s;
	pointer-events: none;
}

.mcn-video-card__play svg {
	margin-left: 3px;
}

.mcn-video-card:hover .mcn-video-card__play {
	background: var(--wp--preset--color--accent, #dc2626);
	transform: scale(1.06);
}

.mcn-video-card__title {
	font-size: 1.0625rem !important;
	font-weight: 700 !important;
	line-height: 1.5 !important;
	margin: 0 0 0.4rem !important;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.mcn-video-card__title a {
	color: inherit;
	text-decoration: none;
}

.mcn-video-card__title a:hover {
	color: var(--wp--preset--color--accent, #dc2626);
}

/* ── Follow Us block — below the video cards in Col 3 ── */
.mcn-follow {
	margin-top: 1.25rem;
	padding: 1rem;
	background: #fafafa;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	display: flex;
	flex-direction: column;
	gap: 0.625rem;
}

.mcn-follow__heading {
	margin: 0 0 0.125rem !important;
	font-size: 0.9375rem;
	font-weight: 800;
	color: #111827;
	text-align: center;
}

.mcn-follow__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.625rem 0.875rem;
	border-radius: 6px;
	font-size: 0.875rem;
	font-weight: 700;
	color: #fff;
	text-decoration: none !important;
	transition: opacity 0.15s, transform 0.15s;
}

.mcn-follow__btn svg {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

.mcn-follow__btn:hover {
	opacity: 0.92;
	transform: translateY(-1px);
}

.mcn-follow__btn--ig {
	background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
	/* Match the fixed-width YouTube widget so the two sit as a balanced pair */
	align-self: center;
	width: 218px;
	max-width: 100%;
}

/* Official YouTube subscribe widget — centre it */
.mcn-follow__yt {
	display: flex;
	justify-content: center;
}

/* ── Mobile: columns stack with comfortable spacing ── */
@media (max-width: 781px) {
	.mcn-top-col--list,
	.mcn-top-col--videos {
		margin-top: 1.5rem;
	}
}

@media (max-width: 480px) {
	.mcn-news-row .wp-block-post-featured-image {
		width: 120px !important;
		height: 72px !important;
	}
}

/* ════════════════════════════════════════════════════════════════════════════
   HOMEPAGE GUTTER RAILS
   The homepage header + body keep the SAME constrained 1240px centred width
   as single posts — content is NEVER squeezed to make room for ads.
   The sticky side rails (sidebar_left / sidebar_right ad codes, output via
   wp_footer in functions.php) only appear when the viewport is wide enough
   that real free space exists OUTSIDE the 1240px content column.
   ════════════════════════════════════════════════════════════════════════════ */
.mcn-rail {
	display: none;
}

.mcn-rail__placeholder {
	box-sizing: border-box;
	width: 160px;
	height: 600px;
	background: #f3f4f6;
	border: 1px dashed #d1d5db;
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.75rem;
	color: #9ca3af;
	letter-spacing: 0.04em;
	text-align: center;
}

/* Desktop: 3-column grid — left rail | content | right rail */
@media (min-width: 1024px) {
	.mcn-body-grid {
		display: grid !important;
		grid-template-columns: 160px 1fr 160px;
		gap: 0 16px;
		align-items: start;
		max-width: 100%;
		padding: 0 !important;
	}

	.mcn-body-grid > .mcn-body-content {
		min-width: 0;
		grid-column: 2;
	}

	.mcn-rail {
		display: block;
		width: 160px;
		position: sticky;
		top: 100px;
		align-self: start;
	}

	.mcn-rail--left  { grid-column: 1; }
	.mcn-rail--right { grid-column: 3; }

	.mcn-rail__placeholder {
		width: 160px;
		height: 600px;
	}
}

/* ════════════════════════════════════════════════════════════════════════════
   HOMEPAGE — 3-Column Layout (Left Ad | Main | Right Ad)
   ════════════════════════════════════════════════════════════════════════════ */

/* Top ad row: centred, max constrained */
.mcn-homepage-top-ad {
	text-align: center;
	overflow: hidden;
}

/* ── Ad slots — responsive desktop / mobile creative pairs ───────────────────── */
.mcn-ad {
	text-align: center;
}

.mcn-ad img,
.mcn-ad__img {
	max-width: 100%;
	height: auto;
	display: inline-block;
}

/* Desktop creative shows ≥782px; mobile creative shows ≤781px */
.mcn-ad--mobile {
	display: none;
}

@media (max-width: 781px) {
	.mcn-ad--desktop {
		display: none;
	}
	.mcn-ad--mobile {
		display: block;
	}
}

/* Below-ticker ad row (global, all pages) — collapses when no ad is set */
.site-header__ad-row {
	padding: 0.5rem 1.25rem;
	text-align: center;
}

.site-header__ad-row:not(:has(.mcn-ad)) {
	display: none;
}

/* Homepage between-section ad — collapses when empty */
.mcn-home-ad {
	text-align: center;
	margin: 0.5rem 0;
}

.mcn-home-ad:not(:has(.mcn-ad)) {
	display: none;
}

/* In-content article ad (300×250, injected every N paragraphs) */
.mcn-ad--incontent {
	clear: both;
}

/* Keep the 3-column block from collapsing below desktop */
.mcn-body-columns {
	align-items: flex-start !important;
}

/* Sidebars: sticky so ads stay in view while scrolling content */
.mcn-sidebar {
	position: sticky;
	top: 1rem;
	align-self: flex-start;
	text-align: center;
}

.mcn-sidebar .wp-block-shortcode {
	display: block;
}

/* ─── Dense homepage grids ──────────────────────────────────────────────────── */

/* Grid cards: tight gaps, no dead space */
.mcn-home-body .wp-block-post-template.is-layout-grid {
	gap: 1.25rem 1rem !important;
}

.mcn-home-body .wp-block-post-featured-image img {
	width: 100%;
	height: auto;
	display: block;
}

/* Card titles clamp to 3 lines so rows stay even */
.mcn-home-body .is-layout-grid .wp-block-post-title {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.mcn-home-body .wp-block-post-title a {
	color: inherit;
	text-decoration: none;
}

.mcn-home-body .wp-block-post-title a:hover {
	color: var(--wp--preset--color--accent, #dc2626);
}

/* ─── Latest-news grid cards (bordered, equal height) ───────────────────────── */

/* Grid cells stretch so every card in a row matches the tallest */
.mcn-home-body .wp-block-post-template.is-layout-grid > li {
	display: flex;
	flex-direction: column;
}

.mcn-grid-card {
	gap: 0 !important;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	overflow: hidden;
	height: 100%;
	display: flex !important;
	flex-direction: column !important;
	transition: box-shadow 0.2s, transform 0.2s;
}

.mcn-grid-card:hover {
	box-shadow: 0 4px 14px rgba(0,0,0,0.09);
	transform: translateY(-2px);
}

/* Thumbnail — fixed 16:9, flush to the card top edge, never varies */
.mcn-grid-card .wp-block-post-featured-image {
	margin: 0 !important;
	padding: 0 !important;
	flex-shrink: 0;
	aspect-ratio: 16 / 9;
}

.mcn-grid-card .wp-block-post-featured-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s;
}

.mcn-grid-card:hover .wp-block-post-featured-image img {
	transform: scale(1.04);
}

.mcn-grid-card__body {
	padding: 0.625rem 0.75rem 0.875rem;
	flex: 1;
}

.mcn-grid-card__body .wp-block-post-title {
	margin: 0 !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HOMEPAGE CATEGORY SECTIONS — [mcn_cat_section]
   ═══════════════════════════════════════════════════════════════════════════ */

.mcn-cat-section {
	margin-bottom: 2.5rem;
}

/* Section head: just the red-bar title (uses the shared .mcn-section-label) */
.mcn-cat-head {
	margin: 0;
}

/* Section footer: "more news →" button at the bottom-right of its section */
.mcn-cat-more {
	display: flex;
	justify-content: flex-end;
	margin-top: 1.25rem;
}

.mcn-cat-more__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.5rem 1.5rem;
	border: 1px solid var(--wp--preset--color--accent, #dc2626);
	border-radius: 999px;
	font-size: 0.8125rem;
	font-weight: 700;
	color: var(--wp--preset--color--accent, #dc2626);
	background: #fff;
	text-decoration: none;
	transition: color 0.15s, background 0.15s;
}

.mcn-cat-more__btn span {
	transition: transform 0.15s;
}

.mcn-cat-more__btn:hover {
	color: #fff;
	background: var(--wp--preset--color--accent, #dc2626);
}

.mcn-cat-more__btn:hover span {
	transform: translateX(3px);
}

/* ── Default grid style (sections 2–5): bordered 4-col cards ── */
.mcn-cat-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.25rem 1rem;
}

.mcn-cat-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	overflow: hidden;
	transition: box-shadow 0.2s, transform 0.2s;
}

.mcn-cat-card:hover {
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.09);
	transform: translateY(-2px);
}

.mcn-cat-card__media {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #f3f4f6;
}

.mcn-cat-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s;
}

.mcn-cat-card__img--blank {
	background: #e5e7eb;
}

.mcn-cat-card:hover .mcn-cat-card__img {
	transform: scale(1.04);
}

.mcn-cat-card__body {
	flex: 1;
	padding: 0.625rem 0.75rem 0.875rem;
}

.mcn-cat-card__title {
	margin: 0 !important;
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.45;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.mcn-cat-card__title a {
	color: #111827;
	text-decoration: none;
}

.mcn-cat-card__title a:hover {
	color: var(--wp--preset--color--accent, #dc2626);
}

/* ── Rows style (sections 3 & 5): horizontal thumbnail-left, 2 columns ── */
.mcn-cat-rows {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 2.5rem;
	margin-top: 0.25rem;
}

.mcn-cat-row {
	align-items: flex-start !important;
}

/* Thumbnail wrapper (block) carries the fixed size; the <a> just fills it */
.mcn-cat-row__thumb {
	flex-shrink: 0;
	width: 130px;
	height: 82px;
	border-radius: 4px;
	overflow: hidden;
	background: #f3f4f6;
}

.mcn-cat-row__img {
	display: block;
	width: 100%;
	height: 100%;
}

.mcn-cat-row__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.mcn-cat-row:hover .mcn-cat-row__img img {
	transform: scale(1.05);
}

.mcn-cat-row__blank {
	display: block;
	width: 100%;
	height: 100%;
	background: #e5e7eb;
}

/* Last two rows: drop the divider line for a clean edge */
.mcn-cat-rows .mcn-cat-row:nth-last-child(-n+2) {
	border-bottom: none;
}

/* ── Gadgets style (section 6): featured story + side list (editorial) ── */
.mcn-gadget-feature {
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	gap: 1.5rem;
	align-items: start;
}

/* Lead wrapper — block-level passthrough (keeps wpautop off the inline <a>) */
.mcn-gadget-lead-col {
	display: block;
	min-width: 0;
}

/* Any stray <p> wpautop might still leave inside the wrapper: neutralise it */
.mcn-gadget-lead-col > p {
	margin: 0;
	display: contents;
}

/* Lead (featured) card — large image on top, title + excerpt below */
.mcn-gadget-lead {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	overflow: hidden;
	text-decoration: none;
	transition: box-shadow 0.2s, transform 0.2s;
}

.mcn-gadget-lead:hover {
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}

.mcn-gadget-lead__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #f3f4f6;
}

.mcn-gadget-lead__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s;
}

.mcn-gadget-lead:hover .mcn-gadget-lead__media img {
	transform: scale(1.05);
}

.mcn-gadget-lead__blank {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #1f2937, #374151);
}

.mcn-gadget-lead__badge {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 0.25rem 0.6rem;
	background: var(--wp--preset--color--accent, #dc2626);
	color: #fff;
	font-size: 0.6875rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	border-radius: 4px;
}

.mcn-gadget-lead__body {
	padding: 0.875rem 1rem 1.125rem;
}

.mcn-gadget-lead__title {
	display: block;
	font-size: 1.1875rem;
	font-weight: 800;
	line-height: 1.3;
	color: #111827;
	transition: color 0.15s;
}

.mcn-gadget-lead:hover .mcn-gadget-lead__title {
	color: var(--wp--preset--color--accent, #dc2626);
}

.mcn-gadget-lead__excerpt {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin-top: 0.5rem;
	font-size: 0.875rem;
	line-height: 1.55;
	color: #6b7280;
}

/* Side list — thumbnail-left items, divider between */
.mcn-gadget-list {
	display: flex;
	flex-direction: column;
}

.mcn-gadget-item {
	display: flex;
	align-items: flex-start;
	gap: 0.875rem;
	padding: 0.75rem 0;
	border-bottom: 1px solid #f0f0f0;
	text-decoration: none;
}

.mcn-gadget-item:first-child {
	padding-top: 0;
}

.mcn-gadget-item:last-child {
	border-bottom: none;
}

.mcn-gadget-item__media {
	flex-shrink: 0;
	width: 96px;
	height: 64px;
	border-radius: 6px;
	overflow: hidden;
	background: #f3f4f6;
}

.mcn-gadget-item__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s;
}

.mcn-gadget-item:hover .mcn-gadget-item__media img {
	transform: scale(1.06);
}

.mcn-gadget-item__blank {
	display: block;
	width: 100%;
	height: 100%;
	background: #e5e7eb;
}

.mcn-gadget-item__title {
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.4;
	color: #111827;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color 0.15s;
}

.mcn-gadget-item:hover .mcn-gadget-item__title {
	color: var(--wp--preset--color--accent, #dc2626);
}

/* ── Responsive: category + gadget grids ── */
@media (max-width: 1023px) {
	.mcn-cat-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 781px) {
	.mcn-gadget-feature {
		grid-template-columns: 1fr;
		gap: 1.25rem;
	}
}

@media (max-width: 781px) {
	.mcn-cat-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.mcn-cat-rows {
		grid-template-columns: 1fr;
		gap: 0;
	}
	/* On 1 column, only the very last row drops its divider */
	.mcn-cat-rows .mcn-cat-row:nth-last-child(-n+2) {
		border-bottom: 1px solid #f0f0f0;
	}
	.mcn-cat-rows .mcn-cat-row:last-child {
		border-bottom: none;
	}
}

@media (max-width: 480px) {
	.mcn-cat-grid {
		grid-template-columns: 1fr 1fr;
	}
}

/* Top Stories 2-col row grid: dividers do the work, no grid row gap */
.mcn-home-body .mcn-row-grid.is-layout-grid {
	gap: 0 2.5rem !important;
}

.mcn-row-grid li:nth-child(-n+2) .mcn-news-row {
	padding-top: 0.25rem;
}

.mcn-row-grid li:nth-last-child(-n+2) .mcn-news-row {
	border-bottom: none;
}

/* ─── Trending / Most-read numbered list (no images — fast + compact) ──────── */
.mcn-home-body .mcn-trending.is-layout-grid {
	gap: 0 2.5rem !important;
}

.mcn-trending > li:nth-last-child(-n+2) {
	border-bottom: none;
}

.mcn-trending {
	counter-reset: mcn-trend;
}

.mcn-trending > li {
	counter-increment: mcn-trend;
	display: flex;
	align-items: flex-start;
	gap: 0.875rem;
	padding-block: 0.875rem;
	border-bottom: 1px solid var(--wp--preset--color--border, #e5e5e5);
	margin: 0 !important;
}

.mcn-trending > li::before {
	content: counter(mcn-trend, decimal-leading-zero);
	font-size: 1.375rem;
	font-weight: 800;
	line-height: 1.1;
	color: var(--wp--preset--color--accent, #dc2626);
	opacity: 0.45;
	flex-shrink: 0;
	min-width: 2rem;
}

.mcn-trending-title {
	font-size: 0.9375rem !important;
	font-weight: 600 !important;
	line-height: 1.5 !important;
	margin: 0 !important;
}

.mcn-trending-title a {
	color: inherit !important;
	text-decoration: none !important;
}

.mcn-trending-title a:hover {
	color: var(--wp--preset--color--accent, #dc2626) !important;
}

/* ── Responsive: dense grids collapse gracefully ── */
@media (max-width: 781px) {
	/* 4-col latest grid → 2 columns on tablets/phones */
	.mcn-home-body .wp-block-post-template.is-layout-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}

	/* Row lists and trending → single column */
	.mcn-home-body .mcn-row-grid.is-layout-grid,
	.mcn-home-body .mcn-trending.is-layout-grid {
		grid-template-columns: 1fr !important;
	}

	/* Single column: restore row paddings/dividers, drop only the very last */
	.mcn-row-grid li:nth-child(-n+2) .mcn-news-row {
		padding-top: 1.125rem;
	}

	.mcn-row-grid li:first-child .mcn-news-row {
		padding-top: 0.25rem;
	}

	.mcn-row-grid li:nth-last-child(-n+2) .mcn-news-row {
		border-bottom: 1px solid var(--wp--preset--color--border, #e5e5e5);
	}

	.mcn-row-grid li:last-child .mcn-news-row,
	.mcn-trending > li:nth-last-child(-n+2) {
		border-bottom: 1px solid var(--wp--preset--color--border, #e5e5e5);
	}

	.mcn-row-grid li:last-child .mcn-news-row {
		border-bottom: none;
	}

	.mcn-trending > li:last-child {
		border-bottom: none;
	}
}

/* ── Responsive: collapse sidebars on tablet/mobile ──────────────────────── */
@media (max-width: 960px) {
	.mcn-body-columns {
		flex-direction: column !important;
	}

	.mcn-sidebar {
		position: static !important;
		width: 100% !important;
		flex-basis: auto !important;
		max-width: 100% !important;
		text-align: center;
	}

	.mcn-sidebar--left {
		order: -1;
	}

	.mcn-sidebar--right {
		order: 99;
	}

	.mcn-main-content {
		width: 100% !important;
		flex-basis: auto !important;
		max-width: 100% !important;
	}
}


/* ════════════════════════════════════════════════════════════════════════════
   LATEST NEWS PAGE — /latest-news
   ════════════════════════════════════════════════════════════════════════════ */

.mcn-latest-page__inner {
	max-width: 1240px;
	margin-inline: auto;
	padding-inline: 1rem;
	padding-block: 1.5rem 2.5rem;
}

.mcn-latest-page__title {
	font-size: 1.25rem !important;
	font-weight: 800 !important;
	margin-block: 0 1.125rem !important;
	padding-bottom: 0.5rem;
	border-bottom: 3px solid var(--wp--preset--color--accent, #dc2626);
}

/* 4-col grid */
.mcn-latest-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
}

/* Post card — white rounded box, image on top, headline below */
.mcn-lc {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid #e5e7eb;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
	transition: box-shadow 0.2s, transform 0.2s;
}

.mcn-lc:hover {
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

.mcn-lc__media {
	display: block;
	line-height: 0;
	font-size: 0;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #f0f0f0;
}

.mcn-lc__media img,
.mcn-lc__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	margin: 0 !important;
	padding: 0 !important;
	transition: transform 0.3s;
}

.mcn-lc:hover .mcn-lc__media img {
	transform: scale(1.04);
}

.mcn-lc__no-img {
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #e5e7eb;
}

.mcn-lc__body {
	display: flex;
	flex-direction: column;
	padding: 1rem 1.125rem 1.25rem;
}

.mcn-lc__title {
	font-size: 0.9375rem !important;
	font-weight: 700 !important;
	line-height: 1.5 !important;
	margin: 0 !important;
	/* Long Tamil compound words have no break points and would otherwise
	   overflow the card and get clipped by .mcn-lc's overflow:hidden. Allow
	   them to wrap so the full headline always stays inside the card. */
	overflow-wrap: break-word;
	word-break: break-word;
}

.mcn-lc__title a {
	color: var(--wp--preset--color--text, #0a0a0a);
	text-decoration: none;
}

.mcn-lc__title a:hover {
	color: var(--wp--preset--color--accent, #dc2626);
}

.mcn-lc__title a:focus:not(:focus-visible) {
	outline: none;
	box-shadow: none;
}

.mcn-lc p:empty {
	display: none;
}

/* Billboard — spans all 4 cols, 970×250 */
.mcn-latest-billboard {
	grid-column: 1 / -1;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 0.25rem 0;
}

.mcn-latest-billboard > * {
	width: 100%;
	max-width: 970px;
}

/* 300×250 inline — one grid slot, same footprint as a card */
.mcn-latest-ad300 {
	display: flex;
	align-items: stretch;
	justify-content: center;
	background: #fff;
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid #e5e7eb;
}

.mcn-latest-ad300 > * {
	width: 100%;
}

/* Mockup placeholders */
.mcn-ad-mock {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f9fafb;
	border: 1px dashed #d1d5db;
	border-radius: 8px;
	font-size: 0.6875rem;
	font-weight: 600;
	color: #9ca3af;
	letter-spacing: 0.04em;
}

.mcn-ad-mock--billboard {
	width: 100%;
	max-width: 970px;
	height: 250px;
}

.mcn-ad-mock--rect {
	width: 100%;
	height: 100%;
	min-height: 250px;
}

/* Load More */
.mcn-latest-more-wrap {
	text-align: center;
	padding: 1.75rem 0 0.5rem;
}

.mcn-latest-more-btn {
	display: inline-block;
	padding: 0.5625rem 2.25rem;
	background: transparent;
	color: var(--wp--preset--color--accent, #dc2626);
	border: 1.5px solid var(--wp--preset--color--accent, #dc2626);
	border-radius: 3px;
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
}

.mcn-latest-more-btn:hover:not(:disabled) {
	background: var(--wp--preset--color--accent, #dc2626);
	color: #fff;
}

.mcn-latest-more-btn:disabled {
	opacity: 0.55;
	cursor: wait;
}

@media (max-width: 900px) {
	.mcn-latest-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 600px) {
	.mcn-latest-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.mcn-latest-ad300 {
		display: none;
	}

	/* Show the FULL headline — never trim. On the narrow 2-col layout we just
	   shrink the title a touch so long titles take fewer lines and cards stay
	   compact. (Term grid: category / tag / archive.) */
	.mcn-lc__title {
		font-size: 0.8125rem !important;
		line-height: 1.4 !important;
	}

	/* Same treatment for the core query-loop cards (search / author pages). */
	.mcn-archive-card .wp-block-post-title {
		font-size: 0.8125rem;
		line-height: 1.35;
	}
}

/* ════════════════════════════════════════════════════════════════════════════
   SITE FOOTER — dark, compact, organised
   ════════════════════════════════════════════════════════════════════════════ */
.site-footer {
	background: var(--wp--preset--color--dark, #111827) !important;
	color: #d1d5db !important;
	padding: 1rem 0 1rem !important;
	font-size: 0.875rem;
}

.site-footer .site-footer__inner {
	max-width: 1240px;
	margin-inline: auto;
	padding-inline: 1.25rem;
}

/* White logo on dark background */
.site-footer .wp-block-site-logo img {
	max-height: 40px;
	width: auto;
	filter: brightness(0) invert(1);
}

.site-footer .wp-block-site-tagline {
	color: #9ca3af !important;
	font-size: 0.8438rem;
	line-height: 1.6;
	margin-top: 0.75rem !important;
}

/* Column headings */
.site-footer h4 {
	font-size: 0.8125rem !important;
	font-weight: 700 !important;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #fff !important;
	margin: 0 0 0.875rem !important;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

/* Footer nav links */
.site-footer .wp-block-navigation a {
	color: #d1d5db !important;
	font-size: 0.875rem;
	text-decoration: none !important;
	padding: 0.1875rem 0;
	transition: color 0.15s;
}

.site-footer .wp-block-navigation a:hover {
	color: #fff !important;
}

.site-footer p {
	color: #9ca3af;
	line-height: 1.65;
}

/* Row 1: copyright + legal links (now the top row — no empty space above) */
.site-footer__bottom {
	margin-top: 0 !important;
	font-size: 0.8125rem;
}

.site-footer__bottom p {
	color: #6b7280;
	margin: 0;
	font-size: 0.8125rem;
}

.site-footer__bottom a {
	color: #9ca3af !important;
	text-decoration: none;
}

.site-footer__bottom a:hover {
	color: #fff !important;
}

/* Row 2: developer credits — centred, thin divider above */
.site-footer__credits {
	margin-top: 0.875rem !important;
	padding-top: 0.875rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	text-align: center;
}

.site-footer__credits p {
	margin: 0;
	color: #6b7280;
	font-size: 0.8125rem;
}

.site-footer__credits a {
	color: #9ca3af !important;
	text-decoration: none;
	font-weight: 600;
}

.site-footer__credits a:hover {
	color: #fff !important;
}

@media (max-width: 781px) {
	.site-footer {
		padding: 2rem 0 1rem !important;
		text-align: center;
	}

	.site-footer .wp-block-site-logo {
		display: flex;
		justify-content: center;
	}

	.site-footer__bottom {
		flex-direction: column;
		gap: 0.5rem;
	}
}