/**
 * Koyalanchal Child — Option A refresh (2 Dec 2026).
 * Loads LAST (after the parent's styles incl. newsup-performance at
 * priority 99), so these rules win on equal specificity. Parent files
 * are untouched. AdSense is Auto Ads only — no ad slots are touched;
 * layout changes are limited to the items below. Ad styling lives in
 * §18 (v1.18.0): in-flow Auto Ads units get the site's card treatment.
 */

/* ============ 1. HERO ============ */
/* The hero slider (#homemain) is an <img> inside .mg-blog-post.lg, sized
   by the theme's INLINE customizer CSS (#newsup-style-inline-css):
   height 100%, object-fit cover, object-position center. The
   background-* rules below are kept as a no-op defence for any .back-img
   that IS a background image — they do nothing for the <img> hero.
   FOCAL POINT (2 Dec fix): center crops portrait/square slides
   vertically — the 1 Dec WhatsApp portrait (384x518, BJP Seva Doot
   slide) had its head cut off, and the square 3-person collage lost its
   top face. center 5% keeps the portrait head fully in frame at desktop
   (475px slot) and mobile (300px slot); the two 16:9 slides have no
   vertical crop so they are unaffected; the square collage keeps its
   top-right face fully and the top half of the bottom-right face (no
   single value can show all three faces in a 475px window of a 730px
   image). Long-term the portrait still wants an editorial replacement
   (384px upscaled ~1.9x — no CSS can add pixels). The #homemain ID
   beats the inline rule's (0,4,1) specificity. */
.mg-blog-post.lg.back-img {
	background-size: cover;
	background-position: center center;
}
#homemain .mg-blog-post.lg img.mg-featured-image {
	object-fit: cover;
	object-position: center 5%;
}

/* ============ 2. IN-ARTICLE IMAGES ============ */
/* Editor inserts default to 'medium' (200px), so existing posts keep that
   HTML. Fill the ~730px content column instead; the browser picks the
   ~768w candidate from srcset (sizes fixed in functions.php). Floated
   images keep their size. */
.page-content-single img.size-medium:not(.alignleft):not(.alignright),
.page-content-single img.size-large:not(.alignleft):not(.alignright),
.page-content-single img.size-full:not(.alignleft):not(.alignright) {
	width: 100%;
	height: auto;
}

/* ============ 3. TYPE SCALE ============ */
/* Body line-height 30px (1.875) -> 1.7; headings scale with clamp() so
   they shrink sanely on phones instead of staying at fixed desktop sizes. */
body {
	line-height: 1.7;
}
.page-content-single h1,
.mg-blog-post-box h1.title.single {
	font-size: clamp(26px, 5vw, 34px);
	line-height: 1.25;
}
.page-content-single h2 {
	font-size: clamp(24px, 4.5vw, 32px);
	line-height: 1.3;
}
.page-content-single h3 {
	font-size: clamp(21px, 4vw, 28px);
	line-height: 1.35;
}
.page-content-single h4 {
	font-size: clamp(19px, 3.5vw, 24px);
	line-height: 1.4;
}

/* ============ 4. HOMEPAGE H1 (SEO) ============ */
/* The homepage H1 is the site title, hidden with Bootstrap .d-none because
   the logo already shows the brand. Keep it in the DOM (not display:none)
   using the standard visually-hidden pattern — no layout change. */
