/*
Theme Name: GeneratePress Child
Theme URI: https://generatepress.com
Description: Child theme of GeneratePress — soft modern Urdu novel platform.
Author: Baazar of Novels
Template: generatepress
Version: 2.6.0
Requires at least: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: generatepress-child
*/

@import url('https://fonts.googleapis.com/css2?family=Noto+Nastaliq+Urdu:wght@400;700&display=swap');

/* ==========================================================================
   ANTI-FLASH (FOUT) IMMEDIATE NAV BUTTON CONTRAST ENFORCEMENT
   ========================================================================== */

/* High specificity root override to kill default GeneratePress inline link color */
html body .main-navigation .main-nav ul li[class*="current-menu-"] > a,
html body .main-navigation .main-nav ul li.current-menu-item > a,
html body .main-navigation .main-nav ul li.current_page_item > a,
html body .main-navigation .main-nav ul li[class*="current-menu-"] > a:visited,
html body .main-navigation .main-nav ul li.current-menu-item > a:visited {
	background-color: #3d230d !important;
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
	font-weight: 700 !important;
	border-radius: 20px !important;
}

/* Ensure child text nodes, spans, and links never flicker to brown */
html body .main-navigation .main-nav ul li[class*="current-menu-"] > a *,
html body .main-navigation .main-nav ul li.current-menu-item > a * {
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
}

/* =============================================================================
   Design tokens — Soft Modern Pastel
   ============================================================================= */
