/**
 * Panchnama Child — Option A refresh (3 Dec 2026; ported from NewsManch
 * Child v1.17.0, same parent NewsUp 5.7.5, indigo accent #4f46e5).
 * 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.
 */

/* ============ 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: center crops portrait/square slides vertically —
   object-position center 5% keeps portrait heads in frame at desktop
   (475px slot) and mobile (300px slot); 16:9 slides have no vertical
   crop so they are unaffected. 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`
   (#4f46e5) — 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: #4f46e5;
	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). */
.pn-bottom-nav,
.pn-cat-strip,
.pn-mobile-brand,
.pn-overlay,
.pn-drawer,
.pn-search-panel,
.pn-wa-float,
.pn-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. */
	.pn-mobile-brand {
		display: flex;
		align-items: center;
		margin: 0 auto;
		min-width: 0;
	}
	.pn-mobile-brand .pn-mobile-logo {
		height: 32px;
		width: auto;
		max-width: 150px;
	}
	.pn-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) --- */
	.pn-cat-strip {
		display: block;
		background: #fff;
		border-bottom: 1px solid #eee;
	}
	.pn-cat-strip-inner {
		display: flex;
		gap: 4px;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		padding: 8px 10px;
	}
	.pn-cat-strip-inner::-webkit-scrollbar {
		display: none;
	}
	.pn-cat-strip a {
		white-space: nowrap;
		font-size: 14px;
		font-weight: 600;
		color: #333;
		padding: 6px 12px;
		border-radius: 999px;
		text-decoration: none;
	}
	.pn-cat-strip a.active {
		background: #4f46e5;
		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: #c62828;
	}
	.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: #4f46e5;
		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: #c62828;
	}
	.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 --- */
	#categories-4, /* footer widget: long category list (capped to 15 by §9, still long on mobile) */
	#archives-1,   /* sidebar: Archives */
	#categories-2 { /* sidebar: full category list */
		display: none;
	}

	/* --- 8g. Bottom fixed nav --- */
	.pn-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);
	}
	.pn-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;
	}
	.pn-bnav-item .pn-bnav-label {
		font-size: 11px;
		line-height: 1.2;
	}
	.pn-bnav-item.active {
		color: #4f46e5;
	}
	.pn-bnav-item:focus-visible {
		outline: 2px solid #4f46e5;
		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: #d5deee;
	}
	.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. */
	.pn-overlay[hidden],
	.pn-drawer[hidden],
	.pn-search-panel[hidden],
	.pn-wa-panel[hidden] {
		display: none !important;
	}
	/* Scroll lock while an overlay is open. */
	body.pn-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, #4f46e5 0%, #16223f 100%);
	}
	.mg-menu-full .m-header {
		justify-content: center;
	}

	/* --- 10b. Professional gradients + interactive touches --- */
	.pn-cat-strip a.active {
		background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
	}
	.pn-bnav-item {
		position: relative;
		transition: transform 0.15s ease, color 0.15s ease;
	}
	.pn-bnav-item:active {
		transform: scale(0.94);
	}
	.pn-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, #4f46e5, #3b82f6);
	}
	.small-post {
		transition: background-color 0.15s ease;
	}
	.small-post:active {
		background-color: #f7f9fc;
	}

	/* --- 10c. Categories side drawer --- */
	.pn-overlay {
		display: block;
		position: fixed;
		inset: 0;
		background: rgba(10, 18, 38, 0.45);
		z-index: 1050;
		opacity: 0;
		transition: opacity 0.25s ease;
	}
	.pn-overlay.open {
		opacity: 1;
	}
	.pn-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);
	}
	.pn-drawer.open {
		transform: translateX(0);
	}
	.pn-drawer-head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 12px 12px 12px 20px;
		background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
		color: #fff;
	}
	.pn-drawer-title {
		font-size: 18px;
		font-weight: 700;
	}
	.pn-drawer-close {
		background: none;
		border: 0;
		color: #fff;
		font-size: 20px;
		width: 44px;
		height: 44px;
		cursor: pointer;
	}
	.pn-drawer-list {
		flex: 1;
		overflow-y: auto;
		padding: 6px 0;
	}
	.pn-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;
	}
	.pn-drawer-list a .fa-chevron-right {
		font-size: 12px;
		color: #aaa;
	}
	.pn-drawer-list a.active {
		color: #4f46e5;
		background: linear-gradient(90deg, rgba(79, 70, 229, 0.08), rgba(79, 70, 229, 0));
		border-left: 3px solid #4f46e5;
	}
	.pn-drawer-foot {
		display: flex;
		justify-content: center;
		gap: 10px;
		padding: 14px;
		border-top: 1px solid #eee;
		font-size: 13px;
	}
	.pn-drawer-foot a {
		color: #4f46e5;
		font-weight: 600;
	}

	/* --- 10d. Search panel (top sheet, large input) --- */
	.pn-search-panel {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 1052;
		background: rgba(10, 18, 38, 0.5);
		opacity: 0;
		transition: opacity 0.25s ease;
		pointer-events: none;
	}
	.pn-search-panel.open {
		opacity: 1;
		pointer-events: auto;
	}
	.pn-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);
	}
	.pn-search-panel.open .pn-search-sheet {
		transform: translateY(0);
	}
	.pn-search-top {
		display: flex;
		align-items: center;
		justify-content: space-between;
		margin-bottom: 12px;
	}
	.pn-search-title {
		font-size: 17px;
		font-weight: 700;
		color: #4f46e5;
	}
	.pn-search-close {
		background: none;
		border: 0;
		font-size: 20px;
		color: #555;
		width: 44px;
		height: 44px;
		cursor: pointer;
	}
	.pn-search-field {
		display: flex;
		border: 2px solid #4f46e5;
		border-radius: 12px;
		overflow: hidden;
		background: linear-gradient(180deg, #ffffff, #f7f9fc);
	}
	.pn-search-field input[type="search"] {
		flex: 1;
		min-width: 0;
		border: 0;
		outline: none;
		padding: 14px 12px;
		font-size: 18px;
		background: transparent;
	}
	.pn-search-submit {
		flex: 0 0 52px;
		border: 0;
		background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
		color: #fff;
		font-size: 18px;
		cursor: pointer;
	}
	.pn-search-hint {
		margin: 10px 2px 0;
		font-size: 13px;
		color: #777;
	}

	/* --- 10e. Floating WhatsApp Contact Us (side button + slide-out) --- */
	.pn-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: pn-wa-pulse 2.6s ease-out infinite;
	}
	@keyframes pn-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); }
	}
	.pn-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 (.pn-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;
	}
	.pn-wa-panel.open {
		transform: translate(0, -50%);
	}
	.pn-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;
	}
	.pn-wa-title {
		font-size: 16px;
		font-weight: 700;
	}
	.pn-wa-close {
		background: none;
		border: 0;
		color: #fff;
		font-size: 18px;
		width: 40px;
		height: 40px;
		cursor: pointer;
	}
	.pn-wa-body {
		padding: 14px 18px 16px;
		font-size: 14px;
	}
	.pn-wa-person {
		margin: 0 0 2px;
	}
	.pn-wa-person strong {
		display: block;
		font-size: 15px;
		color: #111;
	}
	.pn-wa-person span {
		font-size: 12px;
		color: #777;
	}
	.pn-wa-line {
		margin: 2px 0 10px;
		color: #333;
	}
	.pn-wa-line i {
		color: #128c7e;
		margin-right: 6px;
	}
	.pn-wa-line a {
		color: #4f46e5;
		text-decoration: none;
		overflow-wrap: anywhere;
	}
	.pn-wa-more {
		margin: 12px 0 0;
		padding-top: 10px;
		border-top: 1px solid #eee;
	}
	.pn-wa-more a {
		color: #4f46e5;
		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: #4f46e5;
	}
	/* "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) {
	.pn-wa-float {
		animation: none;
	}
}

/* ============ 11. FOOTER DEVELOPER CREDIT (all widths) ============ */
/* Rendered after the parent's copyright line (functions.php §12). */
.pn-developer-credit {
	text-align: center;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.75);
	padding: 0 12px 14px;
}
.pn-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. */
.pn-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/panchnama-search-suggest.js under every
   search input (desktop header, sidebar, mobile search panel). The form is
   the positioning context. */