h1.site-title.d-none {
	display: block !important;
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* ============ 5. BADGES / META / TAP TARGETS ============ */
/* Category chips: 10px/~18px tall -> 12px/~30px tall. */
.mg-blog-category a {
	font-size: 12px;
	padding: 7px 10px;
	line-height: 1.3;
}
/* Dropdown items: 9px -> 12px vertical padding (navigation.css:157). */
.navbar-wp .dropdown-menu > li > a,
.navbar-wp .dropdown-menu .dropdown-item {
	padding-top: 12px;
	padding-bottom: 12px;
}
/* Burger hit area: ~48x40 -> >=48x48. */
.navbar-toggler {
	min-width: 48px;
	min-height: 48px;
	padding: 0.75rem 1rem;
}
/* Mobile nav links: roomier tap targets (collapsed menu, <=991px). */
@media (max-width: 991px) {
	.navbar-wp .navbar-nav > li > a {
		padding: 14px 16px;
	}
}

/* ============ 6. STICKY NAV ============ */
/* Works because the child header.php places .mg-menu-full outside
   <header> (a sticky element cannot stick past its parent's box).
   ROOT CAUSE of the transparent-sticky defect (found by the 2 Dec
   desktop visual check): the theme's nav background lives in
   newsup/css/colors/default.css as `.mg-headwidget .navbar-wp`
   (#92400e) — scoped under the <header> element (.mg-headwidget).
   Moving .mg-menu-full out of <header> orphaned the nav from that
   rule, so it went transparent and the links floated over photos and
   headlines. Fix: restore the theme's own colour on the moved wrapper
   itself, plus a subtle shadow so the bar separates from content when
   stuck. Admin-bar offset keeps it below the WP bar when logged in. */
.mg-menu-full {
	position: sticky;
	top: 0;
	z-index: 1030;
	background: #92400e;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
body.admin-bar .mg-menu-full {
	top: 32px;
}
@media (max-width: 782px) {
	body.admin-bar .mg-menu-full {
		top: 46px;
	}
}

/* ============ 7. MOBILE: horizontal-scroll guard + align bleed ============ */
/* The parent's .alignwide/.alignfull bleed (left:-20px, width:100%+40px)
   is only reset at min-width:570px — undo it below 570px at the source. */
@media (max-width: 569px) {
	.alignwide,
	.alignfull {
		left: 0;
		width: 100%;
		max-width: 100%;
	}
}
/* Defense-in-depth: clip horizontal overflow on the content area only,
   on MOBILE (where the <570px align bleed lives). Deliberately NOT on
   html/body, and NOT on desktop: a non-visible overflow on an ancestor
   is the prime suspect for the desktop sidebar sticky not working
   (Phase 2), and desktop has no align bleed (the parent resets it at
   min-width:570px). */
@media (max-width: 768px) {
	#content {
		overflow-x: clip;
	}
}

/* ============ 8. MOBILE APP-SHELL (max-width: 768px) ============ */
/* App-like mobile shell, modelled on the reference portals
   (aajkijandhara / cgkhabar): slim sticky top bar, horizontal
   category strip, trending chips, breaking ticker, compact card
   list, fixed bottom nav. Everything here is mobile-only — desktop
   is untouched: the bottom nav, category strip and mobile brand are
   display:none above 768px, and every restyle below sits inside the
   media query. */

/* Hidden on desktop (shown only inside the media query below). */
.ky-bottom-nav,
.ky-cat-strip,
.ky-mobile-brand,
.ky-overlay,
.ky-drawer,
.ky-search-panel,
.ky-wa-float,
.ky-wa-panel {
	display: none;
}

@media (max-width: 768px) {
	/* --- 8a. Slim sticky top bar --- */
	/* Hide the date/time bar and the big logo banner on mobile; the
	   sticky navy nav (.mg-menu-full, §6) becomes the slim top bar.
	   Note: hiding the banner also hides the H1 on mobile — it was
	   display:none (Bootstrap .d-none) on mobile before the refresh
	   too, and it stays visually-hidden on desktop, so nothing is
	   lost vs the original theme. */
	.mg-head-detail,
	.mg-nav-widget-area-back {
		display: none;
	}
	/* Compact brand in the mobile top bar. The custom logo is
	   white-on-transparent, so it reads on the navy bar. */
	.ky-mobile-brand {
		display: flex;
		align-items: center;
		margin: 0 auto;
		min-width: 0;
	}
	.ky-mobile-brand .ky-mobile-logo {
		height: 32px;
		width: auto;
		max-width: 150px;
	}
	.ky-mobile-wordmark {
		color: #fff;
		font-weight: 800;
		font-size: 17px;
		letter-spacing: 1px;
		white-space: nowrap;
	}
	.m-header {
		gap: 8px;
	}

	/* --- 8b. Category strip (horizontal scroll) --- */
	.ky-cat-strip {
		display: block;
		background: #fff;
		border-bottom: 1px solid #eee;
	}
	.ky-cat-strip-inner {
		display: flex;
		gap: 4px;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		padding: 8px 10px;
	}
	.ky-cat-strip-inner::-webkit-scrollbar {
		display: none;
	}
	.ky-cat-strip a {
		white-space: nowrap;
		font-size: 14px;
		font-weight: 600;
		color: #333;
		padding: 6px 12px;
		border-radius: 999px;
		text-decoration: none;
	}
	.ky-cat-strip a.active {
		background: #92400e;
		color: #fff;
	}

	/* --- 8c. Trending chips (existing Top Tags) --- */
	/* v1.3 MARQUEE: the row auto-scrolls (JS rAF on the <ul>'s own
	   scrollLeft, items duplicated once for a seamless loop). The <ul>
	   is the scroll container, so the "Top Tags" label stays fixed on
	   the left while the pills move. Swipe still works — the <ul>
	   keeps overflow-x:auto. Without JS the row is just a swipeable
	   strip (no duplication, no auto-scroll). */
	.mg-tpt-tag-area {
		padding: 8px 0;
	}
	.mg-tpt-txnlst {
		display: flex;
		align-items: center;
		gap: 8px;
		overflow: hidden;
		padding: 0 10px;
	}
	.mg-tpt-txnlst strong {
		flex-shrink: 0;
		margin: 0;
		font-size: 12px;
		color: #c2410c;
	}
	.mg-tpt-txnlst ul {
		display: flex;
		gap: 8px;
		flex: 1;
		min-width: 0;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}
	.mg-tpt-txnlst ul::-webkit-scrollbar {
		display: none;
	}
	.mg-tpt-txnlst ul li {
		flex-shrink: 0;
	}
	.mg-tpt-txnlst ul li a {
		display: inline-block;
		white-space: nowrap;
		background: #f1f3f5;
		border: 1px solid #e2e2e2;
		color: #92400e;
		border-radius: 999px;
		padding: 6px 12px;
		font-size: 13px;
	}

	/* --- 8d. Breaking ticker (existing Latest Post marquee) --- */
	.mg-latest-news {
		gap: 10px;
		min-height: 36px;
	}
	.mg-latest-news .bn_title .title {
		font-size: 13px;
		line-height: 34px;
		min-height: 34px;
		padding: 0 10px;
		background: #c2410c;
	}
	.mg-latest-news .bn_title .effect-ripple {
		display: none;
	}
	.mg-latest-news .mg-latest-news-slider a {
		font-size: 14px;
		padding-left: 8px;
	}

	/* --- 8e. Compact card list --- */
	.small-post {
		display: flex;
		gap: 12px;
		padding: 12px 0;
		border-bottom: 1px solid #eee;
	}
	.small-post .img-small-post {
		flex: 0 0 110px;
	}
	.small-post .img-small-post img {
		width: 110px;
		height: 82px;
		object-fit: cover;
		border-radius: 6px;
	}
	.small-post .small-post-content {
		flex: 1;
		min-width: 0;
	}
	.small-post .title_small_post {
		font-size: 15px;
		line-height: 1.35;
		display: -webkit-box;
		-webkit-line-clamp: 3;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}
	.small-post .mg-blog-meta {
		font-size: 12px;
		margin-top: 4px;
	}

	/* --- 8f. Hide homepage bloat on mobile --- */
	/* NOTE (Koyalanchal): the footer t4b tickers (#block-12, #block-14)
	   are NOT hidden here — ticker_postno is capped at 10, so each
	   renders 10 items, not ~300. Only the sidebar lists are hidden. */
	#archives-1,   /* sidebar: Archives */
	#categories-2 { /* sidebar: full category list */
		display: none;
	}

	/* --- 8g. Bottom fixed nav --- */
	.ky-bottom-nav {
		display: flex;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 1040;
		background: #fff;
		border-top: 1px solid #e2e2e2;
		box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
		padding-bottom: env(safe-area-inset-bottom);
	}
	.ky-bnav-item {
		flex: 1;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 2px;
		padding: 8px 0 7px;
		color: #666;
		text-decoration: none;
		background: none;
		border: 0;
		font: inherit;
		font-size: 20px;
		line-height: 1;
		cursor: pointer;
	}
	.ky-bnav-item .ky-bnav-label {
		font-size: 11px;
		line-height: 1.2;
	}
	.ky-bnav-item.active {
		color: #92400e;
	}
	.ky-bnav-item:focus-visible {
		outline: 2px solid #92400e;
		outline-offset: -2px;
	}
	/* Back-to-top button must clear the fixed nav. */
	.ta_upscr {
		bottom: 74px;
	}
	/* No bottom padding on #page: the fixed-nav clearance now lives
	   INSIDE the footer itself (footer .overlay padding-bottom, §15),
	   so the page ends at the blue footer with no strip below it.
	   (Was 62px — that padding showed as a white strip under the
	   footer once the trailing credits line was removed, user order
	   23:37.) */
	#page {
		padding-bottom: 0;
	}
}

/* ============ 9. DESKTOP (min-width: 769px) ============ */
/* Desktop-only space utilisation + polish (2 Dec 2026). Everything
   here sits inside the media query, so the mobile app-shell (§8) is
   untouched. */

/* --- 9a. Tighten the dead space above the ticker --- */
/* The banner (.mg-nav-widget-area-back .inner) carries 25px padding
   top+bottom around the logo, and the date bar 8px — that stack is the
   dead space the user flagged above the ticker. Slim the banner to a
   brand bar and cap the logo height (natural size is 693x205). */