:root {
	--bn-bg: #fdfbf7;
	--bn-surface: #ffffff;
	--bn-text: #2d241e;
	--bn-muted: #5c4a3e;
	--bn-border: #e7dfd5;
	--bn-border-strong: #d6cbbd;
	--bn-accent: #a06838;
	--bn-accent-deep: #8b5a2b;
	--bn-accent-soft: #f4eee6;
	--bn-shadow: 0 4px 20px -2px rgba(45, 36, 30, 0.08);
	--bn-shadow-lg: 0 12px 32px -8px rgba(160, 104, 56, 0.22);
	--bn-radius: 12px;
	--bn-radius-lg: 16px;
	--bn-font-stack: 'Noto Nastaliq Urdu', 'Noto Sans Arabic', 'Jameel Noori Nastaliq', serif;
	--bn-font-urdu: var(--bn-font-stack);
	--bn-font-ui: 'Noto Sans', 'Noto Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
	--bn-gradient-cta: linear-gradient(135deg, #a06838, #8b5a2b);
	/* Clearance for fixed theme switcher / resume chip */
	--bn-floating-clearance: 5.75rem;
	--bn-floating-clearance-mobile: 5rem;

	/* Reader / legacy aliases */
	--gp-reader-bg: var(--bn-bg);
	--gp-reader-text: var(--bn-text);
	--gp-reader-muted: var(--bn-muted);
	--gp-reader-surface: rgba(255, 255, 255, 0.92);
	--gp-reader-border: var(--bn-border-strong);
	--gp-reader-pill: var(--bn-accent);
	--gp-reader-pill-text: #ffffff;
	--gp-reader-pill-current: var(--bn-accent-deep);
	--gp-ad-border: #e2d7c8;
	--gp-ad-bg: #f4eee6;
	--gp-ad-label: #8b5a2b;
}

/* =============================================================================
   Base — kill muddy/brown GP defaults, soft slate canvas
   ============================================================================= */

/* Kill horizontal scroll & force strict viewport width */
html,
body,
#page,
.site,
.container,
.grid-container {
	max-width: 100vw !important;
	overflow-x: hidden !important;
	box-sizing: border-box !important;
}

html,
body {
	margin: 0;
	padding: 0;
	width: 100%;
	position: relative;
	background-color: var(--bn-bg);
}

body {
	background-color: var(--bn-bg) !important;
	color: var(--bn-text);
	font-family: 'Noto Nastaliq Urdu', 'Noto Sans Arabic', 'Jameel Noori Nastaliq', serif;
	-webkit-font-smoothing: antialiased;
}

*,
*::before,
*::after {
	box-sizing: border-box !important;
}

#page,
.site,
.site-content,
.grid-container,
.container,
.inside-header,
.content-area,
.inside-article,
.novels-grid,
.novel-hero-slider,
.entry-content,
.ad-container,
.site-header,
.main-navigation,
.footer-widgets-container {
	max-width: 100% !important;
}

img,
video,
iframe,
embed,
object,
svg,
table {
	max-width: 100% !important;
	height: auto;
}

/* Force default site chrome + English text to LTR */
body,
#page,
.site,
.site-header,
.main-navigation,
.entry-title,
.entry-content {
	direction: ltr !important;
	text-align: left !important;
}

/* Apply Nastaliq stack strictly to Urdu content blocks */
.urdu-text,
:lang(ur),
.entry-content p {
	font-family: 'Noto Nastaliq Urdu', 'Noto Sans Arabic', 'Jameel Noori Nastaliq', serif !important;
}

body .site,
body .site-content,
body .content-area,
body .inside-article,
body .sidebar .widget {
	background-color: transparent;
	color: var(--bn-text);
}

/* Override common GeneratePress customizer browns / dark blocks */
.site-header,
.main-navigation,
.main-navigation .inside-navigation,
.main-navigation .main-nav > ul > li > a,
.inside-header,
.header-widget,
.top-bar {
	background-color: transparent !important;
	background-image: none !important;
}

.site-content {
	background:
		radial-gradient(900px 320px at 100% 0%, rgba(99, 102, 241, 0.07), transparent 55%),
		radial-gradient(700px 280px at 0% 20%, rgba(224, 231, 255, 0.65), transparent 50%),
		var(--bn-bg);
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.entry-title a,
.main-title,
.main-title a,
.page-header .page-title,
.archive-title,
.novel-card__title,
.novel-hero-title,
.novels-grid-heading {
	font-family: 'Noto Nastaliq Urdu', 'Noto Sans Arabic', 'Jameel Noori Nastaliq', serif;
	color: var(--bn-text);
	font-weight: 700;
}

a {
	color: var(--bn-accent);
}

a:hover {
	color: var(--bn-accent-deep);
}

/* =============================================================================
   High-contrast content / sidebar / comment links
   ============================================================================= */
.entry-content a:not(.novel-cta-btn):not(.novel-share-whatsapp):not(.button):not(.wp-block-button__link):not(.gb-button):not(.novel-hero-cta):not(.novel-card__cta),
.entry-content ul li a,
.entry-content ol li a,
.entry-summary a,
.sidebar a:not(.button),
.widget a:not(.button),
.comment-content a,
.entry-meta a,
.footer-meta a,
.post-meta a {
	color: #818cf8 !important;
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.entry-content a:not(.novel-cta-btn):not(.novel-share-whatsapp):not(.button):not(.wp-block-button__link):not(.gb-button):not(.novel-hero-cta):not(.novel-card__cta):hover,
.entry-content ul li a:hover,
.entry-content ol li a:hover,
.entry-summary a:hover,
.sidebar a:not(.button):hover,
.widget a:not(.button):hover,
.comment-content a:hover,
.entry-meta a:hover,
.footer-meta a:hover,
.post-meta a:hover {
	color: #a5b4fc !important;
}

/* Keep branded CTAs / buttons free of underline indigo overrides */
.entry-content a.novel-cta-btn,
.entry-content a.novel-share-whatsapp,
.entry-content a.button,
.entry-content a.wp-block-button__link,
.entry-content a.novel-card__cta,
.entry-content a.novel-hero-cta,
.sidebar a.button,
.widget a.button {
	text-decoration: none !important;
}

.entry-content a.novel-cta-btn--download {
	color: #fff !important;
	background: var(--bn-gradient-cta) !important;
}

.entry-content a.novel-cta-btn--read {
	color: var(--bn-text) !important;
	background: transparent !important;
	border-color: var(--bn-accent) !important;
}

.entry-content a.novel-cta-btn--read:hover {
	color: #fff !important;
	background: var(--bn-accent) !important;
}

.entry-content a.novel-share-whatsapp {
	color: #fff !important;
	background: #25d366 !important;
}

/* =============================================================================
   Typography — LTR defaults; Urdu font on content paragraphs
   ============================================================================= */

.entry-content,
.entry-summary {
	font-family: 'Noto Nastaliq Urdu', 'Noto Sans Arabic', 'Jameel Noori Nastaliq', serif;
	font-size: 17px;
	line-height: 1.8;
	letter-spacing: 0;
	color: var(--bn-text);
}

.entry-content p,
.entry-summary p {
	font-size: inherit;
	line-height: inherit;
	margin-bottom: 1.35em;
	color: var(--bn-text);
}

.novel-hero-desc {
	font-family: 'Noto Nastaliq Urdu', 'Noto Sans Arabic', 'Jameel Noori Nastaliq', serif;
}

/* Marked Urdu nodes can still flip to RTL for reading comfort */
.urdu-text,
.novel-hero-cta__urdu {
	direction: rtl !important;
	text-align: right !important;
	unicode-bidi: isolate;
	font-family: 'Noto Nastaliq Urdu', 'Noto Sans Arabic', 'Jameel Noori Nastaliq', serif !important;
}

/* English UI / meta — always LTR */
.ltr-meta,
.novel-card__author,
.novel-card__cta,
.novel-card__cat-badge:not(.urdu-text),
.novel-hero-eyebrow,
.novel-hero-cat:not(.urdu-text),
.novel-hero-cta__en,
.category-pill:not(.urdu-text),
.header-search-form,
.main-navigation,
.entry-meta,
.footer-meta,
.post-meta,
.site-info,
.wp-block-button,
.button,
input,
button,
select,
textarea {
	direction: ltr !important;
	text-align: left !important;
	unicode-bidi: isolate;
	font-family: var(--bn-font-ui);
}

/* Featured / content images — fluid, no forced crop */
.entry-content img,
.featured-image img,
.post-image img {
	max-width: 100%;
	height: auto;
	border-radius: var(--bn-radius);
	object-fit: contain;
}

.featured-image {
	display: flex;
	justify-content: center;
	align-items: center;
	max-height: 480px;
	overflow: hidden;
	margin-bottom: 1rem;
}

.featured-image img {
	max-height: 480px;
	width: auto;
	max-width: 100%;
}

/* Single novel cover — prominent at top of post */
body.single-post .bn-single-cover,
body.single-post .featured-image.page-header-image-single {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	max-width: 100%;
	margin: 0 0 1.25rem;
	padding: 0;
	max-height: none;
	overflow: visible;
}

body.single-post .bn-single-cover img,
body.single-post .bn-single-cover__img,
body.single-post .featured-image.page-header-image-single img {
	display: block;
	width: min(100%, 420px);
	max-width: 100%;
	height: auto;
	max-height: min(70vh, 640px);
	margin-inline: auto;
	border-radius: var(--bn-radius-lg, 14px);
	object-fit: contain;
	box-shadow: 0 12px 36px rgba(45, 28, 14, 0.18);
}

.novel-card__cover-img {
	object-fit: contain;
	object-position: center;
}

/* =============================================================================
   Header — compact sticky glass + soft nav pills + modern search
   ============================================================================= */
.site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	padding: 10px 0;
	background: rgba(255, 255, 255, 0.92) !important;
	border-bottom: 1px solid var(--bn-border);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	box-shadow: var(--bn-shadow);
	width: 100%;
}

.inside-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.65rem 1rem;
	flex-wrap: nowrap;
	padding: 10px 0;
	min-height: 0;
}

.site-branding {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 0.1rem;
	flex: 1 1 auto;
	min-width: 0;
	max-height: none;
}

.site-branding .main-title {
	margin: 0;
	line-height: 1.2;
	font-size: 1.15rem;
	max-width: 100%;
}

.site-branding .site-description {
	margin: 0;
	padding: 0;
	max-width: 100%;
	font-size: 0.72rem;
	line-height: 1.25;
	opacity: 0.72;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.site-branding .main-title a,
.site-logo img,
.header-image,
.site-logo .header-image,
.custom-logo-link img,
img.custom-logo {
	color: var(--bn-text) !important;
	font-weight: 700;
	max-height: 45px !important;
	width: auto !important;
	height: auto !important;
	object-fit: contain;
}

.main-navigation,
.main-navigation .inside-navigation {
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	line-height: 1.2;
}

.main-navigation .main-nav > ul > li > a {
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
}

.main-navigation ul,
.main-navigation .main-nav > ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.main-navigation .main-nav > ul > li,
.main-navigation ul > li {
	float: none !important;
	list-style: none;
	margin: 0;
	padding: 0;
	background: transparent !important;
	background-image: none !important;
}

/* Desktop nav row — keep compact */
@media screen and (min-width: 769px) {
	.main-navigation ul,
	.main-navigation .main-nav > ul {
		display: flex !important;
		flex-direction: row !important;
		flex-wrap: wrap;
		align-items: center;
		justify-content: flex-start;
		gap: 0.65rem;
	}
}

/* Force Home to the visual start of the nav */
.main-navigation li.menu-item-home,
.main-navigation li:has(> a[href$="baazarofnovelscom.local"]),
.main-navigation li:has(> a[href$="baazarofnovelscom.local/"]),
.main-navigation li:has(> a[href="/"]) {
	order: -1 !important;
}

.main-navigation .main-nav > ul > li > a {
	border-radius: 999px !important;
	padding: 0.35rem 0.8rem !important;
	margin: 0 !important;
	background: transparent !important;
	color: var(--bn-text) !important;
	font-family: var(--bn-font-ui);
	font-size: 0.85rem;
	font-weight: 600;
	line-height: 1.2;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.main-navigation .main-nav > ul > li > a:hover,
.main-navigation .main-nav > ul > li:hover > a,
.main-navigation .main-nav > ul > li[class*="current-menu-"] > a {
	background: var(--bn-accent-soft) !important;
	color: var(--bn-accent-deep) !important;
}

/* Mobile header / nav compacting — single toggle, no collision, no overflow */
@media screen and (max-width: 768px) {
	/* Strict fixed mobile header — never scrolls away */
	#masthead,
	#masthead.site-header,
	header#masthead,
	.site-header {
		position: fixed !important;
		top: 0 !important;
		left: 0 !important;
		right: 0 !important;
		width: 100% !important;
		max-width: 100vw !important;
		z-index: 99999 !important;
		padding: 0 !important;
		overflow: visible !important;
		margin: 0 !important;
		transform: none !important;
		-webkit-transform: none !important;
	}

	body.bn-has-fixed-header,
	body {
		padding-top: var(--bn-fixed-header-h, 56px) !important;
	}

	#page,
	.site {
		padding-top: 0 !important;
	}

	.site-header {
		overflow: visible;
		max-width: 100vw !important;
	}

	.inside-header {
		display: flex !important;
		align-items: center !important;
		justify-content: space-between !important;
		flex-wrap: nowrap !important;
		padding: 8px 15px !important;
		gap: 0.5rem;
		width: 100%;
		max-width: 100vw !important;
		overflow: visible;
	}

	.site-branding,
	.site-logo,
	.header-widget {
		flex: 1 1 auto;
		min-width: 0;
		max-width: none;
		overflow: visible;
	}

	.site-branding .main-title,
	.site-branding .site-title {
		font-size: 0.95rem;
		font-weight: 700;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		max-width: 100%;
	}

	.site-branding .main-title a,
	.site-branding .site-title a {
		font-size: inherit;
		font-weight: 700;
		letter-spacing: -0.2px;
		display: block;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.site-branding .site-description {
		display: none !important;
	}

	.site-logo img,
	.custom-logo-link img,
	img.custom-logo,
	.header-image {
		max-height: 40px !important;
		max-width: 140px !important;
		width: auto !important;
		object-fit: contain !important;
	}

	/* One control cluster: search + hamburger only */
	.header-search-wrap {
		order: 2;
		flex: 0 0 auto;
		margin-inline-start: 0;
	}

	.main-navigation {
		flex: 0 0 auto;
		order: 3;
		width: auto !important;
		max-width: none;
		position: static !important; /* allow fixed drawer relative to viewport */
		z-index: 999999;
	}

	/* Kill GP duplicate mobile chrome (second menu / bar icons) */
	.mobile-bar-items,
	.nav-float-right .menu-bar-items,
	.gen-sidebar-nav,
	#mobile-header,
	.mobile-header-navigation,
	.menu-bar-item:not(.search-item),
	.main-navigation .menu-bar-items {
		display: none !important;
	}

	.main-navigation .menu-toggle {
		display: inline-flex !important;
		align-items: center;
		justify-content: center;
		position: relative;
		z-index: 1000001;
		background: #6366f1 !important;
		color: #ffffff !important;
		border: none !important;
		border-radius: 8px;
		padding: 6px 12px;
		line-height: 1.2;
		font-family: var(--bn-font-ui);
		font-weight: 700;
		min-height: 36px;
		width: auto !important;
		white-space: nowrap;
	}

	.main-navigation .menu-toggle:hover,
	.main-navigation .menu-toggle:focus {
		background: #4f46e5 !important;
		color: #ffffff !important;
	}

	/* Hide full un-collapsed desktop menu list on mobile until toggled */
	.main-navigation:not(.toggled) .main-nav,
	.main-navigation:not(.toggled) .main-nav > ul,
	.main-navigation:not(.toggled) ul.nav {
		display: none !important;
		visibility: hidden !important;
		height: 0 !important;
		overflow: hidden !important;
		pointer-events: none !important;
	}

	/*
	 * iOS Safari fix: only .main-nav is the fixed scrollable drawer.
	 * Do NOT also position the inner <ul> fixed — that collapses the drawer
	 * and, with overflow-x:hidden ancestors, clips all but the first item.
	 */
	.main-navigation.toggled .main-nav {
		display: block !important;
		position: fixed !important;
		top: var(--bn-fixed-header-h, 56px) !important;
		left: 0 !important;
		right: 0 !important;
		bottom: auto !important;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		margin: 0 !important;
		background-color: #1e293b !important;
		z-index: 1000000 !important;
		padding: 12px 15px calc(20px + env(safe-area-inset-bottom, 0px)) !important;
		box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5) !important;
		border-bottom: 2px solid var(--bn-accent, #a06838) !important;
		border-radius: 0 !important;
		visibility: visible !important;
		height: auto !important;
		max-height: calc(100vh - var(--bn-fixed-header-h, 56px) - env(safe-area-inset-bottom, 0px)) !important;
		max-height: calc(100dvh - var(--bn-fixed-header-h, 56px) - env(safe-area-inset-bottom, 0px)) !important;
		overflow-x: hidden !important;
		overflow-y: auto !important;
		-webkit-overflow-scrolling: touch !important;
		overscroll-behavior: contain;
		gap: 0 !important;
		transform: none !important;
		-webkit-transform: none !important;
		inset-inline: 0 !important;
		box-sizing: border-box !important;
		pointer-events: auto !important;
	}

	/* Inner list stays in normal flow so all items participate in scroll height */
	.main-navigation.toggled .main-nav > ul,
	.main-navigation.toggled div.main-nav > ul,
	.main-navigation.toggled .main-nav ul.nav {
		display: flex !important;
		flex-direction: column !important;
		flex-wrap: nowrap !important;
		align-items: stretch !important;
		justify-content: flex-start !important;
		position: static !important;
		top: auto !important;
		left: auto !important;
		right: auto !important;
		bottom: auto !important;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		height: auto !important;
		max-height: none !important;
		margin: 0 !important;
		padding: 0 !important;
		overflow: visible !important;
		background: transparent !important;
		box-shadow: none !important;
		border: 0 !important;
		border-radius: 0 !important;
		transform: none !important;
		visibility: visible !important;
		pointer-events: auto !important;
		gap: 0 !important;
		box-sizing: border-box !important;
	}

	.main-navigation.toggled .main-nav ul li {
		width: 100% !important;
		max-width: 100% !important;
		flex: 0 0 auto !important;
		display: block !important;
		float: none !important;
		clear: both !important;
		text-align: left !important;
		padding: 8px 0 !important;
		margin: 0 !important;
		border-bottom: 1px solid #334155 !important;
		box-sizing: border-box !important;
		visibility: visible !important;
		opacity: 1 !important;
		height: auto !important;
		max-height: none !important;
		overflow: visible !important;
	}

	.main-navigation.toggled .main-nav ul li:last-child {
		border-bottom: none !important;
	}

	.main-navigation.toggled .main-nav ul li a {
		display: block !important;
		width: 100% !important;
		max-width: 100% !important;
		/* Default to dark text — light theme drawer is white; dark theme overrides below */
		color: #1e293b !important;
		-webkit-text-fill-color: #1e293b !important;
		font-size: 1rem !important;
		font-weight: 600 !important;
		background: transparent !important;
		border-radius: 6px !important;
		padding: 0.65rem 0.75rem !important;
		text-decoration: none !important;
		white-space: normal !important;
		box-sizing: border-box !important;
		visibility: visible !important;
		opacity: 1 !important;
	}

	.main-navigation.toggled .main-nav ul li .dropdown-menu-toggle,
	.main-navigation.toggled .main-nav ul li .dropdown-menu-toggle:before {
		color: #1e293b !important;
		-webkit-text-fill-color: #1e293b !important;
		opacity: 1 !important;
		visibility: visible !important;
	}

	.main-navigation.toggled .main-nav ul li a:hover,
	.main-navigation.toggled .main-nav ul li[class*="current-menu-"] > a,
	.main-navigation.toggled .main-nav ul li.current-menu-item > a,
	.main-navigation.toggled .main-nav ul li.current_page_item > a {
		background: linear-gradient(135deg, #a06838, #8b5a2b) !important;
		color: #ffffff !important;
		-webkit-text-fill-color: #ffffff !important;
	}

	.main-navigation.toggled .main-nav ul li[class*="current-menu-"] > a .dropdown-menu-toggle,
	.main-navigation.toggled .main-nav ul li.current-menu-item > a .dropdown-menu-toggle {
		color: #ffffff !important;
		-webkit-text-fill-color: #ffffff !important;
	}

	/* Dark / coffee drawer: light labels on dark panel */
	body.theme-coffee .main-navigation.toggled .main-nav,
	body.theme-indigo .main-navigation.toggled .main-nav,
	body.theme-emerald .main-navigation.toggled .main-nav,
	body.dark-theme .main-navigation.toggled .main-nav {
		background-color: #1a1614 !important;
		border-bottom-color: #a06838 !important;
	}

	body.theme-coffee .main-navigation.toggled .main-nav ul li,
	body.theme-indigo .main-navigation.toggled .main-nav ul li,
	body.theme-emerald .main-navigation.toggled .main-nav ul li,
	body.dark-theme .main-navigation.toggled .main-nav ul li {
		border-bottom-color: rgba(184, 138, 93, 0.35) !important;
	}

	body.theme-coffee .main-navigation.toggled .main-nav ul li a,
	body.theme-indigo .main-navigation.toggled .main-nav ul li a,
	body.theme-emerald .main-navigation.toggled .main-nav ul li a,
	body.dark-theme .main-navigation.toggled .main-nav ul li a,
	body.theme-coffee .main-navigation.toggled .main-nav ul li .dropdown-menu-toggle,
	body.theme-indigo .main-navigation.toggled .main-nav ul li .dropdown-menu-toggle,
	body.theme-emerald .main-navigation.toggled .main-nav ul li .dropdown-menu-toggle,
	body.dark-theme .main-navigation.toggled .main-nav ul li .dropdown-menu-toggle {
		color: #f3ebd9 !important;
		-webkit-text-fill-color: #f3ebd9 !important;
	}

	body.theme-coffee .main-navigation.toggled .main-nav ul li a:hover,
	body.theme-coffee .main-navigation.toggled .main-nav ul li[class*="current-menu-"] > a,
	body.theme-indigo .main-navigation.toggled .main-nav ul li a:hover,
	body.theme-indigo .main-navigation.toggled .main-nav ul li[class*="current-menu-"] > a,
	body.theme-emerald .main-navigation.toggled .main-nav ul li a:hover,
	body.theme-emerald .main-navigation.toggled .main-nav ul li[class*="current-menu-"] > a,
	body.dark-theme .main-navigation.toggled .main-nav ul li a:hover,
	body.dark-theme .main-navigation.toggled .main-nav ul li[class*="current-menu-"] > a {
		background: linear-gradient(135deg, #a06838, #784820) !important;
		color: #ffffff !important;
		-webkit-text-fill-color: #ffffff !important;
	}

	/* Light themes: keep drawer / list white with dark labels */
	body.theme-cream .main-navigation.toggled .main-nav,
	body.theme-rose .main-navigation.toggled .main-nav,
	body.theme-nordic .main-navigation.toggled .main-nav {
		background-color: #ffffff !important;
		border-bottom-color: #a06838 !important;
	}

	body.theme-cream .main-navigation.toggled .main-nav ul li,
	body.theme-rose .main-navigation.toggled .main-nav ul li,
	body.theme-nordic .main-navigation.toggled .main-nav ul li {
		border-bottom-color: #e7dfd5 !important;
	}

	body.theme-cream .main-navigation.toggled .main-nav ul li a,
	body.theme-rose .main-navigation.toggled .main-nav ul li a,
	body.theme-nordic .main-navigation.toggled .main-nav ul li a,
	body.theme-cream .main-navigation.toggled .main-nav ul li .dropdown-menu-toggle,
	body.theme-rose .main-navigation.toggled .main-nav ul li .dropdown-menu-toggle,
	body.theme-nordic .main-navigation.toggled .main-nav ul li .dropdown-menu-toggle {
		color: #1e293b !important;
		-webkit-text-fill-color: #1e293b !important;
		background: transparent !important;
	}

	/*
	 * Unlock ancestor overflow while the drawer is open.
	 * iOS Safari clips position:fixed descendants when an ancestor has
	 * overflow-x: hidden — which made only "Home" visible.
	 */
	html.bn-nav-open,
	body.bn-nav-open #page,
	body.bn-nav-open .site,
	body.bn-nav-open .site-header,
	body.bn-nav-open #masthead,
	body.bn-nav-open .inside-header,
	body.bn-nav-open .main-navigation,
	body.bn-nav-open .main-navigation .inside-navigation,
	body.bn-nav-open .grid-container,
	body.bn-nav-open .container {
		overflow: visible !important;
		overflow-x: visible !important;
		overflow-y: visible !important;
		max-height: none !important;
	}

	/* Lock background page scroll; the drawer itself scrolls via touch pan-y */
	html.bn-nav-open,
	body.bn-nav-open {
		overflow: hidden !important;
		height: 100% !important;
		overscroll-behavior: none;
	}

	body.bn-nav-open .main-navigation.toggled .main-nav {
		touch-action: pan-y !important;
		pointer-events: auto !important;
	}

	.main-navigation .inside-navigation {
		position: static !important;
		display: flex;
		align-items: center;
		justify-content: flex-end;
		width: auto;
		overflow: visible !important;
	}

	.site-header {
		overflow: visible !important;
		z-index: 99999 !important;
		width: 100% !important;
		max-width: 100vw !important;
	}

	.inside-header {
		overflow: visible !important;
		width: 100% !important;
		max-width: 100% !important;
	}

	/* Lock all page chrome to the viewport — no horizontal cut/scroll */
	.site-content,
	.content-area,
	.inside-article,
	.novels-grid-section,
	.novel-hero-slider,
	.novel-hero-slide,
	.category-pills-bar,
	.category-pills-track,
	.ad-container,
	.sidebar,
	.widget,
	.site-footer,
	.footer-widgets,
	.entry-content,
	.comments-area {
		overflow-x: hidden !important;
		max-width: 100% !important;
		width: 100% !important;
		box-sizing: border-box !important;
	}

	.category-pills-track {
		overflow-x: auto !important;
		overflow-y: hidden !important;
		width: 100% !important;
		max-width: 100% !important;
		-webkit-overflow-scrolling: touch;
	}

	.novels-grid {
		grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
		gap: 1rem !important;
		width: 100% !important;
		max-width: 100% !important;
		margin: 0 !important;
		padding: 0 !important;
	}

	.novel-hero-nav--prev { left: 0.35rem !important; }
	.novel-hero-nav--next { right: 0.35rem !important; }

	.header-search-panel {
		right: 0 !important;
		left: auto !important;
		width: min(92vw, 280px) !important;
		max-width: calc(100vw - 30px) !important;
	}

	/* Hero banner: no harsh face-crop; contain within frame */
	.novel-hero-media {
		overflow: hidden;
		background: #e2e8f0;
	}

	.novel-hero-img,
	.novel-hero-media img {
		width: 100% !important;
		height: 100% !important;
		max-height: 165px !important;
		object-fit: contain !important;
		object-position: center center !important;
	}

	.novel-card__cover-img {
		object-fit: contain;
		object-position: center;
	}

	.entry-content img,
	.featured-image img,
	.post-image img {
		max-width: 100% !important;
		height: auto !important;
		object-fit: contain;
	}
}

/* One search bar only — hide sidebar / widget search duplicates */
.widget_search,
.sidebar .widget_search,
#secondary .widget_search,
.footer-widgets .widget_search {
	display: none !important;
}

.header-search-wrap {
	display: flex;
	align-items: center;
	position: relative;
	margin-inline-start: auto;
}

.header-search-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: 1px solid #e2e8f0;
	border-radius: 999px;
	background: var(--bn-surface);
	color: var(--bn-text);
	cursor: pointer;
	box-shadow: var(--bn-shadow);
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.header-search-toggle:hover {
	border-color: var(--bn-accent);
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.header-search-toggle svg {
	width: 1.05rem;
	height: 1.05rem;
	fill: currentColor;
}

.header-search-panel {
	position: absolute;
	top: calc(100% + 0.5rem);
	right: 0;
	z-index: 20;
	width: min(92vw, 320px);
	padding: 0.55rem;
	border-radius: var(--bn-radius-lg);
	background: var(--bn-surface);
	border: 1px solid var(--bn-border);
	box-shadow: var(--bn-shadow-lg);
}

.header-search-panel[hidden] {
	display: none !important;
}

.header-search-form {
	display: flex;
	gap: 0.4rem;
	align-items: center;
	margin: 0;
}

.header-search-field,
.search-form .search-field {
	flex: 1 1 auto;
	min-width: 0;
	height: 2.5rem;
	padding: 0 1rem;
	border: 1px solid #e2e8f0;
	border-radius: 999px;
	background: #fff;
	color: var(--bn-text);
	font-family: var(--bn-font-ui);
	font-size: 0.95rem;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search-field:focus,
.search-form .search-field:focus {
	border-color: var(--bn-accent);
	box-shadow: 0 0 0 3px rgba(160, 104, 56, 0.35);
}

.header-search-submit,
.search-form .search-submit {
	height: 2.5rem;
	padding: 0 1.1rem;
	border: 0;
	border-radius: 999px;
	background: var(--bn-gradient-cta);
	color: #fff;
	font-family: var(--bn-font-ui);
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(160, 104, 56, 0.3);
}

@media screen and (min-width: 769px) {
	.header-search-panel {
		position: static;
		width: auto;
		padding: 0;
		border: 0;
		background: transparent;
		box-shadow: none;
	}

	.header-search-panel[hidden] {
		display: block !important;
	}

	.header-search-toggle {
		display: none;
	}

	.header-search-field {
		width: 220px;
	}
}

/* =============================================================================
   Buttons / CTAs
   ============================================================================= */
.button,
.wp-block-button__link,
.novel-card__cta,
.novel-hero-cta,
a.gb-button,
.entry-content .download-button,
.entry-content a.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	padding: 12px 24px;
	border: 0;
	border-radius: var(--bn-radius);
	background: var(--bn-gradient-cta) !important;
	color: #fff !important;
	font-family: var(--bn-font-ui);
	font-weight: 600;
	text-decoration: none;
	box-shadow: 0 6px 18px rgba(160, 104, 56, 0.28);
	transition: transform 0.18s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.button:hover,
.wp-block-button__link:hover,
.novel-card__cta:hover,
.novel-hero-cta:hover {
	transform: translateY(-1px);
	filter: brightness(1.05);
	box-shadow: 0 10px 24px rgba(160, 104, 56, 0.35);
	color: #fff !important;
}

/* =============================================================================
   Sidebar widgets
   ============================================================================= */
.sidebar .widget,
.footer-widgets .widget {
	background: var(--bn-surface);
	border: 1px solid var(--bn-border);
	border-radius: var(--bn-radius-lg);
	box-shadow: var(--bn-shadow);
	padding: 1.15rem 1.2rem;
	margin-bottom: 1.25rem;
}

.sidebar .widget .widget-title,
.footer-widgets .widget-title {
	margin: -1.15rem -1.2rem 1rem;
	padding: 0.85rem 1.2rem;
	border-bottom: 1px solid var(--bn-border);
	border-radius: var(--bn-radius-lg) var(--bn-radius-lg) 0 0;
	background: linear-gradient(180deg, #ffffff, #f8fafc);
	font-family: var(--bn-font-ui);
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--bn-text);
}

/* =============================================================================
   Single article / reading surface
   ============================================================================= */
body.single-post .inside-article,
body.page .inside-article {
	background: var(--bn-surface);
	border: 1px solid var(--bn-border);
	border-radius: var(--bn-radius-lg);
	box-shadow: var(--bn-shadow);
	padding: 1.25rem 1.15rem 1.5rem;
}

@media screen and (min-width: 769px) {
	body.single-post .inside-article,
	body.page .inside-article {
		padding: 1.75rem 2rem 2rem;
	}
}

/* =============================================================================
   AdSense / ad slots — CLS-reserved, in-flow only (no floating overlays)
   ============================================================================= */
.ad-container--preview,
.adsense-slot.ad-container--preview,
.home-side-panel--ads {
	display: none !important;
}

.bn-ad,
.ad-container,
.adsense-slot {
	position: relative !important;
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 1.25rem 0;
	padding: 0.5rem 0 0.75rem;
	text-align: center;
	box-sizing: border-box;
	border-radius: var(--bn-radius, 10px);
	background: transparent;
	clear: both;
	/* Never float over reading content — AdSense + UX safe */
	float: none !important;
	inset: auto !important;
	z-index: 1 !important;
	transform: none !important;
	pointer-events: auto;
	contain: layout;
	overflow: hidden;
}

.bn-ad__label {
	display: block;
	margin: 0 0 0.35rem;
	font-family: var(--bn-font-ui, system-ui, sans-serif);
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--bn-muted, #64748b);
	opacity: 0.85;
	line-height: 1.2;
	user-select: none;
}

.bn-ad__inner {
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	overflow: hidden;
	contain: layout;
}

.bn-ad .adsbygoogle,
.ad-container .adsbygoogle,
.adsense-slot .adsbygoogle {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 auto;
}

/* Reserved heights reduce CLS while units load asynchronously */
.ad-container--header,
.adsense-slot-header,
.bn-ad.ad-container--header {
	min-height: 100px;
}

.ad-container--inline,
.adsense-slot-inline,
.bn-ad.ad-container--inline {
	min-height: 280px;
	margin: 1.75rem 0;
}

.ad-container--footer,
.adsense-slot-footer,
.bn-ad.ad-container--footer {
	min-height: 100px;
}

.ad-container--sidebar,
.adsense-slot-sidebar,
.bn-ad.ad-container--sidebar {
	min-height: 280px;
	margin: 0 0 1.25rem;
}

/* Keep ads away from CTAs / download buttons (invalid-click risk) */
.novel-cta-block + .bn-ad,
.bn-ad + .novel-cta-block,
.entry-content .download-button,
.entry-content .novel-cta-btn {
	scroll-margin: 1rem;
}

.bn-ad + .novel-cta-block,
.novel-cta-block + .bn-ad {
	margin-top: 1.75rem;
}

.adsense-slot-label {
	display: none !important;
}

/* Explicitly forbid sticky / fixed / overlay ad patterns in this theme */
.bn-ad[style*="position: fixed"],
.bn-ad[style*="position:fixed"],
.ad-container.bn-ad--floating,
.adsense-slot--floating,
.bn-ad--anchor,
.bn-ad--sticky {
	display: none !important;
}

/* =============================================================================
   Novel CTA — Download PDF / Read Online
   ============================================================================= */
.novel-cta-block {
	margin: 2rem 0 1.25rem;
	padding: 1.25rem 1rem;
	border-radius: var(--bn-radius-lg);
	background: linear-gradient(180deg, #eef2ff 0%, #ffffff 100%);
	border: 1px solid var(--bn-border);
	box-shadow: var(--bn-shadow);
}

.novel-cta-buttons {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.85rem;
}

.novel-cta-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	min-height: 2.75rem;
	padding: 0.7rem 1.5rem;
	border-radius: 999px;
	font-family: var(--bn-font-ui);
	font-size: 0.95rem;
	font-weight: 700;
	text-decoration: none !important;
	line-height: 1.2;
	transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.novel-cta-btn--download {
	background: var(--bn-gradient-cta) !important;
	color: #fff !important;
	border: 0;
	box-shadow: 0 6px 18px rgba(160, 104, 56, 0.32);
}

.novel-cta-btn--download:hover {
	transform: scale(1.04);
	color: #fff !important;
	filter: brightness(1.05);
	box-shadow: 0 10px 24px rgba(160, 104, 56, 0.4);
}

.novel-cta-btn--read {
	background: transparent !important;
	color: var(--bn-text) !important;
	border: 2px solid var(--bn-accent);
	box-shadow: none;
}

.novel-cta-btn--read:hover {
	background: var(--bn-accent) !important;
	color: #fff !important;
	border-color: var(--bn-accent);
	transform: scale(1.03);
}

.novel-cta-btn--read:hover .novel-cta-btn__urdu {
	color: #fff !important;
}

.novel-cta-btn__urdu {
	font-family: var(--bn-font-urdu);
	font-size: 1.05rem;
}

/* =============================================================================
   WhatsApp share widget
   ============================================================================= */
.novel-share-widget {
	display: flex;
	justify-content: center;
	margin: 1.5rem 0 0.5rem;
}

.novel-share-whatsapp {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	min-height: 2.75rem;
	padding: 0.7rem 1.4rem;
	border-radius: 999px;
	background: #25d366 !important;
	color: #fff !important;
	font-family: var(--bn-font-ui);
	font-size: 0.95rem;
	font-weight: 700;
	text-decoration: none !important;
	box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
	transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.novel-share-whatsapp:hover {
	color: #fff !important;
	transform: translateY(-2px) scale(1.02);
	filter: brightness(1.05);
	box-shadow: 0 10px 24px rgba(37, 211, 102, 0.42);
}

.novel-share-whatsapp__icon {
	flex-shrink: 0;
}

/* =============================================================================
   Chapter pagination pills
   ============================================================================= */
.chapter-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
	justify-content: center;
	margin: 1.75rem 0 1rem;
}

.chapter-pagination a {
	text-decoration: none;
}

.chapter-page-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.25rem;
	padding: 0.4rem 0.95rem;
	border-radius: 999px;
	background: var(--bn-accent-soft);
	color: var(--bn-accent-deep);
	font-family: var(--bn-font-ui);
	font-size: 0.875rem;
	font-weight: 600;
	box-shadow: var(--bn-shadow);
	transition: transform 0.15s ease, background-color 0.2s ease;
}

.chapter-pagination a:hover .chapter-page-pill {
	transform: translateY(-1px);
	background: #c7d2fe;
}

.chapter-page-pill.is-current {
	background: var(--bn-gradient-cta);
	color: #fff;
	cursor: default;
}

/* =============================================================================
   Mobile floating reading bar
   ============================================================================= */
.mobile-reading-bar {
	display: none;
}

@media screen and (max-width: 768px) {
	.mobile-reading-bar {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 99990;
		display: flex;
		align-items: center;
		justify-content: space-around;
		gap: 0.25rem;
		min-height: 3.5rem;
		padding: 0.45rem 0.5rem calc(0.45rem + env(safe-area-inset-bottom, 0px));
		background: #0f172a !important;
		border-top: 1px solid #334155 !important;
		backdrop-filter: blur(12px);
		-webkit-backdrop-filter: blur(12px);
		box-shadow: 0 -8px 28px rgba(15, 23, 42, 0.45);
		color: #f8fafc;
	}

	.mrb-btn {
		flex: 1 1 0;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-height: 2.5rem;
		margin: 0;
		padding: 0.35rem 0.4rem;
		border: 1px solid #475569 !important;
		border-radius: 10px;
		background: #1e293b !important;
		color: #f8fafc !important;
		font-family: var(--bn-font-ui);
		font-size: 0.85rem;
		font-weight: 700;
		text-decoration: none;
		cursor: pointer;
		-webkit-tap-highlight-color: transparent;
	}

	.mrb-btn:hover,
	.mrb-btn:focus {
		background: var(--bn-accent) !important;
		border-color: var(--bn-accent) !important;
		color: #ffffff !important;
	}

	.mrb-btn.is-disabled {
		opacity: 0.4;
		pointer-events: none;
		color: #94a3b8 !important;
	}

	.mrb-theme-toggle .mrb-theme-icon--sun { display: none; }
	body.dark-theme .mrb-theme-toggle .mrb-theme-icon--moon { display: none; }
	body.dark-theme .mrb-theme-toggle .mrb-theme-icon--sun { display: inline; }
	body.reader-dark .mrb-theme-toggle .mrb-theme-icon--moon { display: none; }
	body.reader-dark .mrb-theme-toggle .mrb-theme-icon--sun { display: inline; }
}

@media screen and (min-width: 769px) {
	.mobile-reading-bar { display: none !important; }
}

/* Soft night mode (kept for reading bar) */
html.dark-theme,
body.dark-theme {
	--bn-bg: #0f172a;
	--bn-surface: #1e293b;
	--bn-text: #e2e8f0;
	--bn-muted: #94a3b8;
	--bn-border: #334155;
	--bn-border-strong: #475569;
	--bn-accent: #a06838;
	--bn-accent-deep: #784820;
	--bn-accent-soft: rgba(160, 104, 56, 0.25);
	--bn-gradient-cta: linear-gradient(135deg, #a06838, #784820);
	--gp-reader-surface: rgba(15, 23, 42, 0.92);
	background-color: #0f172a;
	color: #e2e8f0;
}

body.dark-theme .site-header {
	background: rgba(15, 23, 42, 0.88) !important;
}

body.dark-theme .novel-card,
body.dark-theme .sidebar .widget,
body.dark-theme.single-post .inside-article,
body.dark-theme.page .inside-article {
	background: var(--bn-surface);
}

body.dark-theme .mobile-reading-bar {
	background: #0f172a !important;
	border-top-color: #334155 !important;
}

body,
body.dark-theme,
.site,
.site-content,
.entry-content,
.inside-article {
	transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

/* =============================================================================
   Hero trending slider — 2-col cover + copy (no crop / no overlap)
   ============================================================================= */
.novel-hero-slider {
	position: relative;
	overflow: hidden;
	margin: 0 0 1.15rem;
	border-radius: var(--bn-radius-lg);
	background: var(--bn-surface);
	border: 1px solid var(--bn-border);
	box-shadow: var(--bn-shadow);
}

.novel-hero-track {
	position: relative;
	min-height: 0;
}

.novel-hero-slide {
	position: absolute;
	inset: 0;
	display: grid;
	grid-template-columns: minmax(120px, 160px) 1fr;
	gap: 1.25rem;
	align-items: center;
	padding: 1.15rem 1.15rem 2.4rem;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.5s ease, visibility 0.5s ease;
	background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 55%, #ffffff 100%);
}

.novel-hero-slide.is-active {
	position: relative;
	opacity: 1;
	visibility: visible;
}

.novel-hero-media {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-height: 240px;
	aspect-ratio: 2 / 3;
	overflow: hidden;
	border-radius: 12px;
	background: #e2e8f0;
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}

.novel-hero-img {
	display: block;
	width: 100%;
	height: 100%;
	max-height: 240px;
	object-fit: contain;
	object-position: center center;
	border-radius: 12px;
}

.novel-hero-overlay {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	gap: 0.55rem;
	min-width: 0;
	padding: 0.15rem 0;
}

.novel-hero-eyebrow {
	margin: 0;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--bn-accent);
}

.novel-hero-cat {
	display: inline-flex;
	align-items: center;
	padding: 0.28rem 0.7rem;
	border-radius: 999px;
	background: var(--bn-accent-soft);
	color: var(--bn-accent-deep);
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1.2;
}

.novel-hero-title {
	margin: 0;
	font-size: clamp(1.2rem, 4vw, 1.75rem);
	font-weight: 700;
	line-height: 1.55;
}

.novel-hero-title a {
	color: var(--bn-text);
	text-decoration: none;
}

.novel-hero-desc {
	margin: 0;
	max-width: 42rem;
	font-size: 0.95rem;
	line-height: 1.85;
	color: var(--bn-muted);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.novel-hero-cta {
	align-self: flex-start;
	margin-top: 0.25rem;
	padding: 12px 22px !important;
}

.novel-hero-cta__urdu {
	font-family: var(--bn-font-urdu);
	font-size: 1.05rem;
	font-weight: 700;
}

.novel-hero-cta__en {
	font-size: 0.75rem;
	opacity: 0.9;
}

.novel-hero-nav {
	position: absolute;
	top: 50%;
	z-index: 3;
	transform: translateY(-50%);
	width: 2.35rem;
	height: 2.35rem;
	border: 1px solid var(--bn-border-strong);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	color: var(--bn-text);
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
	box-shadow: var(--bn-shadow);
}

.novel-hero-nav--prev { left: 0.55rem; }
.novel-hero-nav--next { right: 0.55rem; }

.novel-hero-dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0.55rem;
	z-index: 3;
	display: flex;
	justify-content: center;
	gap: 0.4rem;
}

.novel-hero-dot {
	width: 0.5rem;
	height: 0.5rem;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: #c7d2fe;
	cursor: pointer;
	transition: width 0.2s ease, background-color 0.2s ease;
}

.novel-hero-dot.is-active {
	width: 1.2rem;
	background: var(--bn-accent);
}

@media screen and (max-width: 768px) {
	.novel-hero-slider {
		margin-bottom: 0.85rem;
		border-radius: 12px;
	}

	.novel-hero-slide {
		grid-template-columns: 110px 1fr;
		justify-items: stretch;
		align-items: center;
		gap: 0.85rem;
		padding: 0.85rem 0.85rem 2rem;
		text-align: left;
	}

	.novel-hero-media {
		width: 100%;
		max-width: 110px;
		max-height: 165px;
		margin: 0;
		aspect-ratio: 2 / 3;
	}

	.novel-hero-img {
		max-height: 165px;
		object-fit: contain !important;
		object-position: center center !important;
	}

	.novel-hero-overlay {
		align-items: flex-start;
		width: 100%;
		gap: 0.35rem;
	}

	.novel-hero-title {
		font-size: 1.05rem;
		line-height: 1.4;
	}

	.novel-hero-desc {
		text-align: left;
		-webkit-line-clamp: 2;
		font-size: 0.85rem;
	}

	.novel-hero-cta {
		align-self: flex-start;
		padding: 8px 14px !important;
		font-size: 0.85rem;
	}

	.novel-hero-nav {
		width: 2rem;
		height: 2rem;
		font-size: 1.1rem;
	}
}

@media screen and (min-width: 769px) {
	.novel-hero-slide {
		grid-template-columns: 240px 1fr;
		gap: 2rem;
		padding: 1.5rem 1.75rem 2.1rem;
	}

	.novel-hero-media {
		max-height: 320px;
	}

	.novel-hero-img {
		max-height: 320px;
	}
}

/* =============================================================================
   Category pills
   ============================================================================= */
.category-pills-bar {
	margin: 0 0 1.25rem;
}

.category-pills-track {
	display: flex;
	gap: 0.55rem;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 0.15rem 0.1rem 0.55rem;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.category-pills-track::-webkit-scrollbar {
	display: none;
}

.category-pill {
	flex: 0 0 auto;
	scroll-snap-align: start;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.2rem;
	padding: 0.4rem 1rem;
	border-radius: 999px;
	border: 1px solid var(--bn-border-strong);
	background: var(--bn-surface);
	color: var(--bn-text) !important;
	font-size: 0.85rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	box-shadow: var(--bn-shadow);
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.category-pill:hover {
	transform: translateY(-1px);
	background: var(--bn-accent-soft);
	border-color: #c7d2fe;
	color: var(--bn-accent-deep) !important;
}

.category-pill.is-active {
	background: var(--bn-gradient-cta);
	border-color: transparent;
	color: #fff !important;
}

/* =============================================================================
   Novels grid + cards — 2:3 covers, no awkward crop stretch
   ============================================================================= */
.novels-grid-section {
	margin: 0 0 1.5rem;
}

.novels-grid-heading {
	margin: 0 0 0.9rem;
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--bn-text);
}

.novels-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 1.5rem;
}

@media screen and (min-width: 769px) {
	.novels-grid {
		grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
		gap: 1.5rem;
	}
}

body.novels-grid-layout.separate-containers .novels-grid > article {
	margin-bottom: 0;
	box-shadow: none;
	background: transparent;
}

.novel-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	margin: 0;
	border-radius: var(--bn-radius-lg);
	background: var(--bn-surface);
	border: 1px solid var(--bn-border);
	overflow: hidden;
	box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
	transition: all 0.3s ease;
}

.novel-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 32px -8px rgba(99, 102, 241, 0.18);
}

.novel-card__cover-link {
	display: block;
	text-decoration: none;
}

.novel-card__cover {
	position: relative;
	aspect-ratio: 2 / 3;
	width: 100%;
	overflow: hidden;
	background-color: var(--surface-card, rgba(0, 0, 0, 0.04));
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.novel-card__cover-img {
	display: block;
	width: 100%;
	height: 100% !important;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	object-position: center;
	border-radius: 0;
	transform: none;
	transition: none;
	position: relative;
	z-index: 2;
}

.novel-card:hover .novel-card__cover-img {
	transform: none;
}

.novel-card__cat-badge {
	position: absolute;
	top: 0.55rem;
	right: 0.55rem;
	z-index: 2;
	max-width: calc(100% - 1.1rem);
	padding: 0.28rem 0.55rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	color: var(--bn-accent-deep);
	font-size: 0.65rem;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	border: 1px solid var(--bn-accent-soft);
	backdrop-filter: blur(6px);
}

.novel-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	flex: 1 1 auto;
	padding: 0.75rem 0.8rem 0.9rem;
	overflow: visible;
	background: var(--bn-surface);
}

.novel-card__title {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.55;
	color: #0f172a !important;
	overflow: visible;
	word-wrap: break-word;
	overflow-wrap: anywhere;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	max-height: none;
}

.novel-card__title a {
	color: #0f172a !important;
	text-decoration: none !important;
	display: inline;
}

.novel-card__title a:hover {
	color: #4f46e5 !important;
}

.novel-card__title.urdu-text,
.novel-card__title.urdu-text a {
	color: #0f172a !important;
	line-height: 1.85;
}

@media screen and (max-width: 768px) {
	.novel-card__body {
		padding: 0.65rem 0.6rem 0.75rem;
	}

	.novel-card__title {
		font-size: 0.95rem !important;
		line-height: 1.65 !important;
		-webkit-line-clamp: 3;
		color: #0f172a !important;
	}

	.novel-card__title a {
		color: #0f172a !important;
		font-size: inherit !important;
	}
}

.novel-card__author {
	display: inline-block;
	align-self: flex-start;
	padding: 0.22rem 0.55rem;
	border-radius: 999px;
	background: var(--bn-accent-soft);
	color: var(--bn-accent-deep);
	font-size: 0.72rem;
	font-weight: 600;
}

.novel-card__cta {
	margin-top: auto;
	padding: 0.55rem 0.75rem !important;
	font-size: 0.78rem !important;
	border-radius: 10px !important;
}

body.novels-grid-layout .site-main {
	padding-top: 0.75rem;
}

/* =============================================================================
   Footer — dark slate / pastel indigo (kill peach/orange customizer colors)
   ============================================================================= */
footer,
.site-footer,
.site-footer.site-info,
.footer-widgets,
.footer-widgets-container,
.inside-footer-widgets,
.inside-site-info,
.footer-bar,
.copyright-bar,
.site-info {
	background: #0f172a !important;
	background-color: #0f172a !important;
	background-image: none !important;
	color: #e2e8f0 !important;
	border-color: #1e293b !important;
}

.site-footer {
	border-top: 1px solid #312e81 !important;
	box-shadow: none !important;
}

.footer-widgets-container,
.inside-footer-widgets {
	background: #1e1b4b !important;
	background-color: #1e1b4b !important;
	background-image: none !important;
}

.site-footer .footer-widgets .widget,
.footer-widgets .widget {
	background: transparent !important;
	border-color: #312e81 !important;
	box-shadow: none !important;
	color: #e2e8f0 !important;
}

.site-footer .widget-title,
.footer-widgets .widget-title {
	background: transparent !important;
	background-image: none !important;
	border-color: #312e81 !important;
	color: #e2e8f0 !important;
}

.site-info,
.copyright-bar,
.footer-bar {
	font-family: var(--bn-font-ui);
	font-size: 0.85rem;
	color: #e2e8f0 !important;
}

.site-footer a,
.site-info a,
.footer-bar a,
.copyright-bar a,
.footer-widgets a,
.inside-site-info a {
	color: #a5b4fc !important;
	text-decoration: underline;
	text-underline-offset: 0.12em;
}

.site-footer a:hover,
.site-info a:hover,
.footer-bar a:hover,
.copyright-bar a:hover,
.footer-widgets a:hover,
.inside-site-info a:hover {
	color: #c7d2fe !important;
}

/* Neutralize inline / customizer peach–orange footer fills */
.site-footer[style],
.site-info[style],
.footer-bar[style],
.footer-widgets[style],
.footer-widgets-container[style],
.inside-site-info[style],
.copyright-bar[style] {
	background: #0f172a !important;
	background-color: #0f172a !important;
	background-image: none !important;
	color: #e2e8f0 !important;
}

/* =============================================================================
   Comments — high-contrast glassmorphic panel on single posts
   ============================================================================= */
#comments,
.comment-respond,
.comments-area {
	background-color: #1e293b !important;
	padding: 2rem;
	border-radius: 12px;
	border: 1px solid #334155;
	margin-top: 2rem;
	color: #f8fafc;
	box-sizing: border-box;
}

#comments .comment-respond,
.comments-area .comment-respond {
	margin-top: 1.25rem;
	padding: 0;
	border: 0;
	background: transparent !important;
}

#reply-title,
.comment-reply-title,
.comments-area .comment-reply-title,
#comments .logged-in-as,
.comment-respond .logged-in-as,
.comments-area .logged-in-as,
#comments .logged-in-as a,
.comment-respond .logged-in-as a,
.comments-area .logged-in-as a,
#comments label,
.comment-respond label,
.comments-area label {
	color: #f8fafc !important;
}

#comments .comment-form-comment textarea,
#comments textarea,
.comment-respond textarea,
.comments-area textarea,
#comment {
	background-color: #0f172a !important;
	color: #ffffff !important;
	border: 1px solid #475569 !important;
	border-radius: 8px;
	width: 100%;
	max-width: 100%;
	padding: 0.85rem 1rem;
	box-sizing: border-box;
}

#comments input[type="text"],
#comments input[type="email"],
#comments input[type="url"],
.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comments-area input[type="text"],
.comments-area input[type="email"],
.comments-area input[type="url"] {
	background-color: #0f172a !important;
	color: #ffffff !important;
	border: 1px solid #475569 !important;
	border-radius: 8px;
	padding: 0.65rem 0.85rem;
}

#comments #submit,
#comments .submit,
.comment-respond #submit,
.comment-respond .submit,
.comments-area #submit,
.comments-area .submit,
#respond #submit,
#respond input[type="submit"] {
	background: var(--bn-gradient-cta) !important;
	background-image: var(--bn-gradient-cta) !important;
	color: #ffffff !important;
	border: none !important;
	border-radius: 20px !important;
	padding: 10px 24px !important;
	font-weight: bold !important;
	cursor: pointer;
	box-shadow: 0 6px 18px rgba(160, 104, 56, 0.35);
	transition: transform 0.18s ease, filter 0.2s ease;
}

#comments #submit:hover,
#comments .submit:hover,
.comment-respond #submit:hover,
.comment-respond .submit:hover,
.comments-area #submit:hover,
#respond #submit:hover,
#respond input[type="submit"]:hover {
	color: #ffffff !important;
	filter: brightness(1.06);
	transform: translateY(-1px);
}

/* =============================================================================
   Novel Portal Homepage — glassmorphic front-page.php
   ============================================================================= */
body.novel-portal-home .site-content {
	padding-top: 0.75rem;
	padding-bottom: 2rem;
}

.novel-portal-shell {
	width: 100%;
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 1rem 2rem;
	box-sizing: border-box;
}

/* Hero featured glass */
.hero-featured-glass {
	position: relative;
	isolation: isolate;
	margin: 0 0 1.35rem;
	padding: 1.25rem;
	border-radius: 20px;
	border: 1px solid rgba(255, 255, 255, 0.55);
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(238, 242, 255, 0.55));
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	box-shadow:
		0 20px 50px -24px rgba(79, 70, 229, 0.45),
		inset 0 1px 0 rgba(255, 255, 255, 0.65);
	overflow: hidden;
}

.hero-featured-glass__glow {
	position: absolute;
	inset: -40% auto auto -10%;
	width: 55%;
	height: 120%;
	background: radial-gradient(circle, rgba(99, 102, 241, 0.28), transparent 70%);
	pointer-events: none;
	z-index: 0;
	animation: portalGlow 7s ease-in-out infinite alternate;
}

@keyframes portalGlow {
	from { transform: translate3d(0, 0, 0) scale(1); opacity: 0.75; }
	to { transform: translate3d(8%, 4%, 0) scale(1.08); opacity: 1; }
}

.hero-featured-glass__inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(120px, 180px) 1fr;
	gap: 1.25rem;
	align-items: center;
}

.hero-featured-media {
	display: flex;
	align-items: center;
	justify-content: center;
	max-height: 480px;
	border-radius: 14px;
	overflow: hidden;
	background: #e2e8f0;
	box-shadow: 0 14px 34px rgba(15, 23, 42, 0.18);
}

.hero-featured-cover {
	display: block;
	width: 100%;
	height: auto;
	max-height: 480px;
	object-fit: contain;
	object-position: center center;
}

.hero-featured-copy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.7rem;
	min-width: 0;
}

.hero-featured-tag {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.35rem 0.85rem;
	border-radius: 999px;
	background: rgba(99, 102, 241, 0.12);
	border: 1px solid rgba(99, 102, 241, 0.35);
	color: #4f46e5;
	font-family: var(--bn-font-ui);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	box-shadow: 0 0 18px rgba(99, 102, 241, 0.35);
	animation: tagPulse 2.8s ease-in-out infinite;
}

.hero-featured-tag::before {
	content: '';
	width: 0.45rem;
	height: 0.45rem;
	border-radius: 50%;
	background: var(--bn-accent);
	box-shadow: 0 0 10px rgba(160, 104, 56, 0.7);
}

@keyframes tagPulse {
	0%, 100% { box-shadow: 0 0 12px rgba(160, 104, 56, 0.25); }
	50% { box-shadow: 0 0 22px rgba(160, 104, 56, 0.55); }
}

.hero-featured-title {
	margin: 0;
	font-size: clamp(1.35rem, 3.5vw, 2rem);
	font-weight: 700;
	line-height: 1.45;
	color: #0f172a;
}

.hero-featured-title a {
	color: inherit !important;
	text-decoration: none !important;
}

.hero-featured-excerpt {
	margin: 0;
	max-width: 40rem;
	color: var(--bn-muted, #1e293b) !important;
	-webkit-text-fill-color: var(--bn-muted, #1e293b) !important;
	font-size: 0.98rem;
	line-height: 1.85;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	opacity: 1 !important;
}

.hero-featured-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem;
	margin-top: 0.25rem;
}

.hero-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.7rem;
	padding: 0.65rem 1.25rem;
	border-radius: 999px;
	font-family: var(--bn-font-ui);
	font-size: 0.9rem;
	font-weight: 700;
	text-decoration: none !important;
	transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.hero-action--read {
	background: var(--bn-gradient-cta) !important;
	color: #fff !important;
	border: 0;
	box-shadow: 0 8px 22px rgba(160, 104, 56, 0.35);
}

.hero-action--download {
	background: rgba(255, 255, 255, 0.55) !important;
	color: var(--bn-text) !important;
	border: 1.5px solid var(--bn-accent);
	backdrop-filter: blur(8px);
}

.hero-action:hover {
	transform: translateY(-2px) scale(1.02);
	filter: brightness(1.05);
	color: inherit !important;
}

.hero-action--read:hover { color: #fff !important; }

/* Genre chips */
.genre-chips-wrapper {
	margin: 0 0 1.35rem;
}

.genre-chips-track {
	display: flex;
	gap: 0.55rem;
	overflow-x: auto;
	padding: 0.2rem 0.1rem 0.55rem;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.genre-chips-track::-webkit-scrollbar {
	display: none;
}

.genre-chip {
	flex: 0 0 auto;
	scroll-snap-align: start;
	display: inline-flex;
	align-items: center;
	min-height: 2.2rem;
	padding: 0.4rem 1rem;
	border-radius: 999px;
	border: 1px solid rgba(226, 232, 240, 0.9);
	background: rgba(255, 255, 255, 0.72);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	color: #1e293b !important;
	font-family: var(--bn-font-ui);
	font-size: 0.85rem;
	font-weight: 600;
	text-decoration: none !important;
	box-shadow: var(--bn-shadow);
	white-space: nowrap;
	transition: transform 0.15s ease, background-color 0.2s ease, color 0.2s ease;
}

.genre-chip:hover {
	transform: translateY(-1px);
	background: var(--bn-accent-soft);
	color: var(--bn-accent-deep) !important;
}

.genre-chip.is-active {
	background: var(--bn-gradient-cta);
	border-color: transparent;
	color: #fff !important;
}

/* Main home layout */
.home-main-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 1.5rem;
	align-items: start;
}

.home-section-header {
	margin: 0 0 1rem;
}

.home-section-title,
.home-side-title {
	margin: 0 0 0.25rem;
	font-size: 1.35rem;
	font-weight: 700;
	color: #0f172a;
}

.home-section-sub {
	margin: 0;
	color: #64748b;
	font-size: 0.88rem;
}

.home-poster-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.15rem;
}

@media screen and (min-width: 900px) {
	.home-poster-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.home-category-sections {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	margin: 0 0 1.5rem;
	width: 100%;
}

.home-category-section {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	padding: 1.15rem 1.25rem 1.35rem !important;
	overflow: visible !important;
}

.home-category-section .home-section-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.home-category-section .home-section-link {
	font-family: var(--bn-font-ui);
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--bn-accent, #4f46e5) !important;
	text-decoration: none !important;
	white-space: nowrap;
}

.home-category-section .home-poster-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media screen and (min-width: 700px) {
	.home-category-section .home-poster-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media screen and (min-width: 1100px) {
	.home-category-section .home-poster-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.poster-card {
	display: flex;
	flex-direction: column;
	margin: 0;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.78);
	border: 1px solid rgba(241, 245, 249, 0.95);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	overflow: hidden;
	box-shadow: 0 10px 28px -16px rgba(15, 23, 42, 0.25);
	transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.poster-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 36px -16px rgba(79, 70, 229, 0.35);
}

.poster-card__cover-link {
	display: block;
	text-decoration: none;
}

.poster-card__cover {
	position: relative;
	aspect-ratio: 2 / 3;
	background-color: var(--surface-card, rgba(0, 0, 0, 0.04));
	overflow: hidden;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.poster-card__img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	object-position: center;
	transform: none;
	transition: none;
	position: relative;
	z-index: 2;
}

.poster-card:hover .poster-card__img {
	transform: none;
}

.poster-card__status {
	position: absolute;
	top: 0.6rem;
	left: 0.6rem;
	z-index: 2;
	padding: 0.28rem 0.6rem;
	border-radius: 999px;
	background: var(--bn-gradient-cta);
	color: #fff;
	font-family: var(--bn-font-ui);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	box-shadow: 0 6px 16px rgba(160, 104, 56, 0.4);
}

.poster-card__status--soft {
	background: rgba(255, 255, 255, 0.92);
	color: var(--bn-accent-deep);
	box-shadow: var(--bn-shadow);
}

.poster-card__body {
	padding: 0.75rem 0.8rem 0.9rem;
}

.poster-card__title {
	margin: 0 0 0.35rem;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.55;
	color: #0f172a !important;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.poster-card__title a {
	color: #0f172a !important;
	text-decoration: none !important;
}

.poster-card__meta {
	font-size: 0.75rem;
	color: #64748b;
}

/* Sidebar panels */
.home-secondary {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.home-side-panel {
	padding: 1rem;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.76);
	border: 1px solid rgba(226, 232, 240, 0.95);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	box-shadow: var(--bn-shadow);
}

.home-side-panel--ads {
	padding: 0.65rem;
}

.home-side-panel--ads .ad-container {
	margin: 0;
}

.most-read-list {
	list-style: none;
	margin: 0.75rem 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.most-read-item {
	display: grid;
	grid-template-columns: 1.5rem 48px 1fr;
	gap: 0.65rem;
	align-items: center;
}

.most-read-item__rank {
	font-family: var(--bn-font-ui);
	font-size: 0.85rem;
	font-weight: 800;
	color: #6366f1;
	text-align: center;
}

.most-read-item__thumb {
	display: block;
	width: 52px;
	height: 70px;
	aspect-ratio: 2 / 3;
	border-radius: 6px;
	overflow: hidden;
	flex-shrink: 0;
	background: var(--surface-card, rgba(0, 0, 0, 0.04));
}

.most-read-item__thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
}

.most-read-item__title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	color: #0f172a !important;
	font-size: 0.9rem;
	font-weight: 700;
	line-height: 1.45;
	text-decoration: none !important;
}

.most-read-item__meta {
	display: block;
	margin-top: 0.15rem;
	font-size: 0.72rem;
	color: #64748b;
}

.home-empty {
	margin: 0;
	color: #64748b;
}

@media screen and (max-width: 900px) {
	.home-main-layout {
		grid-template-columns: 1fr;
	}

	.home-secondary {
		order: 2;
	}
}

@media screen and (max-width: 768px) {
	.novel-portal-shell {
		padding: 0 0.75rem 1.5rem;
	}

	.hero-featured-glass {
		padding: 1rem;
		border-radius: 16px;
	}

	.hero-featured-glass__inner {
		grid-template-columns: 110px 1fr;
		gap: 0.9rem;
	}

	.hero-featured-actions {
		width: 100%;
	}

	.hero-action {
		flex: 1 1 auto;
		padding: 0.6rem 0.9rem;
		font-size: 0.82rem;
	}

	.home-poster-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.85rem;
	}

	.poster-card__title {
		font-size: 0.9rem;
	}
}

@media screen and (min-width: 769px) {
	.hero-featured-glass__inner {
		grid-template-columns: 220px 1fr;
		gap: 1.75rem;
		padding: 0.35rem;
	}

	.hero-featured-glass {
		padding: 1.5rem;
	}
}

/* =============================================================================
   High-end portal overrides — dark glass hero, chips, 2:3 posters
   ============================================================================= */

/* Glassmorphic Hero Banner */
.hero-featured-glass {
	background: rgba(30, 41, 59, 0.7) !important;
	backdrop-filter: blur(12px) !important;
	-webkit-backdrop-filter: blur(12px) !important;
	border: 1px solid rgba(255, 255, 255, 0.1) !important;
	border-radius: 16px !important;
	padding: 24px !important;
	margin-bottom: 30px !important;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4) !important;
}

.hero-featured-glass .hero-featured-title,
.hero-featured-glass .hero-featured-title a {
	color: #f8fafc !important;
}

.hero-featured-glass .hero-featured-excerpt {
	color: var(--bn-muted, #1e293b) !important;
	-webkit-text-fill-color: var(--bn-muted, #1e293b) !important;
}

.hero-featured-glass .hero-featured-tag {
	background: rgba(99, 102, 241, 0.22) !important;
	border-color: rgba(129, 140, 248, 0.55) !important;
	color: #c7d2fe !important;
}

/* Category Chips Bar */
.genre-chips-wrapper {
	display: flex !important;
	gap: 10px !important;
	overflow-x: auto !important;
	padding-bottom: 12px !important;
	scrollbar-width: none !important;
}

.genre-chips-wrapper .genre-chips-track {
	display: flex;
	gap: 10px;
	width: 100%;
}

.genre-chip {
	background: var(--bn-surface) !important;
	color: var(--bn-text) !important;
	border: 1px solid var(--bn-border-strong) !important;
	padding: 8px 18px !important;
	border-radius: 50px !important;
	white-space: nowrap !important;
	font-size: 0.85rem !important;
	font-weight: 600 !important;
	transition: all 0.3s ease !important;
	text-decoration: none !important;
}

.genre-chip:hover,
.genre-chip.active,
.genre-chip.is-active {
	background: var(--bn-gradient-cta) !important;
	border-color: var(--bn-accent) !important;
	color: #ffffff !important;
	box-shadow: 0 4px 14px rgba(160, 104, 56, 0.4) !important;
}

/* 2:3 Poster Ratio Cards */
.novel-poster-card,
.poster-card {
	background: var(--bn-surface) !important;
	border-radius: 12px !important;
	overflow: hidden !important;
	border: 1px solid var(--bn-border) !important;
	transition: transform 0.3s ease !important;
	box-shadow: none;
}

.novel-poster-card:hover,
.poster-card:hover {
	transform: translateY(-4px) !important;
	border-color: var(--bn-accent) !important;
}

.novel-poster-card img,
.poster-card img,
.poster-card__img {
	width: 100% !important;
	height: 100% !important;
	object-fit: contain !important;
	object-position: center !important;
	transform: none !important;
}

.poster-card__body {
	background: var(--bn-surface) !important;
}

.poster-card__title,
.poster-card__title a {
	color: var(--bn-text) !important;
}

.poster-card__meta {
	color: var(--bn-muted) !important;
}

/* =============================================================================
   Aesthetic color themes — Coffee Brown / Emerald Sage / Indigo Night
   ============================================================================= */

/* 1. Coffee Brown Theme Palette */
body.theme-coffee {
	background-color: #1a1614 !important;
	color: #f8f1e6 !important;
	--bn-bg: #1a1614;
	--bn-surface: #2b211b;
	--bn-text: #f8f1e6;
	--bn-muted: #e8d5b8;
	--bn-border: rgba(184, 138, 93, 0.25);
	--bn-border-strong: rgba(184, 138, 93, 0.4);
	--bn-accent: #a06838;
	--bn-accent-deep: #784820;
	--bn-accent-soft: rgba(160, 104, 56, 0.25);
	--bn-gradient-cta: linear-gradient(135deg, #a06838, #784820);
}

body.theme-coffee .hero-featured-glass,
body.theme-coffee .novel-poster-card,
body.theme-coffee .poster-card,
body.theme-coffee .poster-card__body,
body.theme-coffee .site-header,
body.theme-coffee .home-side-panel,
body.theme-coffee .main-navigation.toggled .main-nav,
body.theme-coffee .main-navigation.toggled .main-nav > ul,
body.theme-coffee .main-navigation.toggled div.main-nav > ul {
	background: rgba(43, 33, 27, 0.85) !important;
	border-color: rgba(184, 138, 93, 0.25) !important;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6) !important;
}

body.theme-coffee .genre-chip {
	background: #2b211b !important;
	border-color: rgba(184, 138, 93, 0.35) !important;
	color: #f3ebd9 !important;
}

body.theme-coffee .genre-chip:hover,
body.theme-coffee .genre-chip.active,
body.theme-coffee .genre-chip.is-active,
body.theme-coffee .main-navigation .menu-toggle {
	background: linear-gradient(135deg, #a06838, #784820) !important;
	border-color: #b88a5d !important;
	color: #ffffff !important;
}

body.theme-coffee a,
body.theme-coffee .wp-block-post-title,
body.theme-coffee .hero-featured-title,
body.theme-coffee .hero-featured-title a,
body.theme-coffee .poster-card__title,
body.theme-coffee .poster-card__title a,
body.theme-coffee .home-section-title,
body.theme-coffee .home-side-title {
	color: #e6ccb2 !important;
}

body.theme-coffee .hero-featured-excerpt,
body.theme-coffee .poster-card__meta,
body.theme-coffee .home-section-sub {
	color: #e8d5b8 !important;
}

body.theme-coffee .hero-action--read,
body.theme-coffee .hero-action--download,
body.theme-coffee .novel-cta-btn--download,
body.theme-coffee .novel-card__cta,
body.theme-coffee .novel-hero-cta,
body.theme-coffee .button,
body.theme-coffee .wp-block-button__link,
body.theme-coffee .entry-content .download-button {
	background: linear-gradient(135deg, #a06838, #784820) !important;
	color: #ffffff !important;
	border-color: #a06838 !important;
}

body.theme-coffee .novel-cta-btn--read {
	background: transparent !important;
	color: #f3ebd9 !important;
	border: 2px solid #a06838 !important;
}

body.theme-coffee .novel-cta-btn--read:hover {
	background: #a06838 !important;
	color: #ffffff !important;
}

body.theme-coffee .hero-action--download {
	background: rgba(43, 33, 27, 0.85) !important;
	color: #f3ebd9 !important;
}

body.theme-coffee .poster-card__status--soft,
body.theme-coffee .card-category-badge {
	background: rgba(43, 33, 27, 0.94) !important;
	color: #f3ebd9 !important;
	border-color: rgba(184, 138, 93, 0.45) !important;
}

body.theme-coffee .poster-card__meta,
body.theme-coffee .novel-card__meta {
	color: #e8d5b8 !important;
}

body.theme-coffee .site-footer,
body.theme-coffee .site-info,
body.theme-coffee .footer-widgets-container {
	background: #1a1614 !important;
	color: #f3ebd9 !important;
}

/* 2. Emerald Sage Theme Palette */
body.theme-emerald {
	background-color: #0b1d16 !important;
	color: #e2f1eb !important;
	--bn-bg: #0b1d16;
	--bn-surface: #123026;
	--bn-text: #e2f1eb;
	--bn-muted: #a7d4c2;
	--bn-border: rgba(16, 185, 129, 0.25);
	--bn-accent: #10b981;
	--bn-accent-deep: #047857;
	--bn-accent-soft: rgba(16, 185, 129, 0.22);
}

body.theme-emerald .hero-featured-glass,
body.theme-emerald .novel-poster-card,
body.theme-emerald .poster-card,
body.theme-emerald .poster-card__body,
body.theme-emerald .site-header,
body.theme-emerald .home-side-panel,
body.theme-emerald .main-navigation.toggled .main-nav,
body.theme-emerald .main-navigation.toggled .main-nav > ul {
	background: rgba(18, 48, 38, 0.85) !important;
	border-color: rgba(16, 185, 129, 0.25) !important;
}

body.theme-emerald .genre-chip {
	background: #123026 !important;
	border-color: rgba(16, 185, 129, 0.35) !important;
	color: #e2f1eb !important;
}

body.theme-emerald .genre-chip:hover,
body.theme-emerald .genre-chip.active,
body.theme-emerald .genre-chip.is-active,
body.theme-emerald .main-navigation .menu-toggle {
	background: linear-gradient(135deg, #10b981, #047857) !important;
	border-color: #10b981 !important;
	color: #ffffff !important;
}

body.theme-emerald a,
body.theme-emerald .hero-featured-title,
body.theme-emerald .hero-featured-title a,
body.theme-emerald .poster-card__title,
body.theme-emerald .poster-card__title a,
body.theme-emerald .home-section-title,
body.theme-emerald .home-side-title {
	color: #a7f3d0 !important;
}

body.theme-emerald .hero-action--read,
body.theme-emerald .novel-cta-btn--download {
	background: linear-gradient(135deg, #10b981, #047857) !important;
}

body.theme-emerald .site-footer,
body.theme-emerald .site-info,
body.theme-emerald .footer-widgets-container {
	background: #0b1d16 !important;
	color: #e2f1eb !important;
}

/* 3. Indigo Night Theme Palette (default dark indigo) */
body.theme-indigo {
	background-color: #0f172a !important;
	color: #e2e8f0 !important;
	--bn-bg: #0f172a;
	--bn-surface: #1e293b;
	--bn-text: #e2e8f0;
	--bn-muted: #94a3b8;
	--bn-border: #334155;
	--bn-accent: #6366f1;
	--bn-accent-deep: #4f46e5;
	--bn-accent-soft: rgba(99, 102, 241, 0.25);
}

body.theme-indigo .hero-featured-glass,
body.theme-indigo .novel-poster-card,
body.theme-indigo .poster-card,
body.theme-indigo .poster-card__body,
body.theme-indigo .site-header,
body.theme-indigo .home-side-panel {
	background: rgba(30, 41, 59, 0.85) !important;
	border-color: rgba(99, 102, 241, 0.28) !important;
}

body.theme-indigo .genre-chip:hover,
body.theme-indigo .genre-chip.active,
body.theme-indigo .genre-chip.is-active,
body.theme-indigo .main-navigation .menu-toggle {
	background: linear-gradient(135deg, #6366f1, #4f46e5) !important;
	border-color: #6366f1 !important;
	color: #ffffff !important;
}

body.theme-indigo .hero-featured-title,
body.theme-indigo .hero-featured-title a,
body.theme-indigo .poster-card__title,
body.theme-indigo .poster-card__title a {
	color: #f8fafc !important;
}

/* Floating UI clearance — keep pagination / cards above fixed overlays */
body {
	padding-bottom: calc(var(--bn-floating-clearance) + env(safe-area-inset-bottom, 0px)) !important;
}

#page,
.site {
	padding-bottom: 0;
}

body.novel-portal-home .site-content,
body .site-content,
#page .site-content,
.site-footer,
.paging-navigation,
.pagination,
nav.pagination,
.nav-links,
.gp-posts-pagination {
	scroll-margin-bottom: var(--bn-floating-clearance);
}

.site-footer {
	margin-bottom: 0.5rem;
	padding-bottom: 1.25rem !important;
}

/* Mobile: taller clearance so theme switcher never covers cards / CTAs / pagination */
@media screen and (max-width: 768px) {
	:root {
		--bn-floating-clearance: var(--bn-floating-clearance-mobile);
	}

	/*
	 * Spacer lives on #page (main wrapper) so fixed bottom chrome
	 * cannot cover cards, pagination, or CTAs. Body padding is zeroed
	 * here to avoid a double gap; nested shells keep normal spacing.
	 */
	body {
		padding-bottom: env(safe-area-inset-bottom, 0px) !important;
	}

	#page,
	.site {
		padding-bottom: calc(var(--bn-floating-clearance-mobile) + env(safe-area-inset-bottom, 0px)) !important;
		box-sizing: border-box !important;
	}

	.site-content,
	body.novel-portal-home .site-content,
	#page .site-content {
		padding-bottom: 1.5rem !important;
	}

	.novel-portal-shell {
		padding-bottom: 1.5rem !important;
	}

	.site-footer {
		padding-bottom: 1.25rem !important;
		margin-bottom: 0 !important;
	}

	.paging-navigation,
	.pagination,
	nav.pagination,
	.nav-links,
	.gp-posts-pagination,
	.novels-grid,
	.home-main-layout,
	.poster-grid,
	.novel-cta-block {
		scroll-margin-bottom: calc(var(--bn-floating-clearance-mobile) + 1rem);
	}

	/* Single posts: reading bar (~4.5rem) + theme switcher clearance */
	body.single-post #page,
	body.single-post .site {
		padding-bottom: calc(4.5rem + var(--bn-floating-clearance-mobile) + env(safe-area-inset-bottom, 0px)) !important;
	}
}

/* 4. Dark / Light theme switcher (text labels) */
.theme-switcher-bar {
	position: fixed;
	bottom: max(16px, env(safe-area-inset-bottom, 0px));
	right: 16px;
	z-index: 99995;
	display: flex;
	gap: 6px;
	align-items: center;
	background: rgba(15, 23, 42, 0.92);
	padding: 6px;
	border-radius: 14px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
	pointer-events: auto;
}

.theme-btn {
	width: auto !important;
	height: auto !important;
	min-width: 0;
	min-height: 2.25rem;
	padding: 0.45rem 0.85rem !important;
	border-radius: 10px !important;
	border: 1px solid transparent !important;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	font-family: var(--bn-font-ui, 'Noto Sans', sans-serif);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	line-height: 1.2;
	color: #e2e8f0 !important;
	background: transparent !important;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.theme-btn:hover,
.theme-btn:focus {
	background: rgba(255, 255, 255, 0.1) !important;
	outline: none;
}

.theme-btn.is-active {
	background: rgba(255, 255, 255, 0.16) !important;
	border-color: rgba(255, 255, 255, 0.35) !important;
	color: #fff !important;
	box-shadow: none;
	transform: none;
}

.theme-btn.btn-dark.is-active {
	background: #1e293b !important;
	border-color: #94a3b8 !important;
	color: #f8fafc !important;
}

.theme-btn.btn-light {
	color: #cbd5e1 !important;
}

.theme-btn.btn-light.is-active {
	background: #f8fafc !important;
	border-color: #cbd5e1 !important;
	color: #0f172a !important;
}

/* Legacy color dots — hidden if any remain in cache */
.theme-btn.btn-coffee,
.theme-btn.btn-indigo,
.theme-btn.btn-emerald,
.theme-btn.btn-cream,
.theme-btn.btn-rose,
.theme-btn.btn-nordic {
	display: none !important;
}

@media screen and (max-width: 768px) {
	body.single-post .theme-switcher-bar {
		bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px)); /* sit above mobile reading bar */
	}
}

/* ==========================================================================
   ACTIVE / SELECTED STATE CONTRAST FIXES FOR ALL THEMES
   ========================================================================== */

/* 1. Coffee Brown Theme - Active / Selected States */
body.theme-coffee .main-navigation .main-nav ul li.current-menu-item > a,
body.theme-coffee .main-navigation .main-nav ul li.current_page_item > a,
body.theme-coffee .main-navigation .main-nav ul li > a:hover,
body.theme-coffee .pagination .current {
	background: #a06838 !important;
	color: #ffffff !important;
	border-radius: 6px !important;
	font-weight: 700 !important;
	box-shadow: 0 4px 12px rgba(160, 104, 56, 0.4) !important;
}

body.theme-coffee .genre-chip.active,
body.theme-coffee .genre-chip.is-active {
	background: linear-gradient(135deg, #d97706, #a06838) !important;
	color: #ffffff !important;
	border-color: #f59e0b !important;
	box-shadow: 0 4px 14px rgba(217, 119, 6, 0.5) !important;
}

/* 2. Emerald Sage Theme - Active / Selected States */
body.theme-emerald .main-navigation .main-nav ul li.current-menu-item > a,
body.theme-emerald .main-navigation .main-nav ul li.current_page_item > a,
body.theme-emerald .main-navigation .main-nav ul li > a:hover,
body.theme-emerald .pagination .current {
	background: #10b981 !important;
	color: #064e3b !important;
	border-radius: 6px !important;
	font-weight: 700 !important;
	box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4) !important;
}

body.theme-emerald .genre-chip.active,
body.theme-emerald .genre-chip.is-active {
	background: linear-gradient(135deg, #10b981, #059669) !important;
	color: #ffffff !important;
	border-color: #34d399 !important;
	box-shadow: 0 4px 14px rgba(16, 185, 129, 0.5) !important;
}

/* 3. Indigo Night Theme - Active / Selected States */
body.theme-indigo .main-navigation .main-nav ul li.current-menu-item > a,
body.theme-indigo .main-navigation .main-nav ul li.current_page_item > a,
body.theme-indigo .main-navigation .main-nav ul li > a:hover,
body.theme-indigo .pagination .current {
	background: #6366f1 !important;
	color: #ffffff !important;
	border-radius: 6px !important;
	font-weight: 700 !important;
	box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4) !important;
}

body.theme-indigo .genre-chip.active,
body.theme-indigo .genre-chip.is-active {
	background: linear-gradient(135deg, #6366f1, #4f46e5) !important;
	color: #ffffff !important;
	border-color: #818cf8 !important;
	box-shadow: 0 4px 14px rgba(99, 102, 241, 0.5) !important;
}

/* Mobile Toggled Menu Active Link Rule */
@media (max-width: 768px) {
	.main-navigation.toggled div.main-nav > ul li.current-menu-item > a,
	.main-navigation.toggled div.main-nav > ul li.current_page_item > a {
		border-left: 4px solid currentColor !important;
		padding-left: 16px !important;
	}
}

/* ==========================================================================
   NEW LIGHT & AESTHETIC THEME PALETTES
   ========================================================================== */

/* 1. Light Coffee Cream Theme */
body.theme-cream {
	background-color: #fdfbf7 !important;
	color: #2d241e !important;
	--bn-bg: #fdfbf7;
	--bn-surface: #ffffff;
	--bn-text: #2d241e;
	--bn-muted: #334155;
	--bn-border: #e7dfd5;
	--bn-border-strong: #d6cbbd;
	--bn-accent: #a06838;
	--bn-accent-deep: #8b5a2b;
	--bn-accent-soft: #f4eee6;
	--bn-gradient-cta: linear-gradient(135deg, #a06838, #8b5a2b);
}

body.theme-cream .hero-featured-glass,
body.theme-cream .novel-poster-card,
body.theme-cream .poster-card,
body.theme-cream .poster-card__body,
body.theme-cream .site-header,
body.theme-cream .home-side-panel,
body.theme-cream .main-navigation.toggled div.main-nav > ul,
body.theme-cream .main-navigation.toggled .main-nav > ul {
	background: #ffffff !important;
	border: 1px solid #e7dfd5 !important;
	box-shadow: 0 8px 24px rgba(45, 36, 30, 0.06) !important;
}

body.theme-cream a,
body.theme-cream .wp-block-post-title,
body.theme-cream h1,
body.theme-cream h2,
body.theme-cream h3,
body.theme-cream .hero-featured-title,
body.theme-cream .hero-featured-title a,
body.theme-cream .poster-card__title,
body.theme-cream .poster-card__title a,
body.theme-cream .home-section-title,
body.theme-cream .home-side-title {
	color: #2d241e !important;
}

body.theme-cream .hero-featured-excerpt,
body.theme-cream .poster-card__meta,
body.theme-cream .home-section-sub {
	color: #5c4a3e !important;
}

body.theme-cream .genre-chip {
	background: #f4eee6 !important;
	color: #5c4a3e !important;
	border-color: #e2d7c8 !important;
}

body.theme-cream .genre-chip.active,
body.theme-cream .genre-chip.is-active,
body.theme-cream .main-navigation .main-nav ul li.current-menu-item > a,
body.theme-cream .main-navigation .menu-toggle {
	background: linear-gradient(135deg, #a06838, #8b5a2b) !important;
	color: #ffffff !important;
	box-shadow: 0 4px 12px rgba(160, 104, 56, 0.3) !important;
	border-color: #8b5a2b !important;
}

body.theme-cream .site-footer,
body.theme-cream .site-info,
body.theme-cream .footer-widgets-container {
	background: #f4eee6 !important;
	color: #2d241e !important;
}

body.theme-cream .hero-action--read,
body.theme-cream .novel-cta-btn--download,
body.theme-cream .novel-card__cta,
body.theme-cream .novel-hero-cta,
body.theme-cream .button,
body.theme-cream .wp-block-button__link,
body.theme-cream .entry-content .download-button,
body.theme-cream .entry-content a.novel-cta-btn--download {
	background: linear-gradient(135deg, #a06838, #8b5a2b) !important;
	color: #ffffff !important;
	border-color: #8b5a2b !important;
	box-shadow: 0 6px 18px rgba(160, 104, 56, 0.28) !important;
}

body.theme-cream .hero-action--download {
	background: #ffffff !important;
	color: #2d241e !important;
	border: 1.5px solid #a06838 !important;
}

body.theme-cream .novel-cta-btn--read,
body.theme-cream .entry-content a.novel-cta-btn--read {
	background: transparent !important;
	color: #2d241e !important;
	border: 2px solid #a06838 !important;
}

body.theme-cream .novel-cta-btn--read:hover,
body.theme-cream .entry-content a.novel-cta-btn--read:hover {
	background: #a06838 !important;
	color: #ffffff !important;
}

body.theme-cream .poster-card__status--soft,
body.theme-cream .card-category-badge {
	background: rgba(255, 255, 255, 0.96) !important;
	color: #8b5a2b !important;
	border-color: rgba(160, 104, 56, 0.35) !important;
}

body.theme-cream .poster-card__meta,
body.theme-cream .novel-card__meta {
	color: #5c4a3e !important;
}

/* 2. Soft Pastel Rose Theme */
body.theme-rose {
	background-color: #fdf5f7 !important;
	color: #3b1e2b !important;
	--bn-bg: #fdf5f7;
	--bn-surface: #ffffff;
	--bn-text: #3b1e2b;
	--bn-muted: #881337;
	--bn-border: #f3d8e2;
	--bn-accent: #e11d48;
	--bn-accent-deep: #be123c;
	--bn-accent-soft: #fbebf1;
}

body.theme-rose .hero-featured-glass,
body.theme-rose .novel-poster-card,
body.theme-rose .poster-card,
body.theme-rose .poster-card__body,
body.theme-rose .site-header,
body.theme-rose .home-side-panel,
body.theme-rose .main-navigation.toggled .main-nav > ul {
	background: #ffffff !important;
	border: 1px solid #f3d8e2 !important;
	box-shadow: 0 8px 24px rgba(225, 29, 72, 0.05) !important;
}

body.theme-rose a,
body.theme-rose .wp-block-post-title,
body.theme-rose .hero-featured-title,
body.theme-rose .hero-featured-title a,
body.theme-rose .poster-card__title,
body.theme-rose .poster-card__title a,
body.theme-rose .home-section-title,
body.theme-rose .home-side-title {
	color: #4a1d31 !important;
}

body.theme-rose .genre-chip {
	background: #fbebf1 !important;
	color: #881337 !important;
	border-color: #f43f5e22 !important;
}

body.theme-rose .genre-chip.active,
body.theme-rose .genre-chip.is-active,
body.theme-rose .main-navigation .main-nav ul li.current-menu-item > a,
body.theme-rose .main-navigation .menu-toggle {
	background: linear-gradient(135deg, #e11d48, #be123c) !important;
	color: #ffffff !important;
	box-shadow: 0 4px 12px rgba(225, 29, 72, 0.3) !important;
	border-color: #e11d48 !important;
}

body.theme-rose .site-footer,
body.theme-rose .site-info,
body.theme-rose .footer-widgets-container {
	background: #fbebf1 !important;
	color: #3b1e2b !important;
}

/* 3. Nordic Light Theme */
body.theme-nordic {
	background-color: #f8fafc !important;
	color: #0f172a !important;
	--bn-bg: #f8fafc;
	--bn-surface: #ffffff;
	--bn-text: #0f172a;
	--bn-muted: #334155;
	--bn-border: #e2e8f0;
	--bn-accent: #4f46e5;
	--bn-accent-deep: #3730a3;
	--bn-accent-soft: #f1f5f9;
}

body.theme-nordic .hero-featured-glass,
body.theme-nordic .novel-poster-card,
body.theme-nordic .poster-card,
body.theme-nordic .poster-card__body,
body.theme-nordic .site-header,
body.theme-nordic .home-side-panel,
body.theme-nordic .main-navigation.toggled .main-nav > ul {
	background: #ffffff !important;
	border: 1px solid #e2e8f0 !important;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06) !important;
}

body.theme-nordic a,
body.theme-nordic .wp-block-post-title,
body.theme-nordic .hero-featured-title,
body.theme-nordic .hero-featured-title a,
body.theme-nordic .poster-card__title,
body.theme-nordic .poster-card__title a,
body.theme-nordic .home-section-title,
body.theme-nordic .home-side-title {
	color: #0f172a !important;
}

body.theme-nordic .genre-chip {
	background: #f1f5f9 !important;
	color: #334155 !important;
	border-color: #cbd5e1 !important;
}

body.theme-nordic .genre-chip.active,
body.theme-nordic .genre-chip.is-active,
body.theme-nordic .main-navigation .main-nav ul li.current-menu-item > a,
body.theme-nordic .main-navigation .menu-toggle {
	background: linear-gradient(135deg, #4f46e5, #3730a3) !important;
	color: #ffffff !important;
	box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3) !important;
	border-color: #4f46e5 !important;
}

body.theme-nordic .site-footer,
body.theme-nordic .site-info,
body.theme-nordic .footer-widgets-container {
	background: #f1f5f9 !important;
	color: #0f172a !important;
}

/* Switcher Button Color Badges */
.btn-cream { background: #f4eee6; border: 1px solid #8b5a2b !important; }
.btn-rose { background: #f43f5e; }
.btn-nordic { background: #38bdf8; }

/* ==========================================================================
   LIGHT THEMES BACKGROUND TINTS & CONTRAST FIXES
   ========================================================================== */

/* 1. Light Coffee Cream Theme Fixes */
body.theme-cream,
html.theme-cream {
	background-color: #f5efe6 !important; /* Distinct warm parchment tone */
	color: #2b2118 !important;
}

body.theme-cream .hero-featured-glass,
body.theme-cream .novel-poster-card,
body.theme-cream .poster-card,
body.theme-cream .poster-card__body,
body.theme-cream .site-header,
body.theme-cream .home-side-panel {
	background-color: #ffffff !important;
	border: 1px solid #e2d5c5 !important;
	box-shadow: 0 10px 28px rgba(43, 33, 24, 0.08) !important;
}

body.theme-cream .trending-badge,
body.theme-cream .badge,
body.theme-cream .hero-tag,
body.theme-cream .hero-featured-tag {
	background: #8b5a2b !important;
	color: #ffffff !important;
	font-weight: 700 !important;
	border-color: #8b5a2b !important;
	box-shadow: 0 0 14px rgba(139, 90, 43, 0.35) !important;
}

body.theme-cream .hero-featured-title,
body.theme-cream .hero-featured-title a,
body.theme-cream .poster-card__title,
body.theme-cream .poster-card__title a,
body.theme-cream .home-section-title,
body.theme-cream .home-side-title {
	color: #2b2118 !important;
}

/* 2. Soft Pastel Rose Theme Fixes */
body.theme-rose,
html.theme-rose {
	background-color: #fcebf0 !important; /* Distinct soft blush tint */
	color: #381222 !important;
}

body.theme-rose .hero-featured-glass,
body.theme-rose .novel-poster-card,
body.theme-rose .poster-card,
body.theme-rose .poster-card__body,
body.theme-rose .site-header,
body.theme-rose .home-side-panel {
	background-color: #ffffff !important;
	border: 1px solid #f8c8d8 !important;
	box-shadow: 0 10px 28px rgba(225, 29, 72, 0.08) !important;
}

body.theme-rose .trending-badge,
body.theme-rose .badge,
body.theme-rose .hero-tag,
body.theme-rose .hero-featured-tag {
	background: #e11d48 !important;
	color: #ffffff !important;
	font-weight: 700 !important;
	border-color: #e11d48 !important;
	box-shadow: 0 0 14px rgba(225, 29, 72, 0.35) !important;
}

body.theme-rose .hero-featured-title,
body.theme-rose .hero-featured-title a,
body.theme-rose .poster-card__title,
body.theme-rose .poster-card__title a,
body.theme-rose .home-section-title,
body.theme-rose .home-side-title {
	color: #381222 !important;
}

/* 3. Nordic Light Slate Theme Fixes */
body.theme-nordic,
html.theme-nordic {
	background-color: #e2e8f0 !important; /* Distinct cool slate-grey tint */
	color: #0f172a !important;
}

body.theme-nordic .hero-featured-glass,
body.theme-nordic .novel-poster-card,
body.theme-nordic .poster-card,
body.theme-nordic .poster-card__body,
body.theme-nordic .site-header,
body.theme-nordic .home-side-panel {
	background-color: #ffffff !important;
	border: 1px solid #cbd5e1 !important;
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08) !important;
}

body.theme-nordic .trending-badge,
body.theme-nordic .badge,
body.theme-nordic .hero-tag,
body.theme-nordic .hero-featured-tag {
	background: #4f46e5 !important;
	color: #ffffff !important;
	font-weight: 700 !important;
	border-color: #4f46e5 !important;
	box-shadow: 0 0 14px rgba(79, 70, 229, 0.35) !important;
}

body.theme-nordic .hero-featured-title,
body.theme-nordic .hero-featured-title a,
body.theme-nordic .poster-card__title,
body.theme-nordic .poster-card__title a,
body.theme-nordic .home-section-title,
body.theme-nordic .home-side-title {
	color: #0f172a !important;
}

/* Universal Light Theme Text Contrast Enforcement
   (scoped away from coverflow/slider excerpts so dark mode can win cleanly) */
body.theme-cream p:not(.bn-coverflow__excerpt):not(.bn-coverflow__author):not(.hero-featured-excerpt):not(.hero-excerpt),
body.theme-rose p:not(.bn-coverflow__excerpt):not(.bn-coverflow__author):not(.hero-featured-excerpt):not(.hero-excerpt),
body.theme-nordic p:not(.bn-coverflow__excerpt):not(.bn-coverflow__author):not(.hero-featured-excerpt):not(.hero-excerpt),
body.theme-cream .home-section-sub,
body.theme-rose .home-section-sub,
body.theme-nordic .home-section-sub,
body.theme-cream .poster-card__meta,
body.theme-rose .poster-card__meta,
body.theme-nordic .poster-card__meta {
	color: #334155 !important;
	font-weight: 500 !important;
}

body.theme-cream .bn-coverflow__excerpt,
body.theme-cream .hero-featured-excerpt,
body.theme-cream .hero-excerpt,
body.theme-rose .bn-coverflow__excerpt,
body.theme-rose .hero-featured-excerpt,
body.theme-rose .hero-excerpt,
body.theme-nordic .bn-coverflow__excerpt,
body.theme-nordic .hero-featured-excerpt,
body.theme-nordic .hero-excerpt {
	color: #334155 !important;
	-webkit-text-fill-color: #334155 !important;
	font-weight: 500 !important;
}

/* ==========================================================================
   PHASE 1 — Critical contrast & layout bug fixes
   ========================================================================== */

/* H1: Light-theme mobile drawer — readable dark links on white panels */
@media (max-width: 768px) {
	body.theme-cream .main-navigation.toggled .main-nav,
	body.theme-cream .main-navigation.toggled .main-nav > ul,
	body.theme-rose .main-navigation.toggled .main-nav,
	body.theme-rose .main-navigation.toggled .main-nav > ul,
	body.theme-nordic .main-navigation.toggled .main-nav,
	body.theme-nordic .main-navigation.toggled .main-nav > ul {
		background: #ffffff !important;
		border-bottom-color: currentColor !important;
	}

	body.theme-cream .main-navigation.toggled .main-nav ul li {
		border-bottom-color: #e2d5c5 !important;
	}

	body.theme-rose .main-navigation.toggled .main-nav ul li {
		border-bottom-color: #f8c8d8 !important;
	}

	body.theme-nordic .main-navigation.toggled .main-nav ul li {
		border-bottom-color: #cbd5e1 !important;
	}

	body.theme-cream .main-navigation.toggled .main-nav ul li a,
	body.theme-rose .main-navigation.toggled .main-nav ul li a,
	body.theme-nordic .main-navigation.toggled .main-nav ul li a,
	body.theme-cream .main-navigation.toggled .main-nav ul li .dropdown-menu-toggle,
	body.theme-rose .main-navigation.toggled .main-nav ul li .dropdown-menu-toggle,
	body.theme-nordic .main-navigation.toggled .main-nav ul li .dropdown-menu-toggle {
		color: #1e293b !important;
		-webkit-text-fill-color: #1e293b !important;
	}

	body.theme-cream .main-navigation.toggled .main-nav ul li a:hover,
	body.theme-cream .main-navigation.toggled .main-nav ul li.current-menu-item > a,
	body.theme-cream .main-navigation.toggled .main-nav ul li.current_page_item > a {
		background: #4a2e16 !important;
		color: #ffffff !important;
	}

	body.theme-rose .main-navigation.toggled .main-nav ul li a:hover,
	body.theme-rose .main-navigation.toggled .main-nav ul li.current-menu-item > a,
	body.theme-rose .main-navigation.toggled .main-nav ul li.current_page_item > a {
		background: rgba(225, 29, 72, 0.12) !important;
		color: #be123c !important;
	}

	body.theme-nordic .main-navigation.toggled .main-nav ul li a:hover,
	body.theme-nordic .main-navigation.toggled .main-nav ul li.current-menu-item > a,
	body.theme-nordic .main-navigation.toggled .main-nav ul li.current_page_item > a {
		background: rgba(79, 70, 229, 0.12) !important;
		color: #3730a3 !important;
	}
}

/* H2: Indigo most-read / sidebar link contrast */
body.theme-indigo a,
body.theme-indigo .most-read-item__title,
body.theme-indigo .most-read-item__title a,
body.theme-indigo .home-side-title,
body.theme-indigo .home-section-title {
	color: #e2e8f0 !important;
}

body.theme-indigo .most-read-item__meta {
	color: #94a3b8 !important;
}

.most-read-item__title {
	color: inherit !important;
}

body.theme-coffee .most-read-item__title,
body.theme-coffee .most-read-item__title a {
	color: #e6ccb2 !important;
}

body.theme-emerald .most-read-item__title,
body.theme-emerald .most-read-item__title a {
	color: #a7f3d0 !important;
}

body.theme-cream .most-read-item__title,
body.theme-cream .most-read-item__title a,
body.theme-rose .most-read-item__title,
body.theme-rose .most-read-item__title a,
body.theme-nordic .most-read-item__title,
body.theme-nordic .most-read-item__title a {
	color: #0f172a !important;
}

/* H3: Light footers — kill nested indigo wells */
body.theme-cream .inside-footer-widgets,
body.theme-cream .footer-widgets,
body.theme-cream .footer-widgets-container,
body.theme-cream .inside-site-info,
body.theme-cream .footer-bar,
body.theme-cream .copyright-bar,
body.theme-cream .site-footer .widget-title,
body.theme-cream .footer-widgets .widget-title,
body.theme-cream .site-footer .widget,
body.theme-cream .footer-widgets .widget {
	background: #f5efe6 !important;
	background-color: #f5efe6 !important;
	color: #2b2118 !important;
	border-color: #e2d5c5 !important;
}

body.theme-cream .site-footer a,
body.theme-cream .site-info a,
body.theme-cream .footer-widgets a {
	color: #8b5a2b !important;
}

body.theme-rose .inside-footer-widgets,
body.theme-rose .footer-widgets,
body.theme-rose .footer-widgets-container,
body.theme-rose .inside-site-info,
body.theme-rose .footer-bar,
body.theme-rose .copyright-bar,
body.theme-rose .site-footer .widget-title,
body.theme-rose .footer-widgets .widget-title,
body.theme-rose .site-footer .widget,
body.theme-rose .footer-widgets .widget {
	background: #fcebf0 !important;
	background-color: #fcebf0 !important;
	color: #381222 !important;
	border-color: #f8c8d8 !important;
}

body.theme-rose .site-footer a,
body.theme-rose .site-info a,
body.theme-rose .footer-widgets a {
	color: #be123c !important;
}

body.theme-nordic .inside-footer-widgets,
body.theme-nordic .footer-widgets,
body.theme-nordic .footer-widgets-container,
body.theme-nordic .inside-site-info,
body.theme-nordic .footer-bar,
body.theme-nordic .copyright-bar,
body.theme-nordic .site-footer .widget-title,
body.theme-nordic .footer-widgets .widget-title,
body.theme-nordic .site-footer .widget,
body.theme-nordic .footer-widgets .widget {
	background: #e2e8f0 !important;
	background-color: #e2e8f0 !important;
	color: #0f172a !important;
	border-color: #cbd5e1 !important;
}

body.theme-nordic .site-footer a,
body.theme-nordic .site-info a,
body.theme-nordic .footer-widgets a {
	color: #4f46e5 !important;
}

/* ==========================================================================
   PHASE 2–4 — Theme chrome, UX features, performance polish
   ========================================================================== */

/* Theme switcher — text mode surfaces */
.theme-switcher-bar {
	gap: 6px !important;
	padding: 6px !important;
	flex-wrap: nowrap;
	max-width: calc(100vw - 24px);
	border-radius: 14px !important;
}

.theme-btn {
	width: auto !important;
	height: auto !important;
	min-width: 0 !important;
	min-height: 2.25rem !important;
}

body.theme-cream .theme-switcher-bar,
body.theme-rose .theme-switcher-bar,
body.theme-nordic .theme-switcher-bar {
	background: rgba(255, 255, 255, 0.95) !important;
	border: 1px solid rgba(15, 23, 42, 0.12) !important;
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12) !important;
}

body.theme-cream .theme-btn,
body.theme-rose .theme-btn,
body.theme-nordic .theme-btn {
	color: #334155 !important;
}

body.theme-cream .theme-btn.is-active.btn-light,
body.theme-rose .theme-btn.is-active.btn-light,
body.theme-nordic .theme-btn.is-active.btn-light {
	background: #0f172a !important;
	color: #f8fafc !important;
	border-color: #0f172a !important;
}

/* Do not paint switcher with coffee nav-active solid fill */
body.theme-coffee .theme-switcher-bar {
	background: rgba(43, 33, 27, 0.94) !important;
	color: #f3ebd9 !important;
	border-radius: 14px !important;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35) !important;
	font-weight: 400 !important;
}

body.theme-emerald .theme-switcher-bar,
body.theme-indigo .theme-switcher-bar {
	background: rgba(15, 23, 42, 0.94) !important;
	border: 1px solid rgba(148, 163, 184, 0.35) !important;
}

/* Token-driven comments / reading bar / ads / search */
#comments,
.comment-respond,
.comments-area {
	background-color: var(--bn-surface, #1e293b) !important;
	border-color: var(--bn-border, #334155) !important;
	color: var(--bn-text, #f8fafc) !important;
}

.mobile-reading-bar {
	background: var(--bn-bg, #0f172a) !important;
	border-top-color: var(--bn-border, #334155) !important;
}

.mrb-btn {
	background: var(--bn-surface, #1e293b) !important;
	border-color: var(--bn-border, #475569) !important;
	color: var(--bn-text, #f8fafc) !important;
}

.ad-container,
.adsense-slot,
.bn-ad {
	width: 100%;
	max-width: 100%;
	overflow: hidden;
	aspect-ratio: unset;
	position: relative !important;
}

.ad-container--inline,
.adsense-slot-inline,
.bn-ad.ad-container--inline {
	aspect-ratio: unset;
	min-height: 280px;
}

.ad-container--preview {
	display: none !important;
}

.header-search-field:focus,
.search-form .search-field:focus {
	border-color: var(--bn-accent, #6366f1) !important;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--bn-accent, #6366f1) 35%, transparent) !important;
}

/* Reader night mode — scoped to content, not full page palette */
.entry-content.dark-theme,
body.reader-dark .entry-content {
	background: #0f172a !important;
	color: #e2e8f0 !important;
	border-radius: 12px;
	padding: 1rem;
}

body.reader-dark .inside-article {
	background: #1e293b !important;
	color: #e2e8f0 !important;
}

/* Viewport: prefer 100% over 100vw where safe */
html,
body,
#page,
.site,
.container,
.grid-container {
	max-width: 100% !important;
	overflow-x: clip;
}

/* Reading progress */
.reading-progress-bar {
	position: fixed;
	top: 0;
	left: 0;
	height: 3px;
	width: 0;
	z-index: 100001;
	background: linear-gradient(90deg, var(--bn-accent, #6366f1), var(--bn-accent-deep, #4f46e5));
	pointer-events: none;
	transition: width 0.08s linear;
}

/* Resume chip */
.resume-reading-chip {
	position: fixed;
	left: 16px;
	bottom: max(16px, env(safe-area-inset-bottom, 0px));
	z-index: 99994;
	max-width: min(280px, calc(100vw - 11rem));
}

.resume-reading-chip[hidden] { display: none !important; }

.resume-reading-chip a {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	padding: 0.7rem 1rem;
	border-radius: 14px;
	background: rgba(15, 23, 42, 0.92);
	border: 1px solid rgba(255, 255, 255, 0.15);
	color: #f8fafc !important;
	text-decoration: none !important;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
	backdrop-filter: blur(10px);
}

.resume-reading-chip__label {
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #d4b896;
}

.resume-reading-chip__title {
	font-size: 0.9rem;
	font-weight: 700;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

body.theme-cream .resume-reading-chip a,
body.theme-rose .resume-reading-chip a,
body.theme-nordic .resume-reading-chip a {
	background: rgba(255, 255, 255, 0.95);
	color: #0f172a !important;
	border-color: rgba(15, 23, 42, 0.12);
}

body.theme-cream .resume-reading-chip__label { color: #8b5a2b; }
body.theme-rose .resume-reading-chip__label { color: #e11d48; }
body.theme-nordic .resume-reading-chip__label { color: #4f46e5; }

@media (max-width: 768px) {
	body.single-post .resume-reading-chip {
		bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
		max-width: min(240px, calc(100vw - 10.5rem));
	}
	body.single-post .theme-switcher-bar {
		bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
	}
}

/* Quick search modal */
.header-quick-search {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.5rem;
	padding: 0 0.75rem;
	margin-inline-start: 0.35rem;
	border: 1px solid var(--bn-border-strong, #e2e8f0);
	border-radius: 999px;
	background: var(--bn-surface, #fff);
	color: var(--bn-text, #1e293b);
	font-family: var(--bn-font-ui);
	font-size: 0.75rem;
	font-weight: 700;
	cursor: pointer;
	box-shadow: var(--bn-shadow);
}

.quick-search-modal {
	position: fixed;
	inset: 0;
	z-index: 100010;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 12vh 1rem 1rem;
}

.quick-search-modal[hidden] { display: none !important; }

.quick-search-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
	backdrop-filter: blur(4px);
}

.quick-search-panel {
	position: relative;
	z-index: 1;
	width: min(560px, 100%);
	padding: 1rem;
	border-radius: 16px;
	background: #fff;
	border: 1px solid #e2e8f0;
	box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
}

.quick-search-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0.75rem;
}

.quick-search-heading {
	margin: 0;
	font-size: 1rem;
	color: #0f172a;
}

.quick-search-close {
	border: 0;
	background: transparent;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	color: #64748b;
}

.quick-search-input {
	width: 100%;
	height: 2.75rem;
	padding: 0 1rem;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	font-size: 1rem;
	margin-bottom: 0.75rem;
}

.quick-search-results {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	max-height: 50vh;
	overflow-y: auto;
}

.quick-search-item {
	display: block;
	padding: 0.65rem 0.75rem;
	border-radius: 8px;
	color: #0f172a !important;
	text-decoration: none !important;
	font-weight: 600;
}

.quick-search-item:hover,
.quick-search-item:focus {
	background: #eef2ff;
	color: #3730a3 !important;
}

.quick-search-empty,
.quick-search-hint {
	margin: 0.5rem 0 0;
	font-size: 0.85rem;
	color: #64748b;
}

body.quick-search-open {
	overflow: hidden;
}

/* Bookmarks */
.bookmark-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	min-height: 2.5rem;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 999px;
	background: rgba(15, 23, 42, 0.35);
	color: #fff;
	font-size: 1.1rem;
	cursor: pointer;
	transition: transform 0.15s ease, background 0.2s ease;
}

.bookmark-toggle:hover,
.bookmark-toggle:focus-visible {
	transform: scale(1.06);
	outline: 2px solid var(--bn-accent, #6366f1);
	outline-offset: 2px;
}

.bookmark-toggle.is-bookmarked {
	background: linear-gradient(135deg, #e11d48, #be123c);
	border-color: transparent;
}

.bookmark-toggle--card {
	min-width: 2rem;
	min-height: 2rem;
	font-size: 0.95rem;
	background: var(--bn-accent-soft, #e0e7ff);
	color: var(--bn-accent-deep, #4f46e5);
	border-color: transparent;
}

.hero-action--bookmark {
	padding: 0 0.9rem !important;
	min-height: 2.7rem;
}

.poster-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-top: 0.35rem;
}

.poster-card__readtime,
.hero-featured-readtime {
	display: inline-flex;
	align-items: center;
	padding: 0.2rem 0.55rem;
	border-radius: 999px;
	background: rgba(15, 23, 42, 0.7);
	color: #fff;
	font-size: 0.68rem;
	font-weight: 700;
}

.poster-card__readtime {
	position: absolute;
	left: 0.55rem;
	bottom: 0.55rem;
	z-index: 2;
}

.hero-featured-readtime {
	background: rgba(99, 102, 241, 0.2);
	color: inherit;
	border: 1px solid rgba(99, 102, 241, 0.35);
}

/* Saved strip */
.saved-novels-strip {
	margin: 0 0 1.35rem;
}

.saved-novels-strip[hidden] { display: none !important; }

.saved-novels-track {
	display: flex;
	gap: 0.75rem;
	overflow-x: auto;
	padding-bottom: 0.4rem;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}

.saved-novels-item {
	flex: 0 0 auto;
	width: 110px;
	text-decoration: none !important;
	color: inherit !important;
}

.saved-novels-thumb {
	display: block;
	width: 52px;
	height: 70px;
	aspect-ratio: 2 / 3;
	border-radius: 6px;
	overflow: hidden;
	flex-shrink: 0;
	background: var(--surface-card, rgba(0, 0, 0, 0.04));
	margin-bottom: 0.35rem;
}

.saved-novels-thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
}

.saved-novels-title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 0.8rem;
	font-weight: 700;
	line-height: 1.4;
}

/* Image skeletons */
.poster-card__cover.is-loading,
.hero-featured-media.is-loading {
	background: linear-gradient(90deg, #e2e8f0 25%, #f8fafc 50%, #e2e8f0 75%);
	background-size: 200% 100%;
	animation: skeletonShimmer 1.2s ease-in-out infinite;
}

@keyframes skeletonShimmer {
	0% { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

/* Focus-visible rings */
.genre-chip:focus-visible,
.poster-card__title a:focus-visible,
.hero-action:focus-visible,
.theme-btn.btn-dark:focus-visible,
.theme-btn.btn-light:focus-visible,
.theme-btn:focus-visible {
	outline: 2px solid var(--bn-accent, #6366f1);
	outline-offset: 2px;
}

/* Light theme link affordance — exclude filled CTAs so labels stay white */
body.theme-cream a:not(.hero-action):not(.genre-chip):not(.poster-card__title a):not(.most-read-item__title):not(.novel-card__cta):not(.novel-cta-btn):not(.novel-hero-cta):not(.button):not(.wp-block-button__link):not(.download-btn):not(.download-button):not(.download-link) {
	color: #8b5a2b !important;
}

body.theme-rose a:not(.hero-action):not(.genre-chip):not(.poster-card__title a):not(.most-read-item__title):not(.novel-card__cta):not(.novel-cta-btn):not(.novel-hero-cta):not(.button):not(.wp-block-button__link):not(.download-btn):not(.download-button):not(.download-link) {
	color: #be123c !important;
}

body.theme-nordic a:not(.hero-action):not(.genre-chip):not(.poster-card__title a):not(.most-read-item__title):not(.novel-card__cta):not(.novel-cta-btn):not(.novel-hero-cta):not(.button):not(.wp-block-button__link):not(.download-btn):not(.download-button):not(.download-link) {
	color: #4f46e5 !important;
}

/* ==========================================================================
   GLOBAL BANNER & COVER IMAGE FIT FIXES (NO CROPPING / CUTTING)
   ========================================================================== */

/* 1. Hero Spotlight — contain, no face crop; stable desktop frame */
.hero-featured-glass .hero-featured-cover,
.hero-featured-media img {
	width: 100% !important;
	height: auto !important;
	max-height: 480px !important;
	object-fit: contain !important;
	object-position: center !important;
	border-radius: 12px !important;
}

.hero-featured-media {
	aspect-ratio: auto !important;
	max-height: 480px;
	overflow: hidden;
	display: flex !important;
	align-items: center;
	justify-content: center;
	background: #e2e8f0;
}

/* 2. Novel Poster Cards — unzoomed contain inside 2:3 frame */
.poster-card__cover,
.novel-card__cover {
	aspect-ratio: 2 / 3 !important;
	overflow: hidden !important;
	background-color: var(--surface-card, rgba(0, 0, 0, 0.04)) !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
}

.poster-card__img,
.novel-card__cover-img {
	width: 100% !important;
	height: 100% !important;
	object-fit: contain !important;
	object-position: center !important;
	max-width: 100% !important;
	max-height: 100% !important;
	transform: none !important;
	position: relative !important;
	z-index: 2 !important;
}

/* 3. AdSense — keep CLS reserves; never float / overlay */
.ad-container,
.adsense-slot,
.bn-ad {
	width: 100% !important;
	max-width: 100% !important;
	overflow: hidden !important;
	box-sizing: border-box !important;
	aspect-ratio: unset !important;
	position: relative !important;
	float: none !important;
}

.ad-container--inline,
.adsense-slot-inline,
.bn-ad.ad-container--inline {
	min-height: 280px !important;
	aspect-ratio: unset !important;
}

.ad-container--preview,
.adsense-slot.ad-container--preview,
.home-side-panel--ads {
	display: none !important;
}

.ad-container img,
.ad-container ins,
.adsense-slot img,
.adsense-slot ins {
	max-width: 100% !important;
	height: auto !important;
}

/* 4. Mobile — keep compact 110px side-by-side hero (no full-width column) */
@media (max-width: 768px) {
	.hero-featured-glass {
		padding: 16px !important;
	}

	.hero-featured-glass__inner {
		display: grid !important;
		grid-template-columns: minmax(100px, 110px) 1fr !important;
		flex-direction: unset !important;
		align-items: center !important;
		gap: 0.9rem !important;
		text-align: left;
	}

	.hero-featured-media {
		width: 100% !important;
		max-width: 110px !important;
		max-height: 165px !important;
	}

	.hero-featured-glass .hero-featured-cover,
	.hero-featured-media img {
		max-height: 165px !important;
		object-fit: contain !important;
	}

	.hero-featured-copy {
		align-items: flex-start !important;
		width: 100%;
	}

	.hero-featured-actions {
		justify-content: flex-start;
	}

	.entry-content img,
	.featured-image img,
	.post-image img {
		object-fit: contain !important;
		height: auto !important;
		max-width: 100% !important;
	}
}

/* ==========================================================================
   PERMANENT FIX: LATEST RELEASES & MOST DISCUSSED CONTAINMENT
   ========================================================================== */

/* Outer Shell Bounds */
.section-banner-card,
.latest-releases-section,
.most-discussed-section,
.home-side-panel,
.home-category-section {
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding: 20px !important;
	border-radius: 16px !important;
	overflow: visible !important;
	clear: both !important;
}

.section-banner-card.latest-releases-section,
.section-banner-card.most-discussed-section {
	background: var(--bn-surface, rgba(255, 255, 255, 0.78));
	border: 1px solid var(--bn-border, rgba(226, 232, 240, 0.95));
	box-shadow: var(--bn-shadow, 0 4px 20px -2px rgba(0, 0, 0, 0.05));
}

.section-banner-card .home-side-panel,
.section-banner-card .home-primary {
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
	overflow: visible !important;
}

.home-main-layout {
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
	min-width: 0 !important;
}

.home-primary,
.home-secondary,
.home-poster-grid {
	min-width: 0 !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
}

/* Heading & Subtitle Alignment */
.section-banner-card h2,
.latest-releases-section h2,
.most-discussed-section h2,
.widget-title {
	font-size: 1.35rem !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	margin: 0 0 6px 0 !important;
	padding: 0 !important;
	word-break: break-word !important;
}

.section-banner-card p,
.latest-releases-section p,
.most-discussed-section p {
	font-size: 0.875rem !important;
	margin: 0 0 16px 0 !important;
	opacity: 0.85 !important;
}

/* Mobile Viewport Safeguards (<= 768px / 375px) */
@media (max-width: 768px) {
	.section-banner-card,
	.latest-releases-section,
	.most-discussed-section,
	.home-side-panel {
		padding: 14px !important;
		margin-bottom: 16px !important;
		border-radius: 12px !important;
	}

	.section-banner-card h2,
	.latest-releases-section h2,
	.most-discussed-section h2 {
		font-size: 1.15rem !important;
	}

	.home-main-layout {
		gap: 1rem !important;
		padding: 0 !important;
	}

	.novel-portal-shell {
		padding-left: 0.75rem !important;
		padding-right: 0.75rem !important;
		box-sizing: border-box !important;
		max-width: 100% !important;
	}
}

/* ==========================================================================
   PERMANENT UNZOOMED NOVEL POSTER SYSTEM (ZERO CROP + ZERO BLANK SPACE)
   ========================================================================== */

/* 1. Poster cover frames — aspect-ratio on covers only (not whole card body) */
.poster-card {
	width: 100% !important;
	max-width: 100% !important;
	overflow: hidden !important;
	border-radius: 10px !important;
}

.poster-card__cover,
.novel-card__cover {
	width: 100% !important;
	max-width: 100% !important;
	aspect-ratio: 2 / 3 !important;
	position: relative !important;
	border-radius: 10px !important;
	overflow: hidden !important;
	background-color: var(--surface-card, rgba(0, 0, 0, 0.04)) !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
}

/* 2. Main Unzoomed Poster Image */
.poster-card img,
.poster-card__cover img,
.poster-card__img,
.novel-card__cover img,
.novel-card__cover-img {
	width: 100% !important;
	height: 100% !important;
	object-fit: contain !important;
	object-position: center !important;
	max-width: 100% !important;
	max-height: 100% !important;
	z-index: 2 !important;
	position: relative !important;
	transform: none !important;
}

/* 3. Small Sidebar Thumbs (Most Discussed) */
.most-read-item__thumb,
.saved-novels-thumb {
	width: 52px !important;
	height: 70px !important;
	border-radius: 6px !important;
	overflow: hidden !important;
	flex-shrink: 0 !important;
	background: var(--surface-card, rgba(0, 0, 0, 0.04)) !important;
}

.most-read-item__thumb img,
.saved-novels-thumb img {
	width: 100% !important;
	height: 100% !important;
	object-fit: contain !important;
	object-position: center !important;
}

/* ==========================================================================
   HEADER MOBILE TITLE & ACTIVE MENU CONTRAST FIXES
   ========================================================================== */

/* 1. Mobile Header Title — ellipsis inside sticky flex row */
@media (max-width: 768px) {
	.site-branding {
		max-width: calc(100% - 7.5rem) !important;
		min-width: 0 !important;
		overflow: hidden !important;
	}

	.site-title,
	.main-title {
		max-width: 100% !important;
		overflow: hidden !important;
		text-overflow: ellipsis !important;
		white-space: nowrap !important;
	}

	.site-title a,
	.main-title a {
		font-size: 0.95rem !important;
		font-weight: 700 !important;
		letter-spacing: -0.2px !important;
		display: block !important;
		overflow: hidden !important;
		text-overflow: ellipsis !important;
		white-space: nowrap !important;
		max-width: 100% !important;
	}

	.site-description {
		display: none !important;
	}
}

/* 2. Navigation Active State Contrast Fix */
.main-navigation .main-nav ul li.current-menu-item > a,
.main-navigation .main-nav ul li.current-menu-ancestor > a,
.main-navigation .main-nav ul li.current_page_item > a,
.main-navigation .main-nav ul li > a:hover,
.portal-nav-link.active,
.nav-button.active {
	background-color: var(--primary, #6b4423) !important;
	color: #ffffff !important;
	font-weight: 600 !important;
	border-radius: 20px !important;
	padding: 6px 14px !important;
}

/* Coffee / Cream — dark active pills, white text (body.theme-* is the live switcher) */
body.theme-cream .main-navigation .main-nav ul li.current-menu-item > a,
body.theme-cream .main-navigation .main-nav ul li.current-menu-ancestor > a,
body.theme-cream .main-navigation .main-nav ul li.current_page_item > a,
body.theme-cream .portal-nav-link.active,
body.theme-cream .nav-button.active,
body.theme-coffee .main-navigation .main-nav ul li.current-menu-item > a,
body.theme-coffee .main-navigation .main-nav ul li.current-menu-ancestor > a,
body.theme-coffee .main-navigation .main-nav ul li.current_page_item > a,
body.theme-coffee .portal-nav-link.active,
body.theme-coffee .nav-button.active,
[data-theme="cream"] .main-navigation .main-nav ul li.current-menu-item > a,
[data-theme="cream"] .portal-nav-link.active,
[data-theme="coffee"] .main-navigation .main-nav ul li.current-menu-item > a,
[data-theme="coffee"] .portal-nav-link.active {
	background-color: var(--accent-color, #4a2e16) !important;
	color: #ffffff !important;
}

/* ==========================================================================
   FORCE ALL ACTIVE NAV BUTTONS CONTRAST FIX
   ========================================================================== */

/* Universal target for ALL nav links & buttons in active/current/hover states */
.main-navigation .main-nav ul li > a,
.main-navigation .main-nav ul li[class*="current-menu-"] > a,
.main-navigation .main-nav ul li.current-menu-item > a,
.main-navigation .main-nav ul li.current_page_item > a,
.main-navigation .main-nav ul li > a:hover,
.main-navigation .main-nav ul li > a:focus,
.nav-button,
.nav-button.active,
.portal-nav-link.active {
	transition: all 0.2s ease-in-out !important;
}

/* Active/Selected state for EVERY button (Home, About Us, Contact Us, Quick Download, etc.) */
.main-navigation .main-nav ul li[class*="current-menu-"] > a,
.main-navigation .main-nav ul li.current-menu-item > a,
.main-navigation .main-nav ul li.current_page_item > a,
.main-navigation .main-nav ul li > a:hover,
.nav-button.active,
.portal-nav-link.active {
	background-color: var(--primary, #4a2e16) !important;
	color: #ffffff !important;
	font-weight: 700 !important;
	border-radius: 20px !important;
}

/* Force inner text spans of ALL menu links to render white when active */
.main-navigation .main-nav ul li[class*="current-menu-"] > a *,
.main-navigation .main-nav ul li.current-menu-item > a *,
.main-navigation .main-nav ul li.current_page_item > a *,
.main-navigation .main-nav ul li > a:hover * {
	color: #ffffff !important;
}

/* Specific theme overrides for Coffee/Cream dark roasted pill contrast */
body.theme-coffee .main-navigation .main-nav ul li[class*="current-menu-"] > a,
body.theme-cream .main-navigation .main-nav ul li[class*="current-menu-"] > a,
body.theme-coffee .main-navigation .main-nav ul li.current-menu-item > a,
body.theme-cream .main-navigation .main-nav ul li.current-menu-item > a,
body.theme-coffee .main-navigation .main-nav ul li.current_page_item > a,
body.theme-cream .main-navigation .main-nav ul li.current_page_item > a,
body.theme-coffee .main-navigation .main-nav ul li > a:hover,
body.theme-cream .main-navigation .main-nav ul li > a:hover,
[data-theme="coffee"] .main-navigation .main-nav ul li[class*="current-menu-"] > a,
[data-theme="cream"] .main-navigation .main-nav ul li[class*="current-menu-"] > a,
[data-theme="coffee"] .main-navigation .main-nav ul li > a:hover,
[data-theme="cream"] .main-navigation .main-nav ul li > a:hover {
	background-color: #3d230d !important;
	color: #ffffff !important;
}

/* ==========================================================================
   ANTI-FLASH (FOUT) IMMEDIATE NAV BUTTON CONTRAST ENFORCEMENT
   ========================================================================== */

/* High specificity root override to kill default GeneratePress inline link color */
html body .main-navigation .main-nav ul li[class*="current-menu-"] > a,
html body .main-navigation .main-nav ul li.current-menu-item > a,
html body .main-navigation .main-nav ul li.current_page_item > a,
html body .main-navigation .main-nav ul li[class*="current-menu-"] > a:visited,
html body .main-navigation .main-nav ul li.current-menu-item > a:visited {
	background-color: #3d230d !important;
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
	font-weight: 700 !important;
	border-radius: 20px !important;
}

/* Ensure child text nodes, spans, and links never flicker to brown */
html body .main-navigation .main-nav ul li[class*="current-menu-"] > a *,
html body .main-navigation .main-nav ul li.current-menu-item > a * {
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
}

/* ==========================================================================
   TYPOGRAPHY & ENCODING — CLEAN GOOGLE FONTS RENDER
   ========================================================================== */

html {
	-webkit-text-size-adjust: 100%;
	text-rendering: optimizeLegibility;
}

body,
.site-header,
.main-navigation,
.main-navigation a,
.site-title a,
.main-title a,
.nav-button,
.portal-nav-link,
.genre-chip,
.hero-action,
.ltr-meta {
	font-family: var(--bn-font-ui) !important;
}

.entry-content,
.entry-content p,
.entry-title,
.poster-card__title,
.poster-card__title a,
.novel-card__title,
.novel-card__title a,
.most-read-item__title,
.hero-featured-title,
.hero-featured-title a,
.home-section-title,
.home-side-title {
	font-family: var(--bn-font-urdu) !important;
}

.entry-content {
	unicode-bidi: isolate;
	word-wrap: break-word;
	overflow-wrap: anywhere;
}

/* ==========================================================================
   HOMEPAGE LAYOUT & UI FIXES (poster ratio, sticky sidebar, Urdu type, hero)
   ========================================================================== */

/* 1. Novel poster aspect ratio — 3:4 cover, full-width, no empty padding */
.poster-card__cover,
.novel-card__cover,
.novels-grid .poster-card__cover,
.novels-grid .novel-card__cover,
.home-poster-grid .poster-card__cover {
	width: 100% !important;
	max-width: 100% !important;
	aspect-ratio: 3 / 4 !important;
	max-height: 280px !important;
	padding: 0 !important;
	margin: 0 !important;
	overflow: hidden !important;
	display: block !important;
	background-color: var(--surface-card, #e2e8f0) !important;
}

.poster-card img,
.poster-card__cover img,
.poster-card__img,
.novel-card__cover img,
.novel-card__cover-img,
.home-poster-grid .poster-card__img,
.novels-grid .featured-image img,
.novels-grid .post-image img,
.novels-grid .wp-block-post-featured-image img,
.post-grid .featured-image img,
.post-grid .post-image img {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	max-height: 280px !important;
	aspect-ratio: 3 / 4 !important;
	object-fit: cover !important;
	object-position: center top !important;
	transform: none !important;
}

.poster-card__cover-link,
.novel-card__cover-link {
	display: block !important;
	width: 100% !important;
	line-height: 0 !important;
}

/* 2. Sticky right sidebar — kills empty gray column gap while scrolling */
.home-main-layout {
	align-items: start !important;
}

.home-secondary,
#right-sidebar,
.sidebar,
.widget-area,
aside.widget-area,
.inside-right-sidebar {
	position: sticky !important;
	top: 80px !important;
	align-self: start !important;
	height: fit-content !important;
	max-height: calc(100vh - 100px);
	overflow-y: auto;
	overflow-x: hidden;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}

/* 3. Urdu typography — Nastaliq on titles & widget headers */
.poster-card__title,
.poster-card__title a,
.novel-card__title,
.novel-card__title a,
.entry-title,
h1.entry-title,
h2.entry-title,
h2.entry-title a,
.page-title,
.widget-title,
.home-section-title,
.home-side-title,
.hero-featured-title,
.hero-featured-title a,
.most-read-item__title {
	font-family: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', 'Jameel Noori Nastaliq', serif !important;
	line-height: 1.8 !important;
}

:root {
	--bn-font-stack: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', 'Jameel Noori Nastaliq', 'Noto Sans Arabic', serif;
	--bn-font-urdu: var(--bn-font-stack);
}

/* 4. Hero / Trending Spotlight — balanced flex/grid with 24px gap */
.trending-spotlight,
.hero-featured-glass,
.hero-featured-glass__inner {
	box-sizing: border-box !important;
}

.hero-featured-glass__inner,
.trending-spotlight {
	display: grid !important;
	grid-template-columns: minmax(140px, 220px) minmax(0, 1fr) !important;
	gap: 24px !important;
	align-items: center !important;
	justify-content: stretch !important;
	width: 100% !important;
}

.hero-featured-copy,
.trending-spotlight .hero-featured-copy {
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-start !important;
	justify-content: center !important;
	gap: 0.75rem !important;
	min-width: 0 !important;
	width: 100% !important;
	flex: 1 1 auto !important;
}

.hero-featured-media {
	width: 100% !important;
	max-width: 220px !important;
	aspect-ratio: 3 / 4 !important;
	max-height: 280px !important;
	align-self: center !important;
}

.hero-featured-glass .hero-featured-cover,
.hero-featured-media img {
	width: 100% !important;
	height: 100% !important;
	max-height: 280px !important;
	object-fit: cover !important;
	object-position: center top !important;
}

.hero-featured-actions {
	display: flex !important;
	flex-wrap: wrap !important;
	gap: 0.65rem !important;
	width: 100% !important;
}

/* 5. Consistent section spacing + mobile responsiveness */
.genre-chips-wrapper,
.category-pills-bar {
	margin-bottom: 24px !important;
}

.latest-releases-section,
.section-banner-card.latest-releases-section,
.home-poster-grid,
.novels-grid-section {
	margin-bottom: 24px !important;
}

.home-main-layout {
	gap: 24px !important;
}

@media screen and (max-width: 900px) {
	.home-secondary,
	#right-sidebar,
	.sidebar,
	.widget-area,
	aside.widget-area,
	.inside-right-sidebar {
		position: static !important;
		top: auto !important;
		max-height: none !important;
		overflow: visible !important;
	}

	.hero-featured-glass__inner,
	.trending-spotlight {
		grid-template-columns: minmax(100px, 120px) minmax(0, 1fr) !important;
		gap: 16px !important;
	}

	.hero-featured-media {
		max-width: 120px !important;
		max-height: 160px !important;
	}

	.hero-featured-glass .hero-featured-cover,
	.hero-featured-media img {
		max-height: 160px !important;
	}
}

@media screen and (max-width: 768px) {
	.poster-card__cover,
	.novel-card__cover {
		max-height: 240px !important;
	}

	.poster-card img,
	.poster-card__img,
	.novel-card__cover-img {
		max-height: 240px !important;
	}

	.genre-chips-wrapper,
	.category-pills-bar,
	.latest-releases-section,
	.section-banner-card.latest-releases-section,
	.home-poster-grid,
	.novels-grid-section {
		margin-bottom: 20px !important;
	}

	.home-main-layout {
		gap: 16px !important;
	}
}

@media screen and (max-width: 480px) {
	.home-poster-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 0.75rem !important;
	}

	.hero-featured-glass__inner,
	.trending-spotlight {
		grid-template-columns: 96px minmax(0, 1fr) !important;
		gap: 12px !important;
	}

	.hero-featured-media {
		max-width: 96px !important;
		max-height: 128px !important;
	}
}

/* ==========================================================================
   HOTFIX — Hero contain + clean poster status badges
   ========================================================================== */

/* 1. Hero Spotlight — full poster visible (no crop/zoom) */
.trending-spotlight img,
.hero-featured-glass img,
.hero-featured-glass .hero-featured-cover,
.hero-featured-media img,
.spotlight-card img {
	width: 100% !important;
	height: auto !important;
	max-width: 100% !important;
	max-height: 280px !important;
	aspect-ratio: auto !important;
	object-fit: contain !important;
	object-position: center center !important;
	transform: none !important;
}

.hero-featured-media,
.trending-spotlight .hero-featured-media,
.spotlight-card .hero-featured-media {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	aspect-ratio: auto !important;
	max-height: 280px !important;
	overflow: hidden !important;
	background: transparent !important;
}

@media screen and (max-width: 900px) {
	.trending-spotlight img,
	.hero-featured-glass img,
	.hero-featured-glass .hero-featured-cover,
	.hero-featured-media img,
	.spotlight-card img {
		max-height: 160px !important;
	}

	.hero-featured-media {
		max-height: 160px !important;
	}
}

@media screen and (max-width: 480px) {
	.trending-spotlight img,
	.hero-featured-glass img,
	.hero-featured-glass .hero-featured-cover,
	.hero-featured-media img,
	.spotlight-card img {
		max-height: 128px !important;
	}

	.hero-featured-media {
		max-height: 128px !important;
	}
}

/* 2. Poster category/status badge — clean floating tag */
.poster-card__status,
.poster-card__status--soft,
.card-category-badge {
	position: absolute !important;
	top: 10px !important;
	left: 10px !important;
	right: auto !important;
	bottom: auto !important;
	z-index: 5 !important;
	display: inline-flex !important;
	align-items: center !important;
	max-width: calc(100% - 20px) !important;
	padding: 6px 12px !important;
	border-radius: 999px !important;
	font-family: var(--bn-font-ui) !important;
	font-size: 0.68rem !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	letter-spacing: 0.02em !important;
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	pointer-events: none !important;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18) !important;
	backdrop-filter: blur(8px) !important;
	-webkit-backdrop-filter: blur(8px) !important;
}

.poster-card__status {
	background: linear-gradient(135deg, var(--bn-accent, #a06838), var(--bn-accent-deep, #8b5a2b)) !important;
	color: #ffffff !important;
	border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

.poster-card__status--soft,
.card-category-badge {
	background: rgba(255, 255, 255, 0.94) !important;
	color: var(--bn-accent-deep, #8b5a2b) !important;
	border: 1px solid rgba(160, 104, 56, 0.35) !important;
}

.poster-card__cover {
	position: relative !important;
}

/* ==========================================================================
   MOBILE ≤768px — Hero banner stack + 2-col poster grid fixes
   ========================================================================== */
@media (max-width: 768px) {
	/* 1. Hero Spotlight — stacked, centered, full-width poster */
	.hero-featured-glass__inner,
	.trending-spotlight {
		display: flex !important;
		flex-direction: column-reverse !important;
		align-items: center !important;
		text-align: center !important;
		gap: 16px !important;
		padding: 16px !important;
		grid-template-columns: none !important;
	}

	.hero-featured-glass {
		padding: 16px !important;
	}

	.hero-featured-media {
		width: 100% !important;
		max-width: 220px !important;
		margin: 0 auto !important;
		aspect-ratio: 3 / 4 !important;
		max-height: none !important;
	}

	.hero-featured-media img,
	.spotlight-card img,
	.hero-featured-glass img,
	.hero-featured-glass .hero-featured-cover {
		width: 100% !important;
		max-width: 220px !important;
		height: auto !important;
		max-height: none !important;
		aspect-ratio: 3 / 4 !important;
		object-fit: cover !important;
		object-position: center top !important;
		margin: 0 auto !important;
		border-radius: 12px !important;
	}

	.hero-featured-copy {
		align-items: center !important;
		text-align: center !important;
		width: 100% !important;
	}

	.hero-featured-actions {
		display: flex !important;
		justify-content: center !important;
		align-items: center !important;
		flex-wrap: wrap !important;
		width: 100% !important;
		gap: 0.65rem !important;
	}

	/* 2. Poster grid cards — clean 2-col column flex */
	.novels-grid,
	.home-poster-grid {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 0.85rem !important;
	}

	.novels-grid .poster-card,
	.home-poster-grid .poster-card,
	.poster-card,
	.novel-card {
		display: flex !important;
		flex-direction: column !important;
		overflow: hidden !important;
		width: 100% !important;
		max-width: 100% !important;
	}

	.poster-card__cover,
	.novel-card__cover {
		width: 100% !important;
		aspect-ratio: 3 / 4 !important;
		max-height: none !important;
		overflow: hidden !important;
	}

	.poster-card__cover img,
	.poster-card__img,
	.novel-card__cover img,
	.novel-card__cover-img {
		width: 100% !important;
		height: auto !important;
		max-height: none !important;
		aspect-ratio: 3 / 4 !important;
		object-fit: cover !important;
		object-position: center top !important;
	}

	.poster-card__status,
	.poster-card__status--soft,
	.card-category-badge {
		top: 6px !important;
		left: 6px !important;
		font-size: 10px !important;
		padding: 2px 8px !important;
		z-index: 5 !important;
		max-width: calc(100% - 12px) !important;
	}
}

/* ==========================================================================
   MOBILE ≤768px FINAL OVERRIDES — Hero order + uncropped posters
   ========================================================================== */
@media (max-width: 768px) {
	/* 1. Hero — image first (column, not reverse), fully visible poster */
	.hero-featured-glass__inner,
	.trending-spotlight {
		display: flex !important;
		flex-direction: column !important;
		align-items: center !important;
		text-align: center !important;
		gap: 16px !important;
		padding: 16px !important;
		grid-template-columns: none !important;
	}

	.hero-featured-media {
		width: 100% !important;
		max-width: 260px !important;
		margin: 0 auto !important;
		aspect-ratio: unset !important;
		max-height: none !important;
		background: transparent !important;
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
	}

	.hero-featured-media img,
	.spotlight-card img,
	.hero-featured-glass img,
	.hero-featured-glass .hero-featured-cover {
		width: 100% !important;
		max-width: 260px !important;
		height: auto !important;
		max-height: none !important;
		object-fit: contain !important;
		aspect-ratio: unset !important;
		object-position: center center !important;
		margin: 0 auto 12px auto !important;
		border-radius: 12px !important;
	}

	.hero-featured-copy {
		align-items: center !important;
		text-align: center !important;
		width: 100% !important;
	}

	.hero-featured-actions {
		justify-content: center !important;
	}

	/* 2. Grid posters — contain (no zoom/crop), natural 3:4 frame */
	.poster-card__cover,
	.novel-card__cover {
		aspect-ratio: 3 / 4 !important;
		width: 100% !important;
		overflow: hidden !important;
		max-height: none !important;
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
		background: rgba(0, 0, 0, 0.1) !important;
	}

	.poster-card__cover img,
	.poster-card__img,
	.novel-card__cover img,
	.novel-card__cover-img,
	.novels-grid img,
	.home-poster-grid .poster-card__img {
		width: 100% !important;
		height: 100% !important;
		max-height: none !important;
		object-fit: contain !important;
		object-position: center center !important;
		aspect-ratio: unset !important;
		background: rgba(0, 0, 0, 0.1) !important;
		transform: none !important;
	}
}

/* ==========================================================================
   DESKTOP — Right sidebar full visibility (no clip / no fixed height)
   ========================================================================== */

/* 1. Remove overflow & fixed height restrictions */
#right-sidebar,
.home-secondary,
.sidebar,
.widget-area,
aside.widget-area,
.inside-right-sidebar {
	height: auto !important;
	max-height: none !important;
	overflow: visible !important;
	overflow-x: visible !important;
	overflow-y: visible !important;
}

/* 2. Sticky sidebar — full widget visibility on desktop */
@media (min-width: 769px) {
	.home-main-layout {
		align-items: flex-start !important;
	}

	#right-sidebar,
	.home-secondary {
		position: sticky !important;
		top: 20px !important;
		align-self: flex-start !important;
		height: auto !important;
		max-height: none !important;
		overflow: visible !important;
	}

	.sidebar,
	.widget-area,
	aside.widget-area,
	.inside-right-sidebar {
		position: sticky !important;
		top: 20px !important;
		align-self: flex-start !important;
		height: auto !important;
		max-height: none !important;
		overflow: visible !important;
	}
}

/* 3. Widget inner spacing — shadows/edges never clipped */
.home-secondary .widget,
.home-secondary .widget_text,
.home-secondary .most-discussed-widget,
.home-secondary .home-side-panel,
.home-secondary .section-banner-card,
.home-secondary .most-discussed-section,
#right-sidebar .widget,
#right-sidebar .widget_text,
.sidebar .widget,
.sidebar .widget_text,
.widget-area .widget,
.widget-area .widget_text,
.most-discussed-widget {
	overflow: visible !important;
	margin-bottom: 24px !important;
}

/* ==========================================================================
   FANCY UI/UX — hover glow, progress, ticker, mood pills, PDF modal, skeleton
   ========================================================================== */

/* 1. Card hover glow & micro-tilt */
.poster-card,
.novel-card,
.home-poster-grid .poster-card,
.novels-grid .novel-card {
	transition:
		transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
		box-shadow 0.3s ease !important;
	will-change: transform;
	transform-style: preserve-3d;
}

.poster-card:hover,
.novel-card:hover,
.home-poster-grid .poster-card:hover,
.novels-grid .novel-card:hover {
	transform: translateY(-8px) scale(1.02) !important;
	box-shadow:
		0 12px 28px rgba(124, 58, 237, 0.25),
		0 4px 12px rgba(99, 102, 241, 0.12) !important;
	z-index: 2;
}

@media (hover: none), (prefers-reduced-motion: reduce) {
	.poster-card:hover,
	.novel-card:hover {
		transform: none !important;
	}
}

/* 2. Reading progress bar — brand amber gradient */
.reading-progress-bar {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	height: 3px !important;
	width: 0;
	z-index: 9999 !important;
	pointer-events: none !important;
	background: linear-gradient(90deg, var(--bn-accent, #a06838), var(--bn-accent-deep, #8b5a2b), #d97706) !important;
	box-shadow:
		0 0 10px rgba(160, 104, 56, 0.65),
		0 0 18px rgba(139, 90, 43, 0.45) !important;
	transition: width 0.1s linear !important;
}

/* 3. Running announcement ticker */
.bn-ticker {
	position: relative;
	margin: 0 0 1.25rem;
	padding: 0.55rem 0;
	overflow: hidden;
	border-radius: 14px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(255, 255, 255, 0.05);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.bn-ticker__track {
	display: flex;
	width: max-content;
	gap: 3rem;
	animation: bnMarquee 28s linear infinite;
	will-change: transform;
}

.bn-ticker:hover .bn-ticker__track {
	animation-play-state: paused;
}

.bn-ticker__item {
	flex: 0 0 auto;
	white-space: nowrap;
	font-family: var(--bn-font-ui);
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: #c7d2fe;
	text-shadow: 0 0 12px rgba(129, 140, 248, 0.35);
}

body.theme-cream .bn-ticker__item,
body.theme-coffee .bn-ticker__item,
body.theme-rose .bn-ticker__item {
	color: var(--bn-accent-deep, #4f46e5);
}

@keyframes bnMarquee {
	0% { transform: translateX(0); }
	100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
	.bn-ticker__track {
		animation: none;
		flex-wrap: wrap;
		width: 100%;
		justify-content: center;
		gap: 0.75rem;
	}
}

/* 4. Genre / category pills — brand amber border (mood pills removed) */
.genre-chip,
.category-pill {
	position: relative !important;
	isolation: isolate;
	border: 1px solid transparent !important;
	background:
		linear-gradient(var(--bn-surface, #fff), var(--bn-surface, #fff)) padding-box,
		linear-gradient(135deg, var(--bn-accent, #a06838), var(--bn-accent-deep, #8b5a2b)) border-box !important;
	box-shadow: 0 4px 14px rgba(160, 104, 56, 0.12) !important;
	transition:
		transform 0.22s ease,
		box-shadow 0.22s ease,
		color 0.22s ease,
		background 0.22s ease !important;
}

.genre-chip:hover,
.category-pill:hover {
	transform: translateY(-2px) scale(1.03) !important;
	box-shadow:
		0 0 0 1px rgba(160, 104, 56, 0.35),
		0 8px 22px rgba(139, 90, 43, 0.22) !important;
	color: var(--bn-accent-deep, #8b5a2b) !important;
}

.genre-chip.is-active,
.genre-chip.active,
.category-pill.is-active {
	background: var(--bn-gradient-cta) !important;
	border-color: transparent !important;
	color: #fff !important;
	box-shadow:
		0 8px 24px rgba(160, 104, 56, 0.4),
		0 0 18px rgba(160, 104, 56, 0.25) !important;
}

.mood-filters,
.mood-pill {
	display: none !important;
}

/* 5. Premium glassmorphic PDF download overlay */
.bn-pdf-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
	background: rgba(15, 23, 42, 0.45);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.bn-pdf-overlay.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.bn-pdf-overlay[hidden] {
	display: none !important;
}

.bn-pdf-overlay.is-open[hidden] {
	display: flex !important;
}

.bn-pdf-overlay__card {
	width: min(360px, 100%);
	padding: 1.75rem 1.5rem;
	border-radius: 18px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	background: rgba(255, 255, 255, 0.12);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	box-shadow:
		0 24px 48px rgba(15, 23, 42, 0.35),
		inset 0 1px 0 rgba(255, 255, 255, 0.2);
	text-align: center;
	color: #f8fafc;
}

.bn-pdf-overlay__spinner {
	width: 42px;
	height: 42px;
	margin: 0 auto 1rem;
	border-radius: 50%;
	border: 3px solid rgba(255, 255, 255, 0.2);
	border-top-color: #a855f7;
	border-right-color: #6366f1;
	animation: bnSpin 0.85s linear infinite;
}

.bn-pdf-overlay__title {
	margin: 0 0 0.35rem;
	font-family: var(--bn-font-ui);
	font-size: 1.05rem;
	font-weight: 700;
}

.bn-pdf-overlay__countdown {
	margin: 0.35rem 0 0.55rem;
	font-family: var(--bn-font-ui);
	font-size: 2.4rem;
	font-weight: 800;
	letter-spacing: 0.02em;
	line-height: 1;
	color: #fde68a;
	text-shadow: 0 0 18px rgba(234, 179, 8, 0.45);
}

.bn-pdf-overlay__sub {
	margin: 0;
	font-family: var(--bn-font-ui);
	font-size: 0.82rem;
	opacity: 0.8;
}

.bn-pdf-overlay__progress {
	display: block;
	width: 100%;
	height: 6px;
	margin-top: 1rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.15);
	overflow: hidden;
}

.bn-pdf-overlay__progress-bar {
	display: block;
	height: 100%;
	width: 0%;
	border-radius: inherit;
	background: linear-gradient(90deg, #a855f7, #eab308);
	transition: none;
}

@keyframes bnSpin {
	to { transform: rotate(360deg); }
}

/* 6. Skeleton shimmer loading */
@keyframes shimmer {
	0% { background-position: -200% 0; }
	100% { background-position: 200% 0; }
}

.poster-card__cover.is-loading,
.novel-card__cover.is-loading,
.hero-featured-media.is-loading,
.bn-skeleton {
	position: relative;
	overflow: hidden !important;
	background: linear-gradient(
		90deg,
		rgba(226, 232, 240, 0.55) 0%,
		rgba(248, 250, 252, 0.95) 45%,
		rgba(226, 232, 240, 0.55) 100%
	) !important;
	background-size: 200% 100% !important;
	animation: shimmer 1.35s ease-in-out infinite !important;
}

.poster-card__cover.is-loading img,
.novel-card__cover.is-loading img,
.hero-featured-media.is-loading img {
	opacity: 0 !important;
	transition: opacity 0.35s ease;
}

.poster-card__cover:not(.is-loading) img,
.novel-card__cover:not(.is-loading) img,
.hero-featured-media:not(.is-loading) img {
	opacity: 1;
}

/* 7. Custom glowing cursor — permanently disabled */
#bn-cursor-dot,
.bn-cursor-dot {
	display: none !important;
	visibility: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

body.has-bn-cursor,
body.has-bn-cursor a,
body.has-bn-cursor button,
body.has-bn-cursor input,
body.has-bn-cursor textarea,
body.has-bn-cursor select,
body.has-bn-cursor label,
body.has-bn-cursor [role="button"] {
	cursor: auto !important;
}

@media (max-width: 768px) {
	.poster-card:hover,
	.novel-card:hover {
		transform: none !important;
		box-shadow: var(--bn-shadow, 0 4px 20px -2px rgba(0, 0, 0, 0.05)) !important;
	}

	.bn-ticker {
		margin-bottom: 1rem;
		border-radius: 12px;
	}

	.bn-ticker__item {
		font-size: 0.75rem;
	}

}

/* ==========================================================================
   3D NOVEL COVER FLOW CAROUSEL — compact, cover-first layout
   ========================================================================== */
.bn-coverflow {
	position: relative;
	isolation: isolate;
	margin: 0 0 1.25rem;
	padding: 0.85rem 1rem 24px;
	max-height: none !important;
	height: auto !important;
	border-radius: 18px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: linear-gradient(145deg, rgba(30, 41, 59, 0.72), rgba(15, 23, 42, 0.55));
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	box-shadow: 0 14px 36px rgba(15, 23, 42, 0.28);
	overflow: visible;
	box-sizing: border-box;
}

.bn-coverflow__glow {
	position: absolute;
	inset: -40% auto auto 25%;
	width: 50%;
	height: 80%;
	background: radial-gradient(circle, rgba(168, 85, 247, 0.22), transparent 70%);
	pointer-events: none;
	z-index: 0;
}

.bn-coverflow__header {
	position: relative;
	z-index: 2;
	text-align: center;
	margin: 0 0 0.4rem;
}

.bn-coverflow__eyebrow {
	display: inline-block;
	padding: 0.2rem 0.65rem;
	border-radius: 999px;
	background: rgba(168, 85, 247, 0.18);
	border: 1px solid rgba(234, 179, 8, 0.35);
	color: #e9d5ff;
	font-family: var(--bn-font-ui);
	font-size: 0.65rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.bn-coverflow__heading {
	display: none;
}

/* Stage = covers only */
.bn-coverflow__stage {
	position: relative;
	z-index: 1;
	height: 280px !important;
	max-height: 280px !important;
	perspective: 1000px;
	perspective-origin: 50% 50%;
	touch-action: pan-y;
	user-select: none;
	-webkit-user-select: none;
	overflow: visible;
}

.bn-coverflow__track {
	position: relative;
	width: 100%;
	height: 100%;
	transform-style: preserve-3d;
}

.bn-coverflow__card {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 180px;
	height: 270px;
	margin: 0;
	padding: 0;
	transform-origin: center center;
	transform: translate(-50%, -50%) scale(0.7);
	opacity: 0;
	filter: blur(1.5px);
	pointer-events: none;
	transition:
		transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
		opacity 0.4s ease,
		filter 0.4s ease,
		box-shadow 0.4s ease;
	z-index: 0;
	border-radius: 12px;
	background: rgba(15, 23, 42, 0.4);
	border: 1px solid rgba(255, 255, 255, 0.1);
	overflow: hidden;
	will-change: transform, opacity;
	box-sizing: border-box;
}

.bn-coverflow__card.is-prev {
	transform: translate(-50%, -50%) translateX(-52%) rotateY(20deg) scale(0.8);
	opacity: 0.6;
	filter: blur(0.8px);
	pointer-events: auto;
	z-index: 2;
	cursor: pointer;
}

.bn-coverflow__card.is-next {
	transform: translate(-50%, -50%) translateX(52%) rotateY(-20deg) scale(0.8);
	opacity: 0.6;
	filter: blur(0.8px);
	pointer-events: auto;
	z-index: 2;
	cursor: pointer;
}

.bn-coverflow__card.is-active {
	transform: translate(-50%, -50%) translateX(0) rotateY(0deg) scale(1.05);
	opacity: 1;
	filter: none;
	pointer-events: auto;
	z-index: 5;
	box-shadow:
		0 10px 40px rgba(168, 85, 247, 0.4),
		0 0 20px rgba(234, 179, 8, 0.22);
}

.bn-coverflow__card.is-far {
	transform: translate(-50%, -50%) scale(0.6);
	opacity: 0;
	filter: blur(2px);
	pointer-events: none;
	z-index: 0;
}

.bn-coverflow__cover-link {
	display: block;
	width: 100%;
	height: 100%;
	line-height: 0;
	text-decoration: none;
}

.bn-coverflow__cover {
	width: 100%;
	height: 100%;
	aspect-ratio: 2 / 3;
	overflow: hidden;
	border-radius: 12px;
	background: rgba(0, 0, 0, 0.35);
	display: flex;
	align-items: center;
	justify-content: center;
}

.bn-coverflow__img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain !important;
	object-position: center center !important;
	border-radius: 12px;
	transform: none !important;
}

/* Glassmorphic details panel BELOW covers */
.bn-coverflow__meta-wrap {
	position: relative;
	z-index: 3;
	margin: 16px auto 0 !important;
	max-width: 560px;
	min-height: 0;
	max-height: none !important;
	height: auto !important;
	overflow: visible !important;
}

.bn-coverflow__meta,
.bn-coverflow_meta {
	display: none !important;
	opacity: 0 !important;
	pointer-events: none !important;
	visibility: hidden;
	padding: 0.85rem 1rem 1rem;
	border-radius: 14px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.2);
	text-align: center;
	overflow: visible !important;
	max-height: none !important;
	height: auto !important;
}

.bn-coverflow__meta:not(.is-active),
.bn-coverflow_meta:not(.is-active) {
	display: none !important;
	opacity: 0 !important;
	pointer-events: none !important;
	visibility: hidden !important;
}

.bn-coverflow__meta.is-active,
.bn-coverflow__meta[data-active="true"].is-active,
.bn-coverflow_meta.is-active {
	display: block !important;
	opacity: 1 !important;
	pointer-events: auto !important;
	visibility: visible !important;
}

.bn-coverflow__meta[hidden]:not(.is-active) {
	display: none !important;
}

.bn-coverflow__meta.is-active[hidden] {
	display: block !important;
}

.bn-coverflow__readtime {
	display: inline-block;
	margin-bottom: 0.25rem;
	padding: 0.12rem 0.45rem;
	border-radius: 999px;
	background: rgba(234, 179, 8, 0.18);
	color: #fde68a;
	font-size: 0.65rem;
	font-weight: 700;
}

.bn-coverflow__title {
	margin: 0 0 0.2rem;
	font-size: 18px !important;
	font-weight: 700;
	line-height: 1.55 !important;
	color: #f8fafc !important;
	max-width: 100%;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.bn-coverflow__title a {
	color: #f8fafc !important;
	text-decoration: none !important;
}

.bn-coverflow__author {
	margin: 0 0 0.3rem;
	font-size: 12px;
	color: #c4b5fd;
	opacity: 0.9;
}

.bn-coverflow__excerpt {
	margin: 0 0 0.55rem;
	font-size: 13px !important;
	line-height: 1.55 !important;
	color: var(--bn-muted, #1e293b) !important;
	-webkit-text-fill-color: var(--bn-muted, #1e293b) !important;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	opacity: 1 !important;
}

.bn-coverflow__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	align-items: center;
	justify-content: center;
	margin-top: 0.15rem;
	padding-bottom: 0.15rem;
	overflow: visible !important;
}

.bn-coverflow__actions .hero-action {
	padding: 0.4rem 0.8rem !important;
	font-size: 0.75rem !important;
	min-height: 2.15rem !important;
	flex: 0 0 auto;
}

.bn-coverflow__controls {
	position: relative;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.7rem;
	margin-top: 0.55rem;
}

.bn-coverflow__nav {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.2);
	background: rgba(255, 255, 255, 0.08);
	color: #f8fafc;
	font-size: 1.35rem;
	line-height: 1;
	cursor: pointer;
	backdrop-filter: blur(8px);
	transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.bn-coverflow__nav:hover,
.bn-coverflow__nav:focus-visible {
	background: linear-gradient(135deg, #7c3aed, #a855f7);
	box-shadow: 0 0 16px rgba(168, 85, 247, 0.45);
	transform: scale(1.05);
	outline: none;
}

.bn-coverflow__dots {
	display: flex;
	align-items: center;
	gap: 0.35rem;
}

.bn-coverflow__dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.28);
	cursor: pointer;
	transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.bn-coverflow__dot.is-active {
	background: linear-gradient(135deg, #a855f7, #eab308);
	transform: scale(1.2);
	box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

@media (max-width: 768px) {
	.bn-coverflow {
		padding: 0.7rem 0 20px !important;
		max-height: none !important;
		height: auto !important;
		border-radius: 14px;
		overflow: hidden !important;
		width: 100% !important;
		max-width: 100% !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}

	.bn-coverflow__header {
		padding: 0 0.75rem;
	}

	.bn-coverflow__stage {
		height: clamp(260px, 78vw, 360px) !important;
		max-height: none !important;
		perspective: 900px;
		width: 100%;
	}

	.bn-coverflow__card {
		width: min(78vw, 280px);
		height: auto;
		aspect-ratio: 2 / 3;
		background: rgba(15, 23, 42, 0.55) !important;
		border-color: rgba(255, 255, 255, 0.08) !important;
		overflow: hidden;
	}

	.bn-coverflow__cover {
		background: rgba(15, 23, 42, 0.35) !important;
		overflow: hidden !important;
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
	}

	.bn-coverflow__img {
		width: 100% !important;
		height: 100% !important;
		max-width: 100% !important;
		max-height: 100% !important;
		object-fit: contain !important;
		object-position: center center !important;
		transform: none !important;
	}

	.bn-coverflow__card.is-prev {
		transform: translate(-50%, -50%) translateX(-58%) rotateY(22deg) scale(0.72);
		opacity: 0.35;
	}

	.bn-coverflow__card.is-next {
		transform: translate(-50%, -50%) translateX(58%) rotateY(-22deg) scale(0.72);
		opacity: 0.35;
	}

	.bn-coverflow__card.is-active {
		width: min(88vw, 320px);
		transform: translate(-50%, -50%) scale(1);
		box-shadow:
			0 14px 36px rgba(0, 0, 0, 0.45),
			0 0 24px rgba(168, 85, 247, 0.35);
	}

	.bn-coverflow__meta-wrap {
		min-height: 0 !important;
		max-height: none !important;
		margin-top: 14px !important;
		max-width: 100%;
		padding: 0 0.75rem;
		overflow: visible !important;
		box-sizing: border-box;
	}

	.bn-coverflow__meta.is-active,
	.bn-coverflow__meta[data-active="true"] {
		display: block !important;
		height: auto !important;
		max-height: none !important;
		padding: 0.75rem 0.8rem 0.9rem;
	}

	.bn-coverflow__controls {
		padding: 0 0.75rem;
	}

	.bn-coverflow__title {
		font-size: 16px !important;
	}

	.bn-coverflow__excerpt {
		font-size: 12px !important;
	}

	.bn-coverflow__nav {
		width: 34px;
		height: 34px;
	}
}

@media (max-width: 480px) {
	.bn-coverflow {
		max-height: none !important;
	}

	.bn-coverflow__stage {
		height: clamp(240px, 85vw, 320px) !important;
		max-height: none !important;
	}

	.bn-coverflow__card {
		width: min(82vw, 260px);
		height: auto;
		aspect-ratio: 2 / 3;
	}

	.bn-coverflow__card.is-active {
		width: min(92vw, 300px);
	}

	.bn-coverflow__card.is-prev {
		transform: translate(-50%, -50%) translateX(-62%) rotateY(24deg) scale(0.68);
		opacity: 0.28;
	}

	.bn-coverflow__card.is-next {
		transform: translate(-50%, -50%) translateX(62%) rotateY(-24deg) scale(0.68);
		opacity: 0.28;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bn-coverflow__card {
		transition: opacity 0.2s ease !important;
	}
}

/* ==========================================================================
   Desktop sticky + mobile fixed header (mobile rules override to fixed)
   ========================================================================== */
@media screen and (min-width: 769px) {
	.site-header,
	header#masthead {
		position: sticky !important;
		top: 0 !important;
		z-index: 1000 !important;
	}

	.nav-below-header {
		position: sticky !important;
		top: 0 !important;
		z-index: 999 !important;
		background: rgba(255, 255, 255, 0.94) !important;
		backdrop-filter: blur(12px);
		-webkit-backdrop-filter: blur(12px);
	}

	body.theme-coffee .nav-below-header,
	body.theme-indigo .nav-below-header,
	body.theme-emerald .nav-below-header {
		background: rgba(30, 41, 59, 0.94) !important;
	}
}

@media screen and (max-width: 768px) {
	#masthead,
	header#masthead,
	.site-header,
	.nav-below-header {
		position: fixed !important;
		top: 0 !important;
		left: 0 !important;
		right: 0 !important;
		width: 100% !important;
		z-index: 99999 !important;
	}

	.bn-pdf-overlay {
		z-index: 1000001 !important;
	}
}

/* ==========================================================================
   FINALIZE v2.5.5 � Dark contrast + desktop image fit + compact mobile bar
   (Desktop image rules ONLY; mobile =768px layouts left untouched)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DARK THEME � high-contrast text across all surfaces
   -------------------------------------------------------------------------- */
body.theme-coffee {
	--bn-text: #f8f1e6 !important;
	--bn-muted: #e8d5b8 !important;
	--bn-surface: #2b211b !important;
	--bn-bg: #1a1614 !important;
	color: #f8f1e6 !important;
}

body.theme-coffee p,
body.theme-coffee .entry-content,
body.theme-coffee .entry-summary,
body.theme-coffee .hero-featured-excerpt,
body.theme-coffee .hero-excerpt,
body.theme-coffee .bn-coverflow__excerpt,
body.theme-coffee .bn-ticker__item,
body.theme-coffee .home-section-sub,
body.theme-coffee .poster-card__meta,
body.theme-coffee .novel-card__meta,
body.theme-coffee .most-read-item__meta,
body.theme-coffee .entry-meta,
body.theme-coffee .ltr-meta,
body.theme-coffee .posted-on,
body.theme-coffee .byline,
body.theme-coffee .cat-links,
body.theme-coffee .tags-links,
body.theme-coffee .widget,
body.theme-coffee .widget p,
body.theme-coffee .site-footer,
body.theme-coffee .site-info,
body.theme-coffee .footer-widgets,
body.theme-coffee .comment-content,
body.theme-coffee .quick-search-empty,
body.theme-coffee .quick-search-hint {
	color: #e8d5b8 !important;
}

body.theme-coffee h1,
body.theme-coffee h2,
body.theme-coffee h3,
body.theme-coffee h4,
body.theme-coffee .entry-title,
body.theme-coffee .entry-title a,
body.theme-coffee .page-title,
body.theme-coffee .home-section-title,
body.theme-coffee .home-side-title,
body.theme-coffee .widget-title,
body.theme-coffee .hero-featured-title,
body.theme-coffee .hero-featured-title a,
body.theme-coffee .poster-card__title,
body.theme-coffee .poster-card__title a,
body.theme-coffee .novel-card__title,
body.theme-coffee .novel-card__title a,
body.theme-coffee .bn-coverflow__title,
body.theme-coffee .bn-coverflow__title a,
body.theme-coffee .most-read-item__title,
body.theme-coffee .most-read-item__title a,
body.theme-coffee .wp-block-post-title,
body.theme-coffee .wp-block-post-title a {
	color: #fff8ee !important;
}

body.theme-coffee a:not(.hero-action):not(.genre-chip):not(.novel-card__cta):not(.novel-cta-btn):not(.novel-hero-cta):not(.button):not(.wp-block-button__link):not(.download-btn):not(.download-button):not(.download-link):not(.theme-btn):not(.mrb-btn) {
	color: #f0d9b5 !important;
}

body.theme-coffee .genre-chip {
	background: #342820 !important;
	border-color: rgba(212, 184, 150, 0.45) !important;
	color: #fff8ee !important;
}

body.theme-coffee .poster-card,
body.theme-coffee .novel-poster-card,
body.theme-coffee .novel-card,
body.theme-coffee .home-side-panel,
body.theme-coffee .hero-featured-glass,
body.theme-coffee .bn-coverflow,
body.theme-coffee .inside-article,
body.theme-coffee .sidebar .widget {
	background: #2b211b !important;
	border-color: rgba(184, 138, 93, 0.35) !important;
	color: #f8f1e6 !important;
}

body.theme-coffee .poster-card__body,
body.theme-coffee .novel-card__body {
	background: #2b211b !important;
	color: #f8f1e6 !important;
}

body.theme-coffee .poster-card__status--soft,
body.theme-coffee .card-category-badge {
	background: rgba(52, 40, 32, 0.96) !important;
	color: #fff8ee !important;
	border-color: rgba(212, 184, 150, 0.5) !important;
}

body.theme-coffee .bn-coverflow__meta,
body.theme-coffee .bn-coverflow_meta,
body.theme-coffee .bn-coverflow__readtime,
body.theme-coffee .bn-coverflow__eyebrow {
	color: #f8f1e6 !important;
}

body.theme-coffee .bn-coverflow__excerpt {
	color: #e8d5b8 !important;
}

body.theme-coffee .hero-featured-tag {
	background: rgba(160, 104, 56, 0.35) !important;
	border-color: rgba(212, 184, 150, 0.55) !important;
	color: #fff8ee !important;
}

body.theme-coffee .main-navigation .main-nav ul li a {
	color: #f8f1e6 !important;
}

body.theme-coffee .pagination a,
body.theme-coffee .pagination .page-numbers,
body.theme-coffee .nav-links a {
	color: #f0d9b5 !important;
	border-color: rgba(184, 138, 93, 0.4) !important;
}

body.theme-coffee .pagination .current {
	background: #a06838 !important;
	color: #ffffff !important;
}

body.theme-coffee #comments input,
body.theme-coffee .comment-respond input,
body.theme-coffee .comment-respond textarea,
body.theme-coffee .comments-area input,
body.theme-coffee .comments-area textarea {
	background: #1a1614 !important;
	color: #f8f1e6 !important;
	border-color: rgba(184, 138, 93, 0.45) !important;
}

body.theme-coffee .quick-search-panel {
	background: #2b211b !important;
	color: #f8f1e6 !important;
	border-color: rgba(184, 138, 93, 0.4) !important;
}

body.theme-coffee .quick-search-heading,
body.theme-coffee .quick-search-item {
	color: #fff8ee !important;
}

body.theme-coffee .quick-search-input {
	background: #1a1614 !important;
	color: #f8f1e6 !important;
	border-color: rgba(184, 138, 93, 0.45) !important;
}

body.theme-coffee .quick-search-item:hover,
body.theme-coffee .quick-search-item:focus {
	background: rgba(160, 104, 56, 0.28) !important;
	color: #ffffff !important;
}

/* Soft night / legacy dark class parity */
html.dark-theme,
body.dark-theme {
	--bn-text: #f8f1e6;
	--bn-muted: #e8d5b8;
	color: #f8f1e6;
}

/* --------------------------------------------------------------------------
   2. DESKTOP ONLY � uncropped banners & poster thumbnails
   Mobile =768px rules above are intentionally not modified.
   -------------------------------------------------------------------------- */
@media screen and (min-width: 769px) {
	/* Hero / spotlight banners */
	.hero-featured-media,
	.trending-spotlight .hero-featured-media,
	.spotlight-card .hero-featured-media {
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
		max-width: 240px !important;
		max-height: 320px !important;
		aspect-ratio: auto !important;
		overflow: hidden !important;
		background: transparent !important;
	}

	.trending-spotlight img,
	.hero-featured-glass img,
	.hero-featured-glass .hero-featured-cover,
	.hero-featured-media img,
	.spotlight-card img {
		width: 100% !important;
		height: auto !important;
		max-width: 240px !important;
		max-height: 320px !important;
		aspect-ratio: auto !important;
		object-fit: contain !important;
		object-position: center center !important;
		transform: none !important;
	}

	/* Novel poster / card thumbnails */
	.poster-card__cover,
	.novel-card__cover,
	.novels-grid .poster-card__cover,
	.novels-grid .novel-card__cover,
	.home-poster-grid .poster-card__cover {
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
		aspect-ratio: 2 / 3 !important;
		max-height: 320px !important;
		overflow: hidden !important;
		background-color: rgba(0, 0, 0, 0.06) !important;
	}

	.poster-card img,
	.poster-card__cover img,
	.poster-card__img,
	.novel-card__cover img,
	.novel-card__cover-img,
	.home-poster-grid .poster-card__img,
	.novels-grid .featured-image img,
	.novels-grid .post-image img,
	.novels-grid .wp-block-post-featured-image img {
		width: 100% !important;
		height: 100% !important;
		max-width: 100% !important;
		max-height: 100% !important;
		aspect-ratio: auto !important;
		object-fit: contain !important;
		object-position: center center !important;
		transform: none !important;
	}

	/* Coverflow stage � room for full covers without cropping */
	.bn-coverflow__stage {
		height: 320px !important;
		max-height: 320px !important;
	}

	.bn-coverflow__card {
		width: 200px;
		height: 300px;
	}

	.bn-coverflow__img {
		object-fit: contain !important;
		object-position: center center !important;
	}
}

/* --------------------------------------------------------------------------
   3. COMPACT MOBILE floating theme switcher + resume chip
   -------------------------------------------------------------------------- */
@media screen and (max-width: 768px) {
	:root {
		--bn-floating-clearance-mobile: 5rem;
		--bn-floating-clearance: 5rem;
	}

	.theme-switcher-bar {
		bottom: max(10px, env(safe-area-inset-bottom, 0px)) !important;
		right: 10px !important;
		gap: 3px !important;
		padding: 3px !important;
		border-radius: 10px !important;
		box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28) !important;
	}

	.theme-btn {
		min-height: 1.7rem !important;
		padding: 0.28rem 0.55rem !important;
		border-radius: 8px !important;
		font-size: 0.68rem !important;
		line-height: 1.1 !important;
		letter-spacing: 0 !important;
	}

	.resume-reading-chip {
		left: 10px !important;
		bottom: max(10px, env(safe-area-inset-bottom, 0px)) !important;
		max-width: min(200px, calc(100vw - 9.5rem)) !important;
	}

	.resume-reading-chip a {
		padding: 0.4rem 0.65rem !important;
		border-radius: 10px !important;
		gap: 0.05rem !important;
	}

	.resume-reading-chip__label {
		font-size: 0.58rem !important;
	}

	.resume-reading-chip__title {
		font-size: 0.75rem !important;
		-webkit-line-clamp: 1 !important;
	}

	/* Clearance matches compact bar height */
	#page,
	.site {
		padding-bottom: calc(var(--bn-floating-clearance-mobile) + env(safe-area-inset-bottom, 0px)) !important;
	}

	body.single-post #page,
	body.single-post .site {
		padding-bottom: calc(4.25rem + var(--bn-floating-clearance-mobile) + env(safe-area-inset-bottom, 0px)) !important;
	}

	body.single-post .theme-switcher-bar,
	body.single-post .resume-reading-chip {
		bottom: calc(3.85rem + env(safe-area-inset-bottom, 0px)) !important;
	}
}

/* ==========================================================================
   HOTFIX � Dark theme excerpt / description contrast (coverflow + cards)
   ========================================================================== */
html.theme-coffee .bn-coverflow__excerpt,
html.theme-coffee .bn-coverflow__excerpt.urdu-text,
html.theme-coffee p.bn-coverflow__excerpt,
html.theme-coffee .bn-coverflow__meta p,
html.theme-coffee .bn-coverflow__meta .bn-coverflow__excerpt,
html.theme-coffee .bn-coverflow__author,
html.theme-coffee .bn-coverflow__readtime,
html.theme-coffee .hero-featured-excerpt,
html.theme-coffee .hero-excerpt,
html.theme-coffee .poster-card__meta,
html.theme-coffee .novel-card__meta,
html.theme-coffee .novel-card__excerpt,
html.theme-coffee .entry-summary,
html.theme-coffee .entry-summary p,
body.theme-coffee .bn-coverflow__excerpt,
body.theme-coffee .bn-coverflow__excerpt.urdu-text,
body.theme-coffee p.bn-coverflow__excerpt,
body.theme-coffee .bn-coverflow__meta p,
body.theme-coffee .bn-coverflow__meta .bn-coverflow__excerpt,
body.theme-coffee .bn-coverflow__author,
body.theme-coffee .bn-coverflow__readtime,
body.theme-coffee .hero-featured-excerpt,
body.theme-coffee .hero-excerpt,
body.theme-coffee .poster-card__meta,
body.theme-coffee .novel-card__meta,
body.theme-coffee .novel-card__excerpt,
body.theme-coffee .entry-summary,
body.theme-coffee .entry-summary p,
html.dark-theme .bn-coverflow__excerpt,
body.dark-theme .bn-coverflow__excerpt,
html.dark-theme .hero-featured-excerpt,
body.dark-theme .hero-featured-excerpt {
	color: #f3ebd9 !important;
	-webkit-text-fill-color: #f3ebd9 !important;
	opacity: 1 !important;
}

html.theme-coffee .bn-coverflow__meta,
html.theme-coffee .bn-coverflow__meta.is-active,
body.theme-coffee .bn-coverflow__meta,
body.theme-coffee .bn-coverflow__meta.is-active {
	color: #f3ebd9 !important;
	background: rgba(43, 33, 27, 0.92) !important;
	border-color: rgba(184, 138, 93, 0.4) !important;
}

html.theme-coffee .bn-coverflow__title,
html.theme-coffee .bn-coverflow__title a,
body.theme-coffee .bn-coverflow__title,
body.theme-coffee .bn-coverflow__title a {
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
}

/* ==========================================================================
   HOTFIX � Light theme spotlight excerpt contrast (coverflow + cards)
   ========================================================================== */
html.theme-cream .bn-coverflow,
html.theme-rose .bn-coverflow,
html.theme-nordic .bn-coverflow,
body.theme-cream .bn-coverflow,
body.theme-rose .bn-coverflow,
body.theme-nordic .bn-coverflow {
	background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(244, 238, 230, 0.92)) !important;
	border-color: rgba(45, 36, 30, 0.12) !important;
	box-shadow: 0 14px 36px rgba(45, 36, 30, 0.1) !important;
}

html.theme-cream .bn-coverflow__meta,
html.theme-cream .bn-coverflow__meta.is-active,
html.theme-rose .bn-coverflow__meta,
html.theme-rose .bn-coverflow__meta.is-active,
html.theme-nordic .bn-coverflow__meta,
html.theme-nordic .bn-coverflow__meta.is-active,
body.theme-cream .bn-coverflow__meta,
body.theme-cream .bn-coverflow__meta.is-active,
body.theme-rose .bn-coverflow__meta,
body.theme-rose .bn-coverflow__meta.is-active,
body.theme-nordic .bn-coverflow__meta,
body.theme-nordic .bn-coverflow__meta.is-active {
	background: rgba(255, 255, 255, 0.96) !important;
	border-color: rgba(45, 36, 30, 0.12) !important;
	color: #1e293b !important;
	box-shadow: 0 8px 24px rgba(45, 36, 30, 0.08) !important;
}

html.theme-cream .bn-coverflow__excerpt,
html.theme-cream .bn-coverflow__excerpt.urdu-text,
html.theme-cream p.bn-coverflow__excerpt,
html.theme-cream .bn-coverflow__meta p,
html.theme-cream .bn-coverflow__meta .bn-coverflow__excerpt,
html.theme-cream .bn-coverflow__author,
html.theme-cream .hero-featured-excerpt,
html.theme-cream .hero-excerpt,
html.theme-rose .bn-coverflow__excerpt,
html.theme-rose .bn-coverflow__excerpt.urdu-text,
html.theme-rose p.bn-coverflow__excerpt,
html.theme-rose .bn-coverflow__meta p,
html.theme-rose .hero-featured-excerpt,
html.theme-nordic .bn-coverflow__excerpt,
html.theme-nordic .bn-coverflow__excerpt.urdu-text,
html.theme-nordic p.bn-coverflow__excerpt,
html.theme-nordic .bn-coverflow__meta p,
html.theme-nordic .hero-featured-excerpt,
body.theme-cream .bn-coverflow__excerpt,
body.theme-cream .bn-coverflow__excerpt.urdu-text,
body.theme-cream p.bn-coverflow__excerpt,
body.theme-cream .bn-coverflow__meta p,
body.theme-cream .bn-coverflow__meta .bn-coverflow__excerpt,
body.theme-cream .bn-coverflow__author,
body.theme-cream .hero-featured-excerpt,
body.theme-cream .hero-excerpt,
body.theme-rose .bn-coverflow__excerpt,
body.theme-rose .bn-coverflow__excerpt.urdu-text,
body.theme-rose p.bn-coverflow__excerpt,
body.theme-rose .bn-coverflow__meta p,
body.theme-rose .hero-featured-excerpt,
body.theme-nordic .bn-coverflow__excerpt,
body.theme-nordic .bn-coverflow__excerpt.urdu-text,
body.theme-nordic p.bn-coverflow__excerpt,
body.theme-nordic .bn-coverflow__meta p,
body.theme-nordic .hero-featured-excerpt {
	color: #1e293b !important;
	-webkit-text-fill-color: #1e293b !important;
	opacity: 1 !important;
	font-weight: 500 !important;
}

html.theme-cream .bn-coverflow__title,
html.theme-cream .bn-coverflow__title a,
html.theme-rose .bn-coverflow__title,
html.theme-rose .bn-coverflow__title a,
html.theme-nordic .bn-coverflow__title,
html.theme-nordic .bn-coverflow__title a,
body.theme-cream .bn-coverflow__title,
body.theme-cream .bn-coverflow__title a,
body.theme-rose .bn-coverflow__title,
body.theme-rose .bn-coverflow__title a,
body.theme-nordic .bn-coverflow__title,
body.theme-nordic .bn-coverflow__title a {
	color: #0f172a !important;
	-webkit-text-fill-color: #0f172a !important;
}

html.theme-cream .bn-coverflow__author,
html.theme-cream .bn-coverflow__readtime,
body.theme-cream .bn-coverflow__author,
body.theme-cream .bn-coverflow__readtime {
	color: #334155 !important;
	-webkit-text-fill-color: #334155 !important;
	opacity: 1 !important;
}

html.theme-cream .bn-coverflow__readtime,
body.theme-cream .bn-coverflow__readtime {
	background: rgba(160, 104, 56, 0.14) !important;
	color: #8b5a2b !important;
	-webkit-text-fill-color: #8b5a2b !important;
}

/* Keep light-theme base excerpt token dark (not the coffee cream fallback) */
body.theme-cream,
html.theme-cream {
	--bn-muted: #334155;
}

/* ==========================================================================
   HOTFIX � iOS Safari mobile nav drawer (ensure ul never re-fixed)
   ========================================================================== */
@media screen and (max-width: 768px) {
	body.bn-nav-open .main-navigation.toggled .main-nav > ul,
	body .main-navigation.toggled .main-nav > ul,
	body .main-navigation.toggled div.main-nav > ul {
		position: static !important;
		display: flex !important;
		flex-direction: column !important;
		flex-wrap: nowrap !important;
		width: 100% !important;
		max-height: none !important;
		height: auto !important;
		overflow: visible !important;
		transform: none !important;
	}

	body.bn-nav-open .main-navigation.toggled .main-nav,
	body .main-navigation.toggled .main-nav {
		position: fixed !important;
		overflow-y: auto !important;
		-webkit-overflow-scrolling: touch !important;
		max-height: calc(100dvh - var(--bn-fixed-header-h, 56px) - env(safe-area-inset-bottom, 0px)) !important;
	}
}

/* ==========================================================================
   HOTFIX � Mobile menu label contrast (white-on-white was hiding items)
   ========================================================================== */
@media screen and (max-width: 768px) {
	/* Light themes: dark labels on white drawer */
	html.theme-cream .main-navigation.toggled .main-nav,
	html.theme-rose .main-navigation.toggled .main-nav,
	html.theme-nordic .main-navigation.toggled .main-nav,
	body.theme-cream .main-navigation.toggled .main-nav,
	body.theme-rose .main-navigation.toggled .main-nav,
	body.theme-nordic .main-navigation.toggled .main-nav,
	body.theme-cream .main-navigation.toggled .main-nav > ul,
	body.theme-rose .main-navigation.toggled .main-nav > ul,
	body.theme-nordic .main-navigation.toggled .main-nav > ul {
		background: #ffffff !important;
		background-color: #ffffff !important;
	}

	html.theme-cream .main-navigation.toggled .main-nav ul li a,
	html.theme-rose .main-navigation.toggled .main-nav ul li a,
	html.theme-nordic .main-navigation.toggled .main-nav ul li a,
	body.theme-cream .main-navigation.toggled .main-nav ul li a,
	body.theme-rose .main-navigation.toggled .main-nav ul li a,
	body.theme-nordic .main-navigation.toggled .main-nav ul li a,
	body.theme-cream .main-navigation.toggled .main-nav ul li .dropdown-menu-toggle,
	body.theme-rose .main-navigation.toggled .main-nav ul li .dropdown-menu-toggle,
	body.theme-nordic .main-navigation.toggled .main-nav ul li .dropdown-menu-toggle,
	body.theme-cream .main-navigation.toggled .main-nav ul li .dropdown-menu-toggle:before,
	body.theme-rose .main-navigation.toggled .main-nav ul li .dropdown-menu-toggle:before,
	body.theme-nordic .main-navigation.toggled .main-nav ul li .dropdown-menu-toggle:before {
		color: #1e293b !important;
		-webkit-text-fill-color: #1e293b !important;
		opacity: 1 !important;
		visibility: visible !important;
	}

	html.theme-cream .main-navigation.toggled .main-nav ul li a:hover,
	html.theme-cream .main-navigation.toggled .main-nav ul li.current-menu-item > a,
	html.theme-cream .main-navigation.toggled .main-nav ul li.current_page_item > a,
	html.theme-cream .main-navigation.toggled .main-nav ul li[class*="current-menu-"] > a,
	body.theme-cream .main-navigation.toggled .main-nav ul li a:hover,
	body.theme-cream .main-navigation.toggled .main-nav ul li.current-menu-item > a,
	body.theme-cream .main-navigation.toggled .main-nav ul li.current_page_item > a,
	body.theme-cream .main-navigation.toggled .main-nav ul li[class*="current-menu-"] > a,
	body.theme-rose .main-navigation.toggled .main-nav ul li a:hover,
	body.theme-rose .main-navigation.toggled .main-nav ul li.current-menu-item > a,
	body.theme-nordic .main-navigation.toggled .main-nav ul li a:hover,
	body.theme-nordic .main-navigation.toggled .main-nav ul li.current-menu-item > a {
		background: linear-gradient(135deg, #a06838, #8b5a2b) !important;
		color: #ffffff !important;
		-webkit-text-fill-color: #ffffff !important;
	}

	/* Dark themes: cream labels on dark drawer */
	html.theme-coffee .main-navigation.toggled .main-nav,
	body.theme-coffee .main-navigation.toggled .main-nav,
	body.theme-indigo .main-navigation.toggled .main-nav,
	body.theme-emerald .main-navigation.toggled .main-nav {
		background: #1a1614 !important;
		background-color: #1a1614 !important;
	}

	html.theme-coffee .main-navigation.toggled .main-nav ul li a,
	body.theme-coffee .main-navigation.toggled .main-nav ul li a,
	body.theme-indigo .main-navigation.toggled .main-nav ul li a,
	body.theme-emerald .main-navigation.toggled .main-nav ul li a {
		color: #f3ebd9 !important;
		-webkit-text-fill-color: #f3ebd9 !important;
	}

	/* Expanded sub-menus must stay readable too */
	.main-navigation.toggled .main-nav ul ul.toggled-on,
	.main-navigation.toggled .main-nav ul ul.toggled-on li,
	.main-navigation.toggled .main-nav ul ul.toggled-on li a {
		display: block !important;
		visibility: visible !important;
		opacity: 1 !important;
		height: auto !important;
		max-height: none !important;
		position: relative !important;
		float: none !important;
		width: 100% !important;
	}

	body.theme-cream .main-navigation.toggled .main-nav ul ul.toggled-on li a,
	body.theme-rose .main-navigation.toggled .main-nav ul ul.toggled-on li a,
	body.theme-nordic .main-navigation.toggled .main-nav ul ul.toggled-on li a {
		color: #334155 !important;
		-webkit-text-fill-color: #334155 !important;
		padding-left: 1.25rem !important;
	}

	body.theme-coffee .main-navigation.toggled .main-nav ul ul.toggled-on li a {
		color: #e8d5b8 !important;
		-webkit-text-fill-color: #e8d5b8 !important;
		padding-left: 1.25rem !important;
	}
}

/* ==================================================
   Light theme visibility — Cover Flow + Leave a Comment
   (light themes: theme-cream / theme-rose / theme-nordic)
   ================================================== */

/* 1. Cover Flow Spotlight badge + slider controls */
html.theme-cream .bn-coverflow__eyebrow,
html.theme-rose .bn-coverflow__eyebrow,
html.theme-nordic .bn-coverflow__eyebrow,
body.theme-cream .bn-coverflow__eyebrow,
body.theme-rose .bn-coverflow__eyebrow,
body.theme-nordic .bn-coverflow__eyebrow,
html.theme-cream .bn-coverflow__heading,
html.theme-rose .bn-coverflow__heading,
html.theme-nordic .bn-coverflow__heading,
body.theme-cream .bn-coverflow__heading,
body.theme-rose .bn-coverflow__heading,
body.theme-nordic .bn-coverflow__heading {
	color: #1a1a1a !important;
	-webkit-text-fill-color: #1a1a1a !important;
	opacity: 1 !important;
	background: rgba(26, 26, 26, 0.08) !important;
	border-color: rgba(26, 26, 26, 0.22) !important;
}

html.theme-cream .bn-coverflow__nav,
html.theme-rose .bn-coverflow__nav,
html.theme-nordic .bn-coverflow__nav,
body.theme-cream .bn-coverflow__nav,
body.theme-rose .bn-coverflow__nav,
body.theme-nordic .bn-coverflow__nav {
	color: #1a1a1a !important;
	-webkit-text-fill-color: #1a1a1a !important;
	opacity: 1 !important;
	background: rgba(255, 255, 255, 0.92) !important;
	border: 1px solid rgba(26, 26, 26, 0.28) !important;
	box-shadow: 0 2px 8px rgba(26, 26, 26, 0.12);
}

html.theme-cream .bn-coverflow__nav:hover,
html.theme-cream .bn-coverflow__nav:focus-visible,
html.theme-rose .bn-coverflow__nav:hover,
html.theme-rose .bn-coverflow__nav:focus-visible,
html.theme-nordic .bn-coverflow__nav:hover,
html.theme-nordic .bn-coverflow__nav:focus-visible,
body.theme-cream .bn-coverflow__nav:hover,
body.theme-cream .bn-coverflow__nav:focus-visible,
body.theme-rose .bn-coverflow__nav:hover,
body.theme-rose .bn-coverflow__nav:focus-visible,
body.theme-nordic .bn-coverflow__nav:hover,
body.theme-nordic .bn-coverflow__nav:focus-visible {
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
	background: linear-gradient(135deg, #8b5a2b, #a06838) !important;
	border-color: transparent !important;
}

html.theme-cream .bn-coverflow__dot,
html.theme-rose .bn-coverflow__dot,
html.theme-nordic .bn-coverflow__dot,
body.theme-cream .bn-coverflow__dot,
body.theme-rose .bn-coverflow__dot,
body.theme-nordic .bn-coverflow__dot {
	background: rgba(26, 26, 26, 0.35) !important;
	opacity: 1 !important;
}

html.theme-cream .bn-coverflow__dot.is-active,
html.theme-rose .bn-coverflow__dot.is-active,
html.theme-nordic .bn-coverflow__dot.is-active,
body.theme-cream .bn-coverflow__dot.is-active,
body.theme-rose .bn-coverflow__dot.is-active,
body.theme-nordic .bn-coverflow__dot.is-active {
	background: linear-gradient(135deg, #8b5a2b, #a06838) !important;
}

/* 2. Leave a Comment / reply title — dark on light backgrounds */
html.theme-cream #reply-title,
html.theme-cream .comment-reply-title,
html.theme-cream .comments-area .comment-reply-title,
html.theme-cream .comments-title,
html.theme-cream .comment-respond h3,
html.theme-cream #comments .logged-in-as,
html.theme-cream .comment-respond .logged-in-as,
html.theme-cream .comments-area .logged-in-as,
html.theme-cream #comments label,
html.theme-cream .comment-respond label,
html.theme-cream .comments-area label,
html.theme-rose #reply-title,
html.theme-rose .comment-reply-title,
html.theme-rose .comments-title,
html.theme-rose .comment-respond h3,
html.theme-nordic #reply-title,
html.theme-nordic .comment-reply-title,
html.theme-nordic .comments-title,
html.theme-nordic .comment-respond h3,
body.theme-cream #reply-title,
body.theme-cream .comment-reply-title,
body.theme-cream .comments-area .comment-reply-title,
body.theme-cream .comments-title,
body.theme-cream .comment-respond h3,
body.theme-cream #comments .logged-in-as,
body.theme-cream .comment-respond .logged-in-as,
body.theme-cream .comments-area .logged-in-as,
body.theme-cream #comments label,
body.theme-cream .comment-respond label,
body.theme-cream .comments-area label,
body.theme-rose #reply-title,
body.theme-rose .comment-reply-title,
body.theme-rose .comments-title,
body.theme-rose .comment-respond h3,
body.theme-nordic #reply-title,
body.theme-nordic .comment-reply-title,
body.theme-nordic .comments-title,
body.theme-nordic .comment-respond h3 {
	color: #1a1a1a !important;
	-webkit-text-fill-color: #1a1a1a !important;
	opacity: 1 !important;
}

html.theme-cream #comments .logged-in-as a,
html.theme-cream .comment-respond .logged-in-as a,
html.theme-cream .comments-area .logged-in-as a,
body.theme-cream #comments .logged-in-as a,
body.theme-cream .comment-respond .logged-in-as a,
body.theme-cream .comments-area .logged-in-as a {
	color: #3d230d !important;
	-webkit-text-fill-color: #3d230d !important;
}