form[role="search"] {
	position: relative;
}
.pn-search-suggest {
	display: none;
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	z-index: 9999;
	background: #fff;
	border: 1px solid #dbe2ee;
	border-radius: 12px;
	box-shadow: 0 14px 34px rgba(16, 32, 68, 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,
.pn-search-suggest mark {
	background: #fff3bf;
	color: inherit;
	font-weight: 700;
	padding: 0 1px;
	border-radius: 2px;
}
.pn-suggest-item {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	padding: 10px 12px;
	text-decoration: none;
	border-bottom: 1px solid #eef1f6;
}
.pn-suggest-item:hover,
.pn-suggest-item:focus {
	background: #f2f6fd;
	text-decoration: none;
}
.pn-suggest-thumb {
	flex: 0 0 64px;
	width: 64px;
	height: 48px;
	border-radius: 8px;
	overflow: hidden;
	background: #e8edf5;
}
.pn-suggest-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.pn-suggest-body {
	flex: 1;
	min-width: 0;
}
.pn-suggest-title {
	display: block;
	font-size: 14px;
	line-height: 1.35;
	font-weight: 600;
	color: #1c2b4a;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
.pn-suggest-excerpt {
	display: block;
	font-size: 12.5px;
	line-height: 1.45;
	color: #5b6b84;
	margin-top: 2px;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
.pn-suggest-dym {
	display: block;
	width: 100%;
	text-align: left;
	padding: 9px 12px;
	font-size: 13px;
	font-weight: 600;
	color: #1d4ed8;
	background: #eff6ff;
	border: none;
	border-bottom: 1px solid #dbeafe;
	cursor: pointer;
}
.pn-suggest-empty {
	padding: 12px;
	font-size: 13px;
	color: #5b6b84;
}
.pn-suggest-all {
	display: block;
	padding: 10px 12px;
	font-size: 13px;
	font-weight: 700;
	color: #4f46e5;
	background: #f8fafc;
	text-decoration: none;
	text-align: center;
}
.pn-suggest-all:hover {
	background: #eef2f7;
	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 #4f46e5 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: --pn-grad (navy gradient), --pn-soft (light header tint). */
:root {
	--pn-grad: linear-gradient(135deg, #4f46e5 0%, #6366f1 60%, #2563eb 100%);
	--pn-soft: linear-gradient(135deg, #eef2ff 0%, #eafaf3 100%);
	--pn-card-shadow: 0 8px 28px rgba(79, 70, 229, .08);
	--pn-ring: 0 0 0 3px rgba(99, 102, 241, .16);
}

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

/* --- 14b. Comment form: light card, textarea + gradient send button --- */
#respond.comment-respond {
	background: #fff;
	border-radius: 16px;
	box-shadow: var(--pn-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(--pn-grad);
}
#reply-title.comment-reply-title {
	font-size: 20px;
	font-weight: 700;
	color: #4f46e5;
	margin-bottom: 14px;
	padding-bottom: 10px;
	border-bottom: 1px solid #eef2f7;
}
#reply-title.comment-reply-title::after {
	content: "";
	display: block;
	width: 44px;
	height: 3px;
	border-radius: 3px;
	background: var(--pn-grad);
	margin-top: 8px;
}
#commentform .comment-form-comment textarea#comment {
	width: 100%;
	min-height: 110px;
	resize: vertical;
	border: 1px solid #e0e7ff;
	border-radius: 12px;
	background: #f8fafc;
	padding: 13px 15px;
	font-size: 15px;
	line-height: 1.7;
	color: #1e293b;
	box-sizing: border-box;
}
#commentform .comment-form-comment textarea#comment:focus {
	outline: none;
	border-color: #6366f1;
	background: #fff;
	box-shadow: var(--pn-ring);
}
#commentform .form-submit { margin: 12px 0 0; }
#commentform #submit.submit {
	background: var(--pn-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(79, 70, 229, .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(79, 70, 229, .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. */
.pn-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 #eef2ff;
	border-radius: 14px;
	box-shadow: var(--pn-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(79, 70, 229, .18);
}
ol.comment-list .comment-author .fn { font-weight: 700; color: #4f46e5; }
ol.comment-list .comment-metadata { font-size: 12.5px; color: #64748b; }
ol.comment-list .comment-metadata a { color: #64748b; }
ol.comment-list .comment-content { color: #1e293b; line-height: 1.7; }
ol.comment-list .reply a {
	display: inline-block;
	font-size: 13px;
	font-weight: 700;
	color: #4f46e5;
	background: #eef2ff;
	border-radius: 999px;
	padding: 5px 14px;
	text-decoration: none;
}
ol.comment-list .reply a:hover { background: var(--pn-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: #4f46e5;
}

/* --- 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 #e0e7ff;
	border-radius: 999px;
	background: #f8fafc;
	padding: 10px 16px;
	font-size: 14px;
	color: #1e293b;
}
#searchform .search-field:focus,
#searchform input[type="search"]:focus {
	outline: none;
	border-color: #6366f1;
	background: #fff;
	box-shadow: var(--pn-ring);
}
#searchform .search-submit,
#searchform input[type="submit"] {
	background: var(--pn-grad);
	color: #fff;
	border: 0;
	border-radius: 999px;
	padding: 10px 20px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(79, 70, 229, .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 #eef2ff;
	border-radius: 14px;
	box-shadow: var(--pn-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: #4f46e5;
	margin-bottom: 12px;
	padding-bottom: 10px;
	border-bottom: 1px solid #eef2f7;
}
.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(--pn-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 #f1f5f9;
}
.widget-area .widget ul li:last-child { border-bottom: 0; }
.widget-area .widget ul li a { color: #334155; text-decoration: none; }
.widget-area .widget ul li a:hover { color: #4f46e5; }
.widget-area .widget .count,
.widget-area .widget ul li .count {
	float: right;
	background: #eef2ff;
	color: #4f46e5;
	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: #eef2ff;
	color: #4f46e5;
	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(--pn-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 #e0e7ff;
	color: #4f46e5;
	font-weight: 600;
	text-decoration: none;
	box-shadow: 0 2px 8px rgba(79, 70, 229, .06);
	transition: all .18s ease;
}
.navigation.pagination .nav-links a.page-numbers:hover {
	border-color: #6366f1;
	transform: translateY(-1px);
}
.navigation.pagination .nav-links .page-numbers.current {
	background: var(--pn-grad);
	color: #fff;
	border-color: transparent;
	box-shadow: 0 4px 12px rgba(79, 70, 229, .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(--pn-soft);
	border-bottom: 1px solid #e2e8f0;
}
.mg-breadcrumb-section .mg-breadcrumb-title h1.title,
.mg-breadcrumb-section h1.title {
	color: #4f46e5;
	font-weight: 800;
}
.mg-breadcrumb-section .mg-breadcrumb-title a { color: #6366f1; }
.mg-breadcrumb-section .mg-breadcrumb-title { color: #475569; }

/* --- 14g. Author box: light gradient card --- */
.media.mg-info-author-block {
	background: linear-gradient(135deg, #ffffff 0%, #f0f5ff 100%);
	border: 1px solid #eef2ff;
	border-radius: 16px;
	box-shadow: var(--pn-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(79, 70, 229, .18);
}
.media.mg-info-author-block .media-heading,
.media.mg-info-author-block h4 { color: #4f46e5; font-weight: 700; }
.media.mg-info-author-block p { color: #475569; 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(79, 70, 229, .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(79, 70, 229, .20);
}

/* --- 14i. Related / "You missed" section title accent --- */
.missed-section .mg-sec-title h4 {
	color: #4f46e5;
	font-weight: 800;
}
.missed-section .mg-sec-title h4::after {
	content: "";
	display: block;
	width: 44px;
	height: 3px;
	border-radius: 3px;
	background: var(--pn-grad);
	margin-top: 8px;
}
.missed-section .mg-blog-post-3 {
	border-radius: 14px;
	overflow: hidden;
	box-shadow: var(--pn-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(--pn-grad);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}
.mg-error-404 p { color: #475569; font-size: 16px; }
.mg-error-404 a.btn,
.mg-error-404 .btn,
.mg-error-404 a[href="/"] {
	display: inline-block;
	background: var(--pn-grad);
	color: #fff;
	border-radius: 999px;
	padding: 12px 30px;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 4px 14px rgba(79, 70, 229, .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, #60a5fa, #34d399);
	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 #e0e7ff !important;
	border-radius: 10px !important;
	background: #f8fafc !important;
	padding: 11px 14px !important;
	color: #1e293b !important;
}
.wpforms-form .wpforms-field input:focus,
.wpforms-form .wpforms-field select:focus,
.wpforms-form .wpforms-field textarea:focus {
	outline: none !important;
	border-color: #6366f1 !important;
	background: #fff !important;
	box-shadow: var(--pn-ring) !important;
}
.wpforms-form .wpforms-field-label { font-weight: 700 !important; color: #4f46e5 !important; }
.wpforms-form button[type="submit"].wpforms-submit {
	background: var(--pn-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(79, 70, 229, .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(99, 102, 241, .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 (--pn-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:#4f46e5 }) 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(--pn-grad);
	border-color: transparent;
}

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

/* --- 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: #1e293b;
}
a.newsup-categories.category-color-4 {
	background: #82b74b;
	color: #1e293b;
}

/* --- 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: #64748b;
}

/* Job 3 — footer gap + credits (Panchnama).
   The page must end at the blue footer with no white strip below it.
   The old setup faked the copyright with a body::after line in
   Additional CSS (post 120: "2024 © … Khojkhabar.net …") while the
   real .mg-footer-copyright was display:none — both are removed from
   post 120 in the deploy, and the child theme renders the real
   "© <year> Panchnama. All rights reserved." line (§12/§13) inside
   the footer. Bottom clearance lives INSIDE the footer: 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 copyright line — enough to clear
   the ~50px fixed bottom nav on mobile. No body padding-bottom rule:
   it would paint a 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. Belt-and-braces hide for a stray credits paragraph.
   (Panchnama has no WPCode plugin and no such snippet — the old
   wrong-site credits line lived in Additional CSS as body::after and
   is removed from post 120 in the deploy. This rule targets a bare
   <p> with the exact inline style a WPCode snippet on the sibling site used;
   it matches nothing on this site today and stays only as a guard in
   case such a paragraph is ever injected.) --- */
body > p[style*="margin-bottom:-3px"] {
	display: none;
}

/* --- 17. Small slanted text stamp watermark on cards.
   The theme's post-format badge (.post-form: camera/video/gallery/audio/
   sticky icon) is swapped for <span class="pn-stamp">पंचनामा</span> 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. TEXT stamp (site name, white bold) on a small indigo chip —
   the site's logo illustration is unreadable at stamp size (see §30).
   "Chota sa": ~10px type, 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.
   Text stamp: the site name in white bold type on the indigo chip
   (the logo illustration is unreadable at stamp size — see §30). */
.pn-stamp {
	position: absolute;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	padding: 3px 7px;
	background: linear-gradient(135deg, #4f46e5 0%, #4338ca 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;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.02em;
	color: #ffffff;
	white-space: nowrap;
}

/* Placement: top-right of the image, clear of the category chip
   (top-left) and the title (bottom). */
.mg-post-thumb .pn-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 .pn-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 —
   text stamp (site name), matching the buffer-injected .pn-stamp. */
.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;
	display: inline-flex;
	align-items: center;
	padding: 3px 7px;
	background: linear-gradient(135deg, #4f46e5 0%, #4338ca 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;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.02em;
	color: #ffffff;
	white-space: nowrap;
}

/* ==========================================================================
   §17  AD ORGANISATION — AdSense Auto Ads only (3 Dec 2026).
   This site has NO AdSense configured today (no pub id in served HTML,
   no ads.txt, Site Kit AdSense module inactive, no manual ad slots) —
   so nothing renders yet. These rules are the layout-side organisation
   for when Auto Ads is enabled: ad units sit in soft rounded containers
   that blend with the cards/feed (no harsh boxes), never overlap the
   bottom nav / drawer / search panel, and never break the card grid.
   No manual slots are added (they would fight Auto Ads); no AdSense
   account change is made here. If an account-side format (anchor /
   vignette) ever looks intrusive, that is an AdSense-account setting —
   noted as a recommendation, not changed here.
   ========================================================================== */
ins.adsbygoogle,
.adsbygoogle {
	display: block;
	max-width: 100%;
	margin: 18px auto;
	border-radius: 12px;
	overflow: hidden;
	background: transparent;
}
/* In-feed / in-article units: same rhythm as the cards around them. */
.mg-blog-post .adsbygoogle,
.mg-blog-inner .adsbygoogle,
.single-post .adsbygoogle {
	margin: 20px auto;
}
/* Never let an ad sit under the fixed mobile bottom nav or drawer. */
.pn-bottom-nav ~ .adsbygoogle,
body .adsbygoogle:last-child {
	margin-bottom: 24px;
}
@media (max-width: 768px) {
	ins.adsbygoogle,
	.adsbygoogle {
		margin: 14px auto;
	}
}
/* An ad that fails to fill must not leave a tall empty box. */
ins.adsbygoogle[data-ad-status="unfilled"] {
	display: none !important;
}