@media (min-width: 769px) {
	/* --- 9a. Slimmer header (Phase 2): the desktop check found the
	   header still ~300px tall (banner ~100 + nav ~90 + tags + ticker).
	   Tighten every layer; nothing is hidden. Before ≈ 265px
	   (date 30 + banner 96 + nav ~65 + tags 36 + ticker 40);
	   after ≈ 210px (date 26 + banner 72 + nav ~46 + tags 32 +
	   ticker 34). */
	.mg-nav-widget-area-back .inner {
		padding: 8px 0;
	}
	.mg-head-detail {
		padding: 3px 0;
	}
	.mg-nav-widget-area .site-logo img.custom-logo {
		max-height: 56px;
		width: auto;
	}
	.mg-tpt-tag-area {
		padding: 0;
	}
	/* Nav: tighter link + bar padding (Bootstrap defaults are .5rem;
	   the menu links carry no theme padding of their own). */
	.navbar-wp {
		padding-top: 4px;
		padding-bottom: 4px;
	}
	.navbar-wp .navbar-nav > li > a {
		padding: 6px 12px;
	}
	/* Ticker: shorter bar. */
	.mg-latest-news {
		min-height: 34px;
	}
	.mg-latest-news .bn_title .title {
		line-height: 33px;
		font-size: 18px;
	}

	/* --- 9b. Card polish: soft shadow + hover lift on the homepage
	   list cards (.small-post). Tasteful only — no colour or layout
	   change, and the hero (.mg-blog-post.lg) is not touched.
	   Phase 2: the 2px lift + faint shadow was NOT visible in the
	   desktop check — make it unmistakable (4px lift, deeper shadow,
	   border tint). --- */
	.small-post {
		background: #fff;
		border: 1px solid #ececec;
		border-radius: 8px;
		box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
		padding: 14px;
		margin-bottom: 16px;
		transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
	}
	.small-post:hover {
		box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
		transform: translateY(-4px);
		border-color: #fde68a;
	}
	.small-post .img-small-post img {
		border-radius: 6px;
	}

	/* --- 9c. Sticky sidebar (Phase 2) --- */
	/* The desktop check found the right column empty beside the last
	   3–4 feed cards: the sidebar ends before the feed. The parent
	   theme already declares .sidebar-sticky (sticky, top:24px) but
	   two things defeat it: (1) the child theme's #content
	   overflow-x:clip (§7) is a non-visible overflow on an ancestor —
	   now scoped to mobile only; (2) top:24px slides the sidebar
	   UNDER the sticky nav. Restate it here explicitly with a top
	   that clears the slimmed nav (~46px) plus margin. The sticky
	   element travels exactly the sidebar's shortfall, so the right
	   column stays filled down to the last card; the capped widgets
	   (Archives 12mo, Categories top 15, ticker 10) stay capped. */
	.sidebar-sticky {
		position: sticky;
		align-self: flex-start;
		top: 88px;
	}

	/* --- 9d. Grid card images: fixed crop (Phase 2) --- */
	/* .mg-blog-post-3 cards ("You missed" + grids) render tall
	   portrait photos (e.g. the 384x518 WhatsApp portrait) at natural
	   size: the image is narrower than the card and far taller than
	   the text, leaving a large white area. Fix: fixed-height image
	   box + object-fit:cover so every card image fills the same
	   frame without distortion (15% focal point keeps faces near the
	   top of portraits in frame). The hero (.mg-blog-post.lg) uses
	   different rules and is NOT touched; .small-post thumbs (88x88,
	   already cropped) are NOT touched. */
	.mg-blog-post-3 .mg-blog-img {
		height: 190px;
		min-height: 0;
		max-height: none;
	}
	.mg-blog-post-3 .mg-blog-img img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		object-position: center 15%;
	}
	/* The parent caps modul-1 card images at max-height:160px — that
	   would leave a gap inside the 190px box, so lift the cap here
	   (same specificity as the parent rule, child CSS loads last). */
	.mg-posts-modul-1 .mg-blog-post-3 .mg-blog-img img {
		max-height: none;
	}
}

/* ============ 10. MOBILE v1.2 (max-width: 768px) ============ */
/* User feedback after checking the app-shell on his phone (2 Dec 2026):
   categories open a SIDE drawer (not the top menu), search opens a real
   panel, the top navbar goes away, Contact Us becomes a floating
   WhatsApp side button, gradients go professional, and post/page
   reading goes app-like. Everything here is mobile-only. */

@media (max-width: 768px) {
	/* [hidden] must win over the display rules below (author styles
	   beat the UA [hidden] rule), otherwise closed overlays would
	   still paint. */
	.ky-overlay[hidden],
	.ky-drawer[hidden],
	.ky-search-panel[hidden],
	.ky-wa-panel[hidden] {
		display: none !important;
	}
	/* Scroll lock while an overlay is open. */
	body.ky-no-scroll {
		overflow: hidden;
	}

	/* --- 10a. Slim header: the top navbar goes away --- */
	/* The bottom nav already has Videos + About; the top bar keeps
	   ONLY the logo. Home button, burger and the search icon (the
	   whole .mg-search-box dropdown) are hidden, and so is the
	   collapsible #navbar-wp menu they opened. The sticky navy bar
	   itself stays — it is the slim header now, with a subtle
	   professional gradient instead of flat navy. */
	.mg-menu-full .m-header .mobilehomebtn,
	.mg-menu-full .m-header .navbar-toggler,
	.mg-menu-full .m-header .mg-search-box,
	.mg-menu-full #navbar-wp {
		display: none !important;
	}
	.mg-menu-full {
		background: linear-gradient(135deg, #92400e 0%, #16223f 100%);
	}
	.mg-menu-full .m-header {
		justify-content: center;
	}

	/* --- 10b. Professional gradients + interactive touches --- */
	.ky-cat-strip a.active {
		background: linear-gradient(135deg, #92400e 0%, #b45309 100%);
	}
	.ky-bnav-item {
		position: relative;
		transition: transform 0.15s ease, color 0.15s ease;
	}
	.ky-bnav-item:active {
		transform: scale(0.94);
	}
	.ky-bnav-item.active::before {
		content: "";
		position: absolute;
		top: 0;
		left: 22%;
		right: 22%;
		height: 3px;
		border-radius: 0 0 4px 4px;
		background: linear-gradient(90deg, #92400e, #f59e0b);
	}
	.small-post {
		transition: background-color 0.15s ease;
	}
	.small-post:active {
		background-color: #fffbeb;
	}

	/* --- 10c. Categories side drawer --- */
	.ky-overlay {
		display: block;
		position: fixed;
		inset: 0;
		background: rgba(69, 26, 3, 0.45);
		z-index: 1050;
		opacity: 0;
		transition: opacity 0.25s ease;
	}
	.ky-overlay.open {
		opacity: 1;
	}
	.ky-drawer {
		display: flex;
		flex-direction: column;
		position: fixed;
		top: 0;
		left: 0;
		bottom: 0;
		width: min(320px, 85vw);
		background: #fff;
		z-index: 1051;
		transform: translateX(-105%);
		transition: transform 0.3s ease;
		box-shadow: 4px 0 24px rgba(0, 0, 0, 0.18);
	}
	.ky-drawer.open {
		transform: translateX(0);
	}
	.ky-drawer-head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 12px 12px 12px 20px;
		background: linear-gradient(135deg, #92400e 0%, #b45309 100%);
		color: #fff;
	}
	.ky-drawer-title {
		font-size: 18px;
		font-weight: 700;
	}
	.ky-drawer-close {
		background: none;
		border: 0;
		color: #fff;
		font-size: 20px;
		width: 44px;
		height: 44px;
		cursor: pointer;
	}
	.ky-drawer-list {
		flex: 1;
		overflow-y: auto;
		padding: 6px 0;
	}
	.ky-drawer-list a {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 13px 20px;
		border-bottom: 1px solid #f0f0f0;
		font-size: 15px;
		font-weight: 600;
		color: #222;
		text-decoration: none;
	}
	.ky-drawer-list a .fa-chevron-right {
		font-size: 12px;
		color: #aaa;
	}
	.ky-drawer-list a.active {
		color: #92400e;
		background: linear-gradient(90deg, rgba(146, 64, 14, 0.08), rgba(146, 64, 14, 0));
		border-left: 3px solid #92400e;
	}
	.ky-drawer-foot {
		display: flex;
		justify-content: center;
		gap: 10px;
		padding: 14px;
		border-top: 1px solid #eee;
		font-size: 13px;
	}
	.ky-drawer-foot a {
		color: #92400e;
		font-weight: 600;
	}

	/* --- 10d. Search panel (top sheet, large input) --- */
	.ky-search-panel {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 1052;
		background: rgba(69, 26, 3, 0.5);
		opacity: 0;
		transition: opacity 0.25s ease;
		pointer-events: none;
	}
	.ky-search-panel.open {
		opacity: 1;
		pointer-events: auto;
	}
	.ky-search-sheet {
		background: #fff;
		border-radius: 0 0 16px 16px;
		padding: 14px 16px 18px;
		transform: translateY(-110%);
		transition: transform 0.3s ease;
		box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
	}
	.ky-search-panel.open .ky-search-sheet {
		transform: translateY(0);
	}
	.ky-search-top {
		display: flex;
		align-items: center;
		justify-content: space-between;
		margin-bottom: 12px;
	}
	.ky-search-title {
		font-size: 17px;
		font-weight: 700;
		color: #92400e;
	}
	.ky-search-close {
		background: none;
		border: 0;
		font-size: 20px;
		color: #555;
		width: 44px;
		height: 44px;
		cursor: pointer;
	}
	.ky-search-field {
		display: flex;
		border: 2px solid #92400e;
		border-radius: 12px;
		overflow: hidden;
		background: linear-gradient(180deg, #ffffff, #fffbeb);
	}
	.ky-search-field input[type="search"] {
		flex: 1;
		min-width: 0;
		border: 0;
		outline: none;
		padding: 14px 12px;
		font-size: 18px;
		background: transparent;
	}
	.ky-search-submit {
		flex: 0 0 52px;
		border: 0;
		background: linear-gradient(135deg, #92400e 0%, #b45309 100%);
		color: #fff;
		font-size: 18px;
		cursor: pointer;
	}
	.ky-search-hint {
		margin: 10px 2px 0;
		font-size: 13px;
		color: #777;
	}

	/* --- 10e. Floating WhatsApp Contact Us (side button + slide-out) --- */
	.ky-wa-float {
		display: flex;
		align-items: center;
		justify-content: center;
		position: fixed;
		right: 0;
		top: 46%;
		z-index: 1045;
		width: 52px;
		height: 52px;
		border: 0;
		border-radius: 26px 0 0 26px;
		background: #25d366;
		color: #fff;
		font-size: 28px;
		cursor: pointer;
		box-shadow: -2px 2px 12px rgba(0, 0, 0, 0.25);
		animation: ky-wa-pulse 2.6s ease-out infinite;
	}
	@keyframes ky-wa-pulse {
		0% { box-shadow: -2px 2px 12px rgba(0, 0, 0, 0.25), 0 0 0 0 rgba(37, 211, 102, 0.45); }
		70% { box-shadow: -2px 2px 12px rgba(0, 0, 0, 0.25), 0 0 0 12px rgba(37, 211, 102, 0); }
		100% { box-shadow: -2px 2px 12px rgba(0, 0, 0, 0.25), 0 0 0 0 rgba(37, 211, 102, 0); }
	}
	.ky-wa-panel {
		display: block;
		position: fixed;
		right: 0;
		top: 46%;
		transform: translate(105%, -50%);
		width: min(320px, 86vw);
		background: #fff;
		border-radius: 14px 0 0 14px;
		box-shadow: -4px 0 24px rgba(0, 0, 0, 0.2);
		/* MUST sit above the shared dimming backdrop (.ky-overlay,
		   z-index 1050): at 1046 the overlay covered the panel, so the
		   panel itself looked dark and the overlay ate every tap (the
		   tel:/mailto: links were unreachable). 1053 keeps the panel
		   bright and tappable while the page behind stays dimmed. */
		z-index: 1053;
		transition: transform 0.3s ease;
		/* Text must stay selectable/copyable even if any parent rule
		   sets user-select: none (the parent theme does, in places). */
		-webkit-user-select: text;
		user-select: text;
	}
	.ky-wa-panel.open {
		transform: translate(0, -50%);
	}
	.ky-wa-head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 10px 10px 10px 18px;
		background: linear-gradient(135deg, #128c7e 0%, #25d366 100%);
		color: #fff;
		border-radius: 14px 0 0 0;
	}
	.ky-wa-title {
		font-size: 16px;
		font-weight: 700;
	}
	.ky-wa-close {
		background: none;
		border: 0;
		color: #fff;
		font-size: 18px;
		width: 40px;
		height: 40px;
		cursor: pointer;
	}
	.ky-wa-body {
		padding: 14px 18px 16px;
		font-size: 14px;
	}
	.ky-wa-person {
		margin: 0 0 2px;
	}
	.ky-wa-person strong {
		display: block;
		font-size: 15px;
		color: #111;
	}
	.ky-wa-person span {
		font-size: 12px;
		color: #777;
	}
	.ky-wa-line {
		margin: 2px 0 10px;
		color: #333;
	}
	.ky-wa-line i {
		color: #128c7e;
		margin-right: 6px;
	}
	.ky-wa-line a {
		color: #92400e;
		text-decoration: none;
		overflow-wrap: anywhere;
	}
	.ky-wa-more {
		margin: 12px 0 0;
		padding-top: 10px;
		border-top: 1px solid #eee;
	}
	.ky-wa-more a {
		color: #92400e;
		font-weight: 600;
	}

	/* --- 10f. Post/page reading on mobile: app-like typography --- */
	.page-content-single p,
	.mg-card-box p {
		font-size: 17px;
		line-height: 1.8;
		color: #222;
	}
	.mg-blog-post-box h1.title.single,
	.mg-card-box h1 {
		font-size: 24px;
		line-height: 1.3;
	}
	.single .mg-blog-meta,
	.page-content-single .mg-blog-meta {
		font-size: 13px;
		color: #666;
	}
	.single .mg-blog-meta a,
	.page-content-single .mg-blog-meta a {
		color: #92400e;
	}
	/* "You missed" cards: tidy single-column cards on mobile. */
	.missed-section .mg-blog-post-3 {
		border-radius: 10px;
		overflow: hidden;
		box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
		margin-bottom: 14px;
	}
	.missed-section h4 {
		font-size: 16px;
		line-height: 1.4;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ky-wa-float {
		animation: none;
	}
}

/* ============ 11. FOOTER DEVELOPER CREDIT (all widths) ============ */
/* Rendered after the parent's copyright line (functions.php §12). */
.ky-developer-credit {
	text-align: center;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.75);
	padding: 0 12px 14px;
}
.ky-developer-credit a {
	color: #fff;
}

/* ============ 11b. FOOTER COPYRIGHT LINE (Phase 3, all widths) ============ */
/* Dynamic-year line (functions.php §13). Sits below the developer credit,
   separated by a faint rule so the footer reads as a finished block. */
.ky-copyright-line {
	text-align: center;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.8);
	padding: 10px 12px 16px;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* ============ 13. LIVE SEARCH SUGGESTIONS (Phase 5, all widths) ============ */
/* Dropdown rendered by assets/js/koyalanchal-search-suggest.js under every
   search input (desktop header, sidebar, mobile search panel). The form is
   the positioning context. */
form[role="search"] {
	position: relative;
}
.ky-search-suggest {
	display: none;
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	z-index: 9999;
	background: #fff;
	border: 1px solid #e7e5e4;
	border-radius: 12px;
	box-shadow: 0 14px 34px rgba(69, 26, 3, 0.22);
	overflow-x: hidden;
	overflow-y: auto;
	max-height: 340px;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	scrollbar-width: thin;
	text-align: left;
}
/* Highlighted search terms (functions.php §22): bold + a soft tint.
   <mark> is styled ONLY inside search contexts — the results page and this
   dropdown — so a <mark> anywhere else on the site is untouched. */
.search-results mark,
.ky-search-suggest mark {
	background: #fde68a;
	color: inherit;
	font-weight: 700;
	padding: 0 1px;
	border-radius: 2px;
}
.ky-suggest-item {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	padding: 10px 12px;
	text-decoration: none;
	border-bottom: 1px solid #eef1f6;
}
.ky-suggest-item:hover,
.ky-suggest-item:focus {
	background: #fffbeb;
	text-decoration: none;
}
.ky-suggest-thumb {
	flex: 0 0 64px;
	width: 64px;
	height: 48px;
	border-radius: 8px;
	overflow: hidden;
	background: #e8edf5;
}
.ky-suggest-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.ky-suggest-body {
	flex: 1;
	min-width: 0;
}
.ky-suggest-title {
	display: block;
	font-size: 14px;
	line-height: 1.35;
	font-weight: 600;
	color: #431407;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
.ky-suggest-excerpt {
	display: block;
	font-size: 12.5px;
	line-height: 1.45;
	color: #78716c;
	margin-top: 2px;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
.ky-suggest-dym {
	display: block;
	width: 100%;
	text-align: left;
	padding: 9px 12px;
	font-size: 13px;
	font-weight: 600;
	color: #c2410c;
	background: #fffbeb;
	border: none;
	border-bottom: 1px solid #fde68a;
	cursor: pointer;
}
.ky-suggest-empty {
	padding: 12px;
	font-size: 13px;
	color: #78716c;
}
.ky-suggest-all {
	display: block;
	padding: 10px 12px;
	font-size: 13px;
	font-weight: 700;
	color: #92400e;
	background: #fffdf5;
	text-decoration: none;
	text-align: center;
}
.ky-suggest-all:hover {
	background: #fafaf9;
	text-decoration: none;
}

/* ============ 14. LIGHT MODERN SWEEP (2 Dec 2026) ============ */
/* User direction: LIGHT theme, gradient, modern, positivity. Light
   backgrounds, soft fresh gradients, airy spacing, soft shadows, rounded
   corners. Navy #92400e stays the BRAND ACCENT (headers/nav/buttons/active
   states) — the page feel is light, not dark. VISUAL ONLY: no behaviour,
   links or functionality change anywhere (except the §23 comment-field
   removal, which the user explicitly ordered).
   Tokens: --ky-grad (navy gradient), --ky-soft (light header tint). */
:root {
	--ky-grad: linear-gradient(135deg, #92400e 0%, #b45309 60%, #ea580c 100%);
	--ky-soft: linear-gradient(135deg, #fff7ed 0%, #fef3c7 100%);
	--ky-card-shadow: 0 8px 28px rgba(146, 64, 14, .08);
	--ky-ring: 0 0 0 3px rgba(180, 83, 9, .16);
}

/* --- 14a. Page background: #eee -> airy light --- */
.wrapper { background: #fffbeb; }

/* --- 14b. Comment form: light card, textarea + gradient send button --- */
#respond.comment-respond {
	background: #fff;
	border-radius: 16px;
	box-shadow: var(--ky-card-shadow);
	padding: 22px 22px 18px;
	margin-top: 24px;
	position: relative;
	overflow: hidden;
}
#respond.comment-respond::before {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 4px;
	background: var(--ky-grad);
}
#reply-title.comment-reply-title {
	font-size: 20px;
	font-weight: 700;
	color: #92400e;
	margin-bottom: 14px;
	padding-bottom: 10px;
	border-bottom: 1px solid #fafaf9;
}
#reply-title.comment-reply-title::after {
	content: "";
	display: block;
	width: 44px;
	height: 3px;
	border-radius: 3px;
	background: var(--ky-grad);
	margin-top: 8px;
}
#commentform .comment-form-comment textarea#comment {
	width: 100%;
	min-height: 110px;
	resize: vertical;
	border: 1px solid #e7e5e4;
	border-radius: 12px;
	background: #fffdf5;
	padding: 13px 15px;
	font-size: 15px;
	line-height: 1.7;
	color: #292524;
	box-sizing: border-box;
}
#commentform .comment-form-comment textarea#comment:focus {
	outline: none;
	border-color: #b45309;
	background: #fff;
	box-shadow: var(--ky-ring);
}
#commentform .form-submit { margin: 12px 0 0; }
#commentform #submit.submit {
	background: var(--ky-grad);
	color: #fff;
	border: 0;
	border-radius: 999px;
	padding: 11px 28px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(146, 64, 14, .25);
	transition: transform .18s ease, box-shadow .18s ease;
}
#commentform #submit.submit:hover,
#commentform #submit.submit:focus-visible {
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(146, 64, 14, .30);
}
#commentform #submit.submit .fa-paper-plane { margin-right: 8px; }
#commentform .g-recaptcha { margin: 14px 0 4px; }
/* CAPTCHA error notice (functions.php §27): light red, clearly readable. */
.ky-captcha-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; border-radius: 10px; padding: 12px 14px; margin: 0 0 14px; font-size: 15px; line-height: 1.6; }
/* Comment list (no approved comments yet — styles ready for the first one). */
ol.comment-list { list-style: none; padding: 0; margin: 0; }
ol.comment-list li.comment { margin-bottom: 16px; }
ol.comment-list .comment-body {
	background: #fff;
	border: 1px solid #f5f5f4;
	border-radius: 14px;
	box-shadow: var(--ky-card-shadow);
	padding: 16px 18px;
}
ol.comment-list .comment-author img.avatar {
	border-radius: 50%;
	border: 2px solid #fff;
	box-shadow: 0 2px 8px rgba(146, 64, 14, .18);
}
ol.comment-list .comment-author .fn { font-weight: 700; color: #92400e; }
ol.comment-list .comment-metadata { font-size: 12.5px; color: #78716c; }
ol.comment-list .comment-metadata a { color: #78716c; }
ol.comment-list .comment-content { color: #292524; line-height: 1.7; }
ol.comment-list .reply a {
	display: inline-block;
	font-size: 13px;
	font-weight: 700;
	color: #92400e;
	background: #fff7ed;
	border-radius: 999px;
	padding: 5px 14px;
	text-decoration: none;
}
ol.comment-list .reply a:hover { background: var(--ky-grad); color: #fff; }
.comment-awaiting-moderation {
	display: inline-block;
	background: #fef9c3;
	color: #854d0e;
	border-radius: 8px;
	padding: 3px 10px;
	font-size: 13px;
}
#comments.comments-area { border: 0; }
#comments .comments-title {
	font-size: 19px;
	font-weight: 700;
	color: #92400e;
}

/* --- 14c. Search boxes (sidebar + header widget; mobile panel keeps §10) --- */
#searchform { display: flex; gap: 8px; }
#searchform .search-field,
#searchform input[type="search"] {
	flex: 1;
	min-width: 0;
	border: 1px solid #e7e5e4;
	border-radius: 999px;
	background: #fffdf5;
	padding: 10px 16px;
	font-size: 14px;
	color: #292524;
}
#searchform .search-field:focus,
#searchform input[type="search"]:focus {
	outline: none;
	border-color: #b45309;
	background: #fff;
	box-shadow: var(--ky-ring);
}
#searchform .search-submit,
#searchform input[type="submit"] {
	background: var(--ky-grad);
	color: #fff;
	border: 0;
	border-radius: 999px;
	padding: 10px 20px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(146, 64, 14, .22);
}
#searchform .search-submit:hover { transform: translateY(-1px); }

/* --- 14d. Sidebar widgets: light cards, gradient title accent --- */
.widget-area .widget,
.sidebar .widget {
	background: #fff;
	border: 1px solid #f5f5f4;
	border-radius: 14px;
	box-shadow: var(--ky-card-shadow);
	padding: 18px 18px 14px;
	margin-bottom: 20px;
}
.widget-area .widget-title,
.widget-area .widget h2,
.widget-area .widget_block h2,
.widget-area .widget .wp-block-heading {
	font-size: 17px;
	font-weight: 700;
	color: #92400e;
	margin-bottom: 12px;
	padding-bottom: 10px;
	border-bottom: 1px solid #fafaf9;
}
.widget-area .widget-title::after,
.widget-area .widget h2::after,
.widget-area .widget_block h2::after {
	content: "";
	display: block;
	width: 36px;
	height: 3px;
	border-radius: 3px;
	background: var(--ky-grad);
	margin-top: 7px;
}
.widget-area .widget ul { list-style: none; padding: 0; margin: 0; }
.widget-area .widget ul li {
	padding: 8px 2px;
	border-bottom: 1px solid #fafaf9;
}
.widget-area .widget ul li:last-child { border-bottom: 0; }
.widget-area .widget ul li a { color: #44403c; text-decoration: none; }
.widget-area .widget ul li a:hover { color: #92400e; }
.widget-area .widget .count,
.widget-area .widget ul li .count {
	float: right;
	background: #fff7ed;
	color: #92400e;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	padding: 1px 9px;
}
/* Tag cloud: soft pills. */
.widget_tag_cloud .tagcloud a,
.widget .tagcloud a {
	display: inline-block;
	background: #fff7ed;
	color: #92400e;
	border-radius: 999px;
	padding: 5px 13px;
	margin: 0 6px 8px 0;
	font-size: 13px !important;
	text-decoration: none;
	transition: all .18s ease;
}
.widget_tag_cloud .tagcloud a:hover,
.widget .tagcloud a:hover {
	background: var(--ky-grad);
	color: #fff;
	transform: translateY(-1px);
}

/* --- 14e. Pagination: rounded pills, gradient active --- */
.navigation.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.navigation.pagination .nav-links .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 12px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid #e7e5e4;
	color: #92400e;
	font-weight: 600;
	text-decoration: none;
	box-shadow: 0 2px 8px rgba(146, 64, 14, .06);
	transition: all .18s ease;
}
.navigation.pagination .nav-links a.page-numbers:hover {
	border-color: #b45309;
	transform: translateY(-1px);
}
.navigation.pagination .nav-links .page-numbers.current {
	background: var(--ky-grad);
	color: #fff;
	border-color: transparent;
	box-shadow: 0 4px 12px rgba(146, 64, 14, .25);
}
.navigation.pagination .nav-links .page-numbers.dots { border: 0; background: transparent; box-shadow: none; }

/* --- 14f. Archive / category headers: soft light gradient --- */
.mg-breadcrumb-section {
	background: var(--ky-soft);
	border-bottom: 1px solid #e2e8f0;
}
.mg-breadcrumb-section .mg-breadcrumb-title h1.title,
.mg-breadcrumb-section h1.title {
	color: #92400e;
	font-weight: 800;
}
.mg-breadcrumb-section .mg-breadcrumb-title a { color: #b45309; }
.mg-breadcrumb-section .mg-breadcrumb-title { color: #57534e; }

/* --- 14g. Author box: light gradient card --- */
.media.mg-info-author-block {
	background: linear-gradient(135deg, #ffffff 0%, #fff7ed 100%);
	border: 1px solid #f5f5f4;
	border-radius: 16px;
	box-shadow: var(--ky-card-shadow);
	padding: 20px;
}
.media.mg-info-author-block .mg-author-pic img {
	border-radius: 50%;
	border: 3px solid #fff;
	box-shadow: 0 4px 14px rgba(146, 64, 14, .18);
}
.media.mg-info-author-block .media-heading,
.media.mg-info-author-block h4 { color: #92400e; font-weight: 700; }
.media.mg-info-author-block p { color: #57534e; line-height: 1.7; }

/* --- 14h. Share buttons (AddToAny): rounded, soft, lift on hover --- */
.addtoany_list a,
.a2a_kit a {
	border-radius: 50% !important;
	box-shadow: 0 2px 8px rgba(146, 64, 14, .12);
	transition: transform .18s ease, box-shadow .18s ease;
}
.addtoany_list a:hover,
.a2a_kit a:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(146, 64, 14, .20);
}

/* --- 14i. Related / "You missed" section title accent --- */
.missed-section .mg-sec-title h4 {
	color: #92400e;
	font-weight: 800;
}
.missed-section .mg-sec-title h4::after {
	content: "";
	display: block;
	width: 44px;
	height: 3px;
	border-radius: 3px;
	background: var(--ky-grad);
	margin-top: 8px;
}
.missed-section .mg-blog-post-3 {
	border-radius: 14px;
	overflow: hidden;
	box-shadow: var(--ky-card-shadow);
}

/* --- 14j. 404 page: friendly gradient number + gradient button --- */
.mg-error-404 { text-align: center; padding: 40px 16px 48px; }
.mg-error-404 h1,
.mg-error-404 .error-404-title {
	font-size: clamp(72px, 18vw, 140px);
	font-weight: 800;
	line-height: 1;
	background: var(--ky-grad);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}
.mg-error-404 p { color: #57534e; font-size: 16px; }
.mg-error-404 a.btn,
.mg-error-404 .btn,
.mg-error-404 a[href="/"] {
	display: inline-block;
	background: var(--ky-grad);
	color: #fff;
	border-radius: 999px;
	padding: 12px 30px;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 4px 14px rgba(146, 64, 14, .25);
}
.mg-error-404 a.btn:hover { transform: translateY(-1px); color: #fff; }

/* --- 14k. Footer widgets: gradient title accent, airy spacing (no colour
   assumptions — the footer background is the parent's navy) --- */
.mg-footer-widget-area .widget { margin-bottom: 22px; }
.mg-footer-widget-area .widget-title,
.mg-footer-widget-area .widget h2,
.mg-footer-widget-area .widget_block h2 {
	font-weight: 700;
	padding-bottom: 10px;
	margin-bottom: 12px;
}
.mg-footer-widget-area .widget-title::after,
.mg-footer-widget-area .widget h2::after,
.mg-footer-widget-area .widget_block h2::after {
	content: "";
	display: block;
	width: 36px;
	height: 3px;
	border-radius: 3px;
	background: linear-gradient(135deg, #fbbf24, #f59e0b);
	margin-top: 7px;
}
.mg-footer-widget-area .widget ul li { padding: 6px 0; }
.mg-footer-widget-area .widget a:hover { text-decoration: underline; }

/* --- 14l. Contact form (WPForms): rounded inputs, gradient submit --- */
.wpforms-form .wpforms-field input,
.wpforms-form .wpforms-field select,
.wpforms-form .wpforms-field textarea {
	border: 1px solid #e7e5e4 !important;
	border-radius: 10px !important;
	background: #fffdf5 !important;
	padding: 11px 14px !important;
	color: #292524 !important;
}
.wpforms-form .wpforms-field input:focus,
.wpforms-form .wpforms-field select:focus,
.wpforms-form .wpforms-field textarea:focus {
	outline: none !important;
	border-color: #b45309 !important;
	background: #fff !important;
	box-shadow: var(--ky-ring) !important;
}
.wpforms-form .wpforms-field-label { font-weight: 700 !important; color: #92400e !important; }
.wpforms-form button[type="submit"].wpforms-submit {
	background: var(--ky-grad) !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 999px !important;
	padding: 12px 32px !important;
	font-weight: 700 !important;
	box-shadow: 0 4px 14px rgba(146, 64, 14, .25) !important;
}
.wpforms-form button[type="submit"].wpforms-submit:hover { transform: translateY(-1px); }
.wpforms-form .wpforms-error { color: #dc2626 !important; }

/* --- 14m. Focus states (keyboard users) --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: 3px solid rgba(180, 83, 9, .35);
	outline-offset: 2px;
}

/* ============ 15. CONTRAST FIXES + FOOTER GAP/CREDITS (2 Dec 2026) ============ */
/* Job 2 — colour-contrast audit (user order 23:04, phone screenshots).
   Evidence-based: every rule below fixes a measured parent/child
   combination, checked against the served HTML + the parent's
   css/colors/default.css. Colours/backgrounds only — no text, link or
   behaviour changes. Tokens from §14 (--ky-grad navy gradient). */

/* --- 15a. "Related news" section title: dark navy on the parent's blue
   block was unreadable (black-on-blue in the user's screenshot). The
   parent paints .mg-sec-title h4 with a blue background + white text;
   the child's §14i set the text navy without removing the background.
   Fix: drop the blue block, keep the navy title + gradient underline,
   matching the sidebar widget titles (§14d). --- */
.missed-section .mg-sec-title h4 {
	background: transparent;
	padding-left: 0;
	padding-right: 0;
}

/* --- 15b. Image-card meta: the child's §10f mobile rule
   (.single .mg-blog-meta { color:#666 } / a { color:#92400e }) leaks
   onto the "related news" image cards on single-post pages (body has
   class .single), turning their date/author dark-on-dark over the
   photo. The parent intends them white over the card's dark scrim.
   Belt and braces: force white here (higher specificity than §10f)
   and strengthen the bottom scrim so white text survives bright
   photos. --- */
.mg-blog-post-3 .mg-blog-inner .mg-blog-meta,
.mg-blog-post-3 .mg-blog-inner .mg-blog-meta a,
.mg-blog-post-3 .mg-blog-inner .mg-blog-meta i,
.mg-blog-post-3 .mg-blog-inner .mg-blog-meta span {
	color: #fff;
}
.mg-blog-post-3 .mg-blog-inner {
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0.55) 55%, rgba(0, 0, 0, 0.8) 100%);
}

/* --- 15c. Post-bottom share icons (theme's own .mg-share-icons):
   white icons on light-grey #CCD1D9 (~1.6:1). Not rendered on the
   site right now (AddToAny is used instead) — defensive: navy
   gradient so they are readable if the bar is ever enabled. --- */
.mg-post-bottom .mg-share-icons .mg-share span a,
.mg-post-bottom .mg-share-icons .mg-share-toggle {
	background: var(--ky-grad);
	border-color: transparent;
}

/* --- 15d. Author-box "By" span: #999 on white (~2.8:1) -> readable. --- */
.mg-info-author-block h4 span {
	color: #78716c;
}

/* --- 15e. Category chips, defensive: the parent's colour-2 (amber
   #feb236) and colour-4 (green #82b74b) chips carry WHITE text
   (~1.9:1 / ~2.6:1). No chip on the site uses them today (all are
   colour-1 blue) — dark text now so they can never render unreadable. --- */
a.newsup-categories.category-color-2 {
	background: #feb236;
	color: #292524;
}
a.newsup-categories.category-color-4 {
	background: #82b74b;
	color: #292524;
}

/* --- 15f. Footer small-post text, defensive: the parent paints
   footer .small-post-content p / .mg-blog-meta a #212121 on the dark
   footer (#121026). No such widget is in the footer today — light
   text now so one can never render dark-on-dark. --- */
footer .mg-widget .small-post-content p,
footer .mg-widget .small-post-content .mg-blog-meta a,
footer .mg-widget .small-post-content .mg-blog-meta i {
	color: rgba(255, 255, 255, 0.88);
}

/* --- 15g. Base meta text: the parent's .mg-blog-meta is #bdbdbd
   (~1.9:1 on white) — the links are #333, but stray separator text
   inherits the pale grey. Nudge to a readable slate; image-card meta
   stays white via §15b (higher specificity). --- */
.mg-blog-meta {
	color: #78716c;
}

/* Job 3 — footer gap + credits (user order 23:04, phone screenshot).
   (1) The dark gap: on mobile the footer widget area holds ONLY the
   t4b ticker (#block-14), which §8f hides — so the area is empty,
   yet footer .overlay keeps 40px top padding and the bottom-area
   divide-line keeps a 40px bottom margin. Tighten both on mobile.
   (2) The credits line ("2026 © Website Owned & Copyright by
   koyalanchal.in | Themeansar | ...") was rendered AFTER </footer>
   and after the fixed bottom nav, OUTSIDE #page — so the #page
   padding-bottom (62px, §8g) never protected it and the nav cut it
   in half. UPDATE 23:37 (user order): that credits line is REMOVED
   entirely (hidden in §16 below), so the bottom clearance now lives
   INSIDE the footer instead: footer .overlay gets bottom padding of
   37px + safe-area, which together with the 25px bottom padding of
   .mg-footer-copyright gives 62px + safe-area of dark footer below
   the "© 2026 Koyalanchal" line — enough to clear the ~50px fixed
   bottom nav — and the page ends at the blue footer with no white
   strip below it. The old body { padding-bottom: 80px } rule is
   deleted: it was only there for the credits line, and it painted
   the white gap under the footer. */
@media (max-width: 768px) {
	footer .overlay {
		padding-top: 14px;
		padding-bottom: calc(37px + env(safe-area-inset-bottom, 0px));
	}
	footer .mg-footer-bottom-area .divide-line {
		margin-bottom: 16px;
	}
}

/* --- 16. Remove the WPCode "copyright footer" credits line (user order
   2 Dec 23:37: "Ye poora hata do"). The line was printed by WPCode
   snippet post 3003 ("copyright footer", auto-insert, priority 10) as
   a bare <p> directly under <body>, AFTER </footer> — it is NOT part
   of the footer. The snippet has been DEACTIVATED via WPCode's own API
   (status draft, cache rebuilt — reversible by re-activating it in
   WPCode admin), so the line is gone from the HTML; this rule stays as
   a belt-and-braces fallback in case the snippet is ever re-activated.
   The attribute selector matches the snippet's exact inline style
   (font-size:12px; margin-bottom:-3px; text-align:center;), so no
   other paragraph is affected. The page now ends at the blue footer
   with "© 2026 Koyalanchal. All rights reserved." --- */
body > p[style*="margin-bottom:-3px"] {
	display: none;
}

/* --- 17. Small slanted Koyalanchal-logo stamp watermark on cards (user order
   2 Dec 23:44-23:45, scope expanded 23:45 to EVERY card listing).
   The theme's post-format badge (.post-form: camera/video/gallery/audio/
   sticky icon) is swapped for <span class="ky-stamp"> by the output
   buffer in functions.php §30; grid cards (.mg-blog-post-3) have no
   badge, so their stamp is the ::after on the image wrapper below.
   The logo is the site's real custom logo (white-on-transparent PNG) on
   a small navy chip, so it reads on any photo. "Chota sa": the logo is
   ~14px tall, the chip ~50px wide, rotated -8deg, semi-transparent —
   a mark, not a cover. The .post-form { display:none } rule is a visual
   fallback only (in case the buffer ever misses a badge variant); it
   does not remove markup. --- */

/* Visual fallback only: hide any badge the buffer missed. */
.post-form {
	display: none !important;
}

/* Stamp chip (buffer-injected span). Positioned by its card context. */
.ky-stamp {
	position: absolute;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	padding: 3px 6px;
	background: linear-gradient(135deg, #92400e 0%, #b45309 100%);
	border: 1.5px solid rgba(255, 255, 255, 0.95);
	outline: 1px solid rgba(255, 255, 255, 0.45);
	outline-offset: 2px;
	border-radius: 3px;
	opacity: 0.92;
	transform: rotate(-8deg);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
	pointer-events: none;
	line-height: 0;
}
.ky-stamp img {
	display: block;
	height: 14px;
	width: auto;
}

/* Placement: top-right of the image, clear of the category chip
   (top-left) and the title (bottom). */
.mg-post-thumb .ky-stamp {
	top: 10px;
	right: 10px;
}
/* In hero cards the stamp span sits inside article.bottom (the text
   overlay at the foot of the image), so "top" here is the top edge of
   that overlay — just above the title, over the photo. */
.mg-blog-post.lg .ky-stamp {
	top: 0;
	right: 12px;
}

/* Make the thumb a positioning context (defensive: the parent does not
   declare position on .mg-post-thumb). */
.mg-post-thumb {
	position: relative;
}

/* Grid cards (.mg-blog-post-3): no badge exists, so the stamp is a
   ::after on the image wrapper. Same chip, same size, same slant.
   --ky-stamp-logo is set by functions.php §30 (dynamic custom-logo
   URL); the hardcoded URL is the fallback if the var is missing. */
.mg-blog-post-3 .mg-blog-img {
	position: relative;
}
.mg-blog-post-3 .mg-blog-img::after {
	content: "";
	position: absolute;
	z-index: 3;
	top: 10px;
	right: 10px;
	width: 60px;
	height: 24px;
	background-color: #92400e;
	background-image: var(--ky-stamp-logo, url("https://koyalanchal.in/wp-content/uploads/2023/09/89dfcf1b-fc55-4d1f-893d-7c1134ca0535-300x91.png"));
	background-size: 48px auto;
	background-position: center;
	background-repeat: no-repeat;
	border: 1.5px solid rgba(255, 255, 255, 0.95);
	outline: 1px solid rgba(255, 255, 255, 0.45);
	outline-offset: 2px;
	border-radius: 3px;
	opacity: 0.92;
	transform: rotate(-8deg);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
	pointer-events: none;
}

/* ============ 18. ADS — Auto Ads organisation + modern styling ============ */
/* v1.18.0, 3 Dec 2026 (user order 2 Dec 23:59: organise the ads properly,
   modern-styled layout).
   EVIDENCE (served HTML, home + single post + category, fetched 3 Dec):
   - Auto Ads script present once per page, in <head>, placed by Site Kit
     (ca-pub-9181741487008106, host ca-host-pub-2644536267352236).
   - ZERO <ins> units in server HTML on all three templates: pure Auto
     Ads, no manual slots anywhere (parent NewsUp + child theme grepped).
   - ZERO .google-auto-placed in server HTML: Auto Ads injects client-side
     only, so the final render can only be confirmed on a real device.
   WHAT WAS UNTIDY: nothing styled the injected units at all — an ad
   landed flush against feed cards / article text with no margin, no
   radius, no label, looking pasted-on; and a unit dropped into a
   Bootstrap .row would have no .col-* class and could squeeze beside
   a card instead of taking a full row.
   SCOPE: in-flow placements only (feed, in-article, sidebar). Anchor /
   vignette ads attach to <body>, outside these selectors, and are
   untouched by this CSS — see 18e. No ad slots added, no post content,
   links or behaviour touched, nothing changed in the AdSense account. */

/* --- 18a. The ad unit itself: block-level, never wider than its
   container, never forcing horizontal scroll on a phone. --- */
.google-auto-placed ins.adsbygoogle {
	display: block;
	max-width: 100%;
}

/* --- 18b. In-flow ad card: same language as the site's cards (desktop
   .small-post, §9b) — white, 1px #ececec border, 8px radius, soft
   shadow — with a small "विज्ञापन" label so the unit reads as a
   deliberate, labelled placement instead of a pasted-on box. --- */
.small-list-post .google-auto-placed,
.mg-posts-sec-inner .google-auto-placed,
.page-content-single .google-auto-placed,
#secondary .google-auto-placed {
	margin: 16px 0;
	padding: 12px;
	background: #fff;
	border: 1px solid #ececec;
	border-radius: 8px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
	overflow: hidden;
}
.small-list-post .google-auto-placed::before,
.mg-posts-sec-inner .google-auto-placed::before,
.page-content-single .google-auto-placed::before,
#secondary .google-auto-placed::before {
	content: "विज्ञापन";
	display: block;
	margin-bottom: 8px;
	font-size: 10px;
	font-weight: 600;
	color: #9aa0a6;
	text-align: center;
}

/* --- 18c. Grid defence: a unit dropped straight into a Bootstrap .row
   has no .col-* class — force a full row so it cannot squeeze beside
   a card. --- */
.row > .google-auto-placed {
	flex: 0 0 100%;
	max-width: 100%;
}

/* --- 18d. In-article: never tuck beside a floated image. --- */
.page-content-single .google-auto-placed {
	clear: both;
}

/* --- 18e. KNOWN LIMIT — anchor ads vs the mobile bottom nav (NOT fixed
   here, needs an account-side call): the fixed bottom nav (.ky-bottom-nav,
   z-index 1040, bottom:0, mobile only) and the back-to-top button
   (.ta_upscr, bottom:74px) sit exactly where an AdSense anchor ad docks.
   Anchor ads render in a top-layer frame no page CSS can outrank, so if
   anchor ads are enabled in AdSense they will cover the bottom nav (and
   the back-to-top button) while shown. RECOMMENDATION for the owner:
   AdSense > Ads > Auto ads > turn OFF "Anchor ads" (in-feed, in-article
   and matched-content formats are unaffected). Until then, phone-check
   the bottom nav with an anchor ad visible. --- */

/* ============ 18. AD ORGANISATION — AUTO ADS, MODERN (checklist §17) ============ */
/* AdSense Auto Ads only (Site Kit snippet, pub-9181741487008106): no manual
   slots, no giant units. These rules keep whatever Auto Ads inserts tidy:
   soft rounded containers that blend with the cards/feed, no harsh boxes,
   no overlap with the fixed bottom nav / drawer / search panel. In-feed
   and in-article units get breathing room; vignette/anchor formats are
   Google's own overlays (account-side: disable Anchor if it ever covers
   the bottom nav — see the rollout report). No ads render today (AdSense
   account "client-getting-ready"), so this is layout preparation. */
ins.adsbygoogle,
.adsbygoogle {
	display: block;
	margin: 18px auto;
	border-radius: 12px;
	overflow: hidden;
	background: transparent;
	max-width: 100%;
}
/* In-feed units sit inside the card flow — match the card radius/spacing. */
.mg-blog-post ins.adsbygoogle,
.small-post ins.adsbygoogle,
.missed-section ins.adsbygoogle {
	margin: 14px 0;
}
/* Never let an ad sit under the fixed mobile bottom nav or drawer. */
@media (max-width: 768px) {
	ins.adsbygoogle[data-ad-format="autorelaxed"],
	ins.adsbygoogle[data-ad-format="fluid"] {
		margin-bottom: 24px;
	}
}
