/*
Theme Name: Bharat RPM
Theme URI: https://aknify.com
Author: Aknify
Author URI: https://aknify.com
Description: A mobile-first, ad-revenue-optimised WordPress theme built for Indian audiences. Ships with a lazy-loading ad slot manager (CLS-safe), Devanagari-ready typography, WhatsApp-first sharing, YouTube facades and session-depth features that lift page RPM on low-bandwidth Android traffic.
Version: 1.1.1
Requires at least: 6.0
Tested up to: 6.6
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: bharat-rpm
Tags: blog, news, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, block-styles, wide-blocks
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */

:root {
	/* #c53f00 rather than a brighter orange: it clears WCAG AA (4.5:1) both as
	   link text on white (5.14:1) and as a button fill under white text. The
	   brighter #d64500 measured 4.46:1 and failed in every role. */
	--brp-accent: #c53f00;
	--brp-accent-ink: #ffffff;
	--brp-accent-soft: #fff1ea;
	--brp-bg: #ffffff;
	--brp-bg-alt: #f6f7f9;
	--brp-surface: #ffffff;
	--brp-text: #16181d;
	--brp-text-muted: #5b6270;
	--brp-border: #e3e6eb;
	--brp-ad-bg: #f2f3f5;
	--brp-ad-label: #676d76;

	--brp-radius: 10px;
	--brp-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .06);

	--brp-wrap: 1200px;
	--brp-content: 720px;
	--brp-gap: 24px;

	/* Devanagari + Indic aware stack. No web-font request = no render delay. */
	--brp-font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", "Nirmala UI", "Mangal", "Hind", Arial, sans-serif;
	--brp-font-head: "Segoe UI", Roboto, "Noto Serif Devanagari", "Nirmala UI", Georgia, serif;

	--brp-fs-base: 17px;
	--brp-lh-base: 1.75;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-brp-theme="light"]) {
		--brp-bg: #101216;
		--brp-bg-alt: #171a20;
		--brp-surface: #171a20;
		--brp-text: #e8eaee;
		--brp-text-muted: #a0a7b4;
		--brp-border: #272b33;
		--brp-ad-bg: #1c1f26;
		--brp-ad-label: #818795;
		--brp-accent-soft: #2a1710;

		/* The accent has to lift on a dark ground to stay legible as link text
		   (6.73:1 here). That makes it too light for white button text, so the
		   ink flips dark instead — 6.58:1 on the same fill. */
		--brp-accent: #ef7a45;
		--brp-accent-ink: #221008;
	}
}

/* ==========================================================================
   2. Base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	/* Clears the sticky header, so table-of-contents links land on the heading
	   rather than behind the masthead. */
	scroll-padding-top: 72px;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	background: var(--brp-bg);
	color: var(--brp-text);
	font-family: var(--brp-font-ui);
	font-size: var(--brp-fs-base);
	line-height: var(--brp-lh-base);
	overflow-wrap: break-word;
}

img, video, iframe { max-width: 100%; height: auto; }
img { display: block; }

a { color: var(--brp-accent); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--brp-font-head);
	line-height: 1.25;
	margin: 1.6em 0 .5em;
	font-weight: 700;
	letter-spacing: -.01em;
}
h1 { font-size: clamp(1.65rem, 1.2rem + 2.2vw, 2.4rem); margin-top: 0; }
h2 { font-size: clamp(1.35rem, 1.1rem + 1.2vw, 1.7rem); }
h3 { font-size: 1.2rem; }

p, ul, ol, blockquote, figure, table { margin: 0 0 1.35em; }

/* Logical properties throughout, so Urdu, Kashmiri and Sindhi editions flip
   correctly without a separate rtl.css. */
blockquote {
	margin-inline: 0;
	padding-block: .2em;
	padding-inline-start: 1.1em;
	border-inline-start: 4px solid var(--brp-accent);
	color: var(--brp-text-muted);
	font-size: 1.05em;
}

code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }
pre { background: var(--brp-bg-alt); padding: 16px; border-radius: var(--brp-radius); overflow-x: auto; }

table { width: 100%; border-collapse: collapse; }
th, td { border: 1px solid var(--brp-border); padding: 8px 12px; text-align: start; }
th { background: var(--brp-bg-alt); }

/* Scoped: turning every table on the site into a block would also reformat
   plugin and widget tables that were never meant to scroll. */
.brp-entry-content table { display: block; overflow-x: auto; }

:focus-visible { outline: 3px solid var(--brp-accent); outline-offset: 2px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
	white-space: nowrap; border: 0;
}
.skip-link:focus {
	position: fixed; inset-inline-start: 8px; top: 8px;
	z-index: 1000; width: auto; height: auto;
	clip: auto; clip-path: none;
	background: var(--brp-accent); color: var(--brp-accent-ink);
	padding: 10px 16px; border-radius: 6px;
}

.brp-wrap { width: min(100% - 32px, var(--brp-wrap)); margin-inline: auto; }

/* ==========================================================================
   3. Header / navigation
   ========================================================================== */

.brp-progress {
	position: fixed; inset-block-start: 0; inset-inline-start: 0;
	height: 3px; width: 0;
	background: var(--brp-accent);
	z-index: 60;
	transition: width .1s linear;
}

.brp-header {
	position: sticky; top: 0; z-index: 50;
	background: var(--brp-bg);
	border-bottom: 1px solid var(--brp-border);
}
.brp-header__inner {
	display: flex; align-items: center; gap: 12px;
	min-height: 56px;
	padding-block: 8px;
}
.brp-brand { font-family: var(--brp-font-head); font-size: 1.25rem; font-weight: 800; color: var(--brp-text); }
.brp-brand:hover { text-decoration: none; }
.brp-brand img { max-height: 40px; width: auto; }
.brp-tagline { display: none; font-size: .8rem; color: var(--brp-text-muted); }
@media (min-width: 900px) { .brp-tagline { display: block; } }

.brp-nav-toggle, .brp-search-toggle {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; padding: 0;
	background: none; border: 0; border-radius: 8px;
	color: var(--brp-text); cursor: pointer;
}
.brp-nav-toggle svg, .brp-search-toggle svg { flex: none; }
.brp-nav-toggle:hover, .brp-search-toggle:hover { background: var(--brp-bg-alt); }
.brp-header__actions { margin-inline-start: auto; display: flex; align-items: center; gap: 4px; }

.brp-nav ul { list-style: none; margin: 0; padding: 0; }
.brp-nav a { color: var(--brp-text); display: block; padding: 10px 12px; font-weight: 600; font-size: .95rem; }
.brp-nav a:hover { color: var(--brp-accent); text-decoration: none; }

@media (max-width: 899px) {
	.brp-nav {
		display: none;
		position: absolute; inset-inline: 0; top: 100%;
		background: var(--brp-bg);
		border-bottom: 1px solid var(--brp-border);
		max-height: 70vh; overflow-y: auto;
		padding: 8px 16px 16px;
	}
	.brp-nav.is-open { display: block; }
	.brp-nav li { border-bottom: 1px solid var(--brp-border); }
	.brp-nav .sub-menu { padding-inline-start: 14px; }
}
@media (min-width: 900px) {
	.brp-nav-toggle { display: none; }
	.brp-nav > ul { display: flex; align-items: center; gap: 2px; }
	.brp-nav li { position: relative; }
	.brp-nav .sub-menu {
		position: absolute; top: 100%; inset-inline-start: 0;
		min-width: 210px;
		background: var(--brp-surface);
		border: 1px solid var(--brp-border);
		border-radius: var(--brp-radius);
		box-shadow: var(--brp-shadow);
		padding: 6px;
		display: none; z-index: 20;
	}
	.brp-nav li:hover > .sub-menu, .brp-nav li:focus-within > .sub-menu { display: block; }
}

/* Ticker: cheap way to surface more internal links above the fold. */
.brp-ticker {
	display: flex; align-items: center; gap: 12px;
	background: var(--brp-bg-alt);
	border-bottom: 1px solid var(--brp-border);
	font-size: .88rem;
	padding-block: 2px;
	overflow: hidden;
}
.brp-ticker__label {
	flex: none;
	background: var(--brp-accent); color: var(--brp-accent-ink);
	padding: 2px 10px; border-radius: 999px;
	font-weight: 700; font-size: .74rem; text-transform: uppercase; letter-spacing: .04em;
}
.brp-ticker__track { display: flex; gap: 26px; white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.brp-ticker__track::-webkit-scrollbar { display: none; }
/* Padding rather than height, so the row keeps its size while the tap area
   grows — these headlines are a primary navigation surface on mobile. */
.brp-ticker__track a { color: var(--brp-text); font-weight: 500; padding-block: 9px; }

/* ==========================================================================
   4. Layout
   ========================================================================== */

.brp-site-main { padding-block: 24px 40px; }
.brp-layout { display: grid; gap: var(--brp-gap); grid-template-columns: 1fr; }
@media (min-width: 1000px) {
	.brp-layout--sidebar { grid-template-columns: minmax(0, 1fr) 300px; }
}

.brp-content { min-width: 0; }

/* ==========================================================================
   5. Cards / archive grid
   ========================================================================== */

.brp-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

/* Two up on phones. A single column pushes six related posts past 1,400px of
   scrolling, so almost nobody reaches the later ones — and related clicks are
   the main lever on pages per session. */
@media (max-width: 599px) {
	.brp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.brp-card__body { padding: 10px 12px 14px; }
	.brp-card__title { font-size: .92rem; }
	.brp-card__meta { font-size: .72rem; }
	.brp-card__excerpt { display: none; }
}

.brp-card {
	background: var(--brp-surface);
	border: 1px solid var(--brp-border);
	border-radius: var(--brp-radius);
	overflow: hidden;
	display: flex; flex-direction: column;
}
.brp-card__thumb { position: relative; aspect-ratio: 16 / 9; background: var(--brp-bg-alt); }
.brp-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.brp-card__body { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.brp-card__title { font-size: 1.02rem; margin: 0; line-height: 1.35; }
.brp-card__title a { color: var(--brp-text); }
.brp-card__title a:hover { color: var(--brp-accent); text-decoration: none; }
.brp-card__meta { font-size: .78rem; color: var(--brp-text-muted); display: flex; flex-wrap: wrap; gap: 8px; }
.brp-card__excerpt { font-size: .9rem; color: var(--brp-text-muted); margin: 0; }

.brp-cat-badge {
	display: inline-block;
	background: var(--brp-accent-soft); color: var(--brp-accent);
	font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
	padding: 3px 9px; border-radius: 999px;
}
.brp-cat-badge:hover { text-decoration: none; }

.brp-section-title {
	display: flex; align-items: center; gap: 10px;
	font-size: 1.15rem; margin: 0 0 14px;
	padding-bottom: 8px; border-bottom: 2px solid var(--brp-border);
}
.brp-section-title::before { content: ""; width: 5px; height: 20px; background: var(--brp-accent); border-radius: 3px; }

/* ==========================================================================
   6. Single post
   ========================================================================== */

.brp-article { max-width: var(--brp-content); }
.brp-layout--sidebar .brp-article { max-width: none; }

.brp-breadcrumb { font-size: .82rem; color: var(--brp-text-muted); margin-bottom: 12px; }
.brp-breadcrumb a { color: var(--brp-text-muted); }
.brp-breadcrumb span + span::before { content: "›"; margin: 0 7px; }

.brp-entry-meta {
	display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
	font-size: .85rem; color: var(--brp-text-muted);
	margin-bottom: 18px;
}
.brp-entry-meta__author { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--brp-text); }
.brp-entry-meta img { border-radius: 50%; }

.brp-featured { margin: 0 0 22px; }
.brp-featured img { width: 100%; border-radius: var(--brp-radius); }
.brp-featured figcaption { font-size: .8rem; color: var(--brp-text-muted); margin-top: 6px; }

.brp-entry-content { font-size: 1.06rem; }
.brp-entry-content > *:first-child { margin-top: 0; }
.brp-entry-content a { text-decoration: underline; text-underline-offset: 2px; }
.brp-entry-content ul, .brp-entry-content ol { padding-inline-start: 1.4em; }
.brp-entry-content li { margin-bottom: .5em; }
.brp-entry-content .alignwide { width: min(100vw - 32px, 1000px); margin-inline: auto; }

/* The 100vw breakout only lines up when the column is centred in the viewport,
   which is true on the single-column layout. Beside a sidebar the same maths
   overflows the page and forces horizontal scrolling, so the block is held to
   the column width there instead. */
.brp-entry-content .alignfull { width: 100vw; margin-inline: calc(50% - 50vw); max-width: 100vw; }

@media (min-width: 1000px) {
	.brp-layout--sidebar .brp-entry-content .alignfull {
		width: 100%;
		max-width: 100%;
		margin-inline: 0;
	}
}
.brp-entry-content figure img { border-radius: var(--brp-radius); }

.brp-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0; }
.brp-tags a {
	font-size: .82rem; padding: 5px 12px;
	background: var(--brp-bg-alt); color: var(--brp-text-muted);
	border-radius: 999px;
}
.brp-tags a:hover { background: var(--brp-accent); color: var(--brp-accent-ink); text-decoration: none; }

/* Table of contents — keeps long-form readers on page (more scroll = more ads seen). */
.brp-toc {
	background: var(--brp-bg-alt);
	border: 1px solid var(--brp-border);
	border-radius: var(--brp-radius);
	padding: 14px 18px;
	margin-bottom: 24px;
	font-size: .95rem;
}
.brp-toc summary { font-weight: 700; cursor: pointer; font-family: var(--brp-font-head); }
.brp-toc ol { margin: 12px 0 0; padding-inline-start: 1.2em; }
.brp-toc li { margin-bottom: .35em; }
.brp-toc a { color: var(--brp-text); }

/* ==========================================================================
   7. Share bar (WhatsApp-first — the dominant sharing surface in India)
   ========================================================================== */

.brp-share { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.brp-share__btn {
	display: inline-flex; align-items: center; gap: 7px;
	min-height: 40px; padding: 0 14px;
	border-radius: 999px; border: 0;
	font-family: inherit; font-size: .88rem; font-weight: 600;
	color: #fff; cursor: pointer;
}
.brp-share__btn:hover { text-decoration: none; opacity: .92; }
.brp-share__btn svg { width: 17px; height: 17px; flex: none; fill: currentColor; }
/* Each network's darker official brand value, not its bright one. White label
   text on the bright greens and blues measures as low as 1.98:1; these lift it
   to 4.1–5.8:1 while staying recognisably the brand. WhatsApp and Telegram sit
   just under the 4.5 AA line — a deliberate trade, since a green dark enough to
   pass no longer reads as WhatsApp, and the icon carries the meaning. */
.brp-share--whatsapp { background: #128c7e; }
.brp-share--telegram { background: #1b7fae; }
.brp-share--facebook { background: #0b5ed7; }
.brp-share--x { background: #14171a; }
.brp-share--copy { background: var(--brp-text-muted); }

/* Mobile floating WhatsApp share. Kept clear of the anchor ad. */
.brp-share-float {
	position: fixed; inset-inline-end: 14px;
	bottom: calc(14px + var(--brp-anchor-h, 0px));
	z-index: 45;
	width: 50px; height: 50px; padding: 0; border-radius: 50%;
	background: #128c7e; color: #fff; border: 0;
	display: none; align-items: center; justify-content: center;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
	cursor: pointer;
}
.brp-share-float svg { width: 25px; height: 25px; flex: none; fill: #fff; }
@media (max-width: 767px) { .brp-share-float.is-visible { display: flex; } }

/* ==========================================================================
   8. Ad slots — reserved boxes so ads never cause layout shift (CLS)
   ========================================================================== */

.brp-ad {
	position: relative;
	display: block;
	margin: 26px auto;
	text-align: center;
	background: var(--brp-ad-bg);
	border-radius: 6px;
	overflow: hidden;
	/* Height reserved inline per slot via --brp-ad-h, so CLS stays ~0.
	   Deliberately no `contain: paint` here: it would make the slot a
	   containing block for fixed-position descendants, trapping anchor and
	   interstitial creatives inside the box instead of the viewport. */
	min-height: var(--brp-ad-h, 280px);
}
.brp-ad::before {
	content: attr(data-label);
	position: absolute; inset-block-start: 4px; inset-inline: 0;
	font-size: .62rem; letter-spacing: .12em; text-transform: uppercase;
	color: var(--brp-ad-label);
	pointer-events: none;
}
.brp-ad__inner { padding-top: 16px; }
.brp-ad.is-filled { background: transparent; }
.brp-ad.is-empty { min-height: 0; margin: 0; background: none; }
.brp-ad.is-empty::before { content: none; }

@media (min-width: 768px) { .brp-ad { min-height: var(--brp-ad-h-desktop, var(--brp-ad-h, 280px)); } }

/* AdSense policy: keep a clear gap between navigation and the first ad so taps
   aren't accidental. Accidental clicks get accounts limited, which kills RPM. */
.brp-ad--header { margin-top: 18px; }

.brp-ad--sidebar { position: sticky; top: 76px; margin-block: 0 20px; }

/* Sticky bottom anchor — usually the single highest-viewability slot on mobile. */
.brp-anchor {
	position: fixed; inset-inline: 0; bottom: 0;
	z-index: 48;
	background: var(--brp-bg);
	border-top: 1px solid var(--brp-border);
	box-shadow: 0 -2px 12px rgba(0, 0, 0, .08);
	transform: translateY(110%);
	transition: transform .25s ease;
	padding-bottom: env(safe-area-inset-bottom, 0);
	/* Better Ads Standards treat a sticky ad taller than 30% of the viewport as
	   a violation, and Chrome filters ads on sites that breach it. This is a
	   backstop in case a network returns a taller creative than the slot asked
	   for. */
	max-height: 25vh;
}
.brp-anchor.is-visible { transform: translateY(0); }
.brp-anchor .brp-ad { margin: 0; background: none; }
.brp-anchor__close {
	position: absolute; top: -26px; inset-inline-end: 8px;
	width: 26px; height: 26px; min-height: 0; padding: 0;
	border: 1px solid var(--brp-border); border-bottom: 0;
	border-radius: 6px 6px 0 0;
	background: var(--brp-bg); color: var(--brp-text-muted);
	font-size: 14px; line-height: 1; cursor: pointer;
}
body.has-anchor-ad { padding-bottom: var(--brp-anchor-h, 0px); }

/* ==========================================================================
   8b. Post Builder — summary, details table, download buttons
   ========================================================================== */

.brp-builder { margin-top: 32px; }

.brp-builder__summary {
	background: var(--brp-accent-soft);
	border: 1px solid var(--brp-border);
	border-inline-start: 4px solid var(--brp-accent);
	border-radius: var(--brp-radius);
	padding: 14px 18px;
	margin-bottom: 26px;
	font-size: .98rem;
}
.brp-builder__summary p:last-child { margin-bottom: 0; }

.brp-builder__specs dl { margin: 0 0 26px; }

.brp-spec {
	display: grid;
	grid-template-columns: minmax(120px, 34%) 1fr;
	gap: 12px;
	padding: 10px 12px;
	border: 1px solid var(--brp-border);
	border-bottom: 0;
	font-size: .95rem;
}
.brp-spec:first-child { border-radius: var(--brp-radius) var(--brp-radius) 0 0; }
.brp-spec:last-child { border-bottom: 1px solid var(--brp-border); border-radius: 0 0 var(--brp-radius) var(--brp-radius); }
.brp-spec:nth-child(odd) { background: var(--brp-bg-alt); }
.brp-spec dt { font-weight: 600; margin: 0; color: var(--brp-text); }
.brp-spec dd { margin: 0; color: var(--brp-text-muted); }

@media (max-width: 480px) {
	.brp-spec { grid-template-columns: 1fr; gap: 2px; }
}

/*
 * Download buttons.
 *
 * The 40px top margin is a policy feature, not decoration: the ad slot above
 * these buttons must not read as part of them. An ad a reader taps by mistake
 * while reaching for a download is exactly what gets an AdSense account
 * limited, and a limited account earns nothing at any layout.
 */
.brp-downloads { margin-top: 40px; }

.brp-dl {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	padding: 14px 22px;
	margin-bottom: 12px;
	background: var(--brp-accent);
	color: var(--brp-accent-ink);
	border-radius: var(--brp-radius);
	font-weight: 700;
	font-size: 1.02rem;
	text-align: center;
	text-decoration: none;
	min-height: 56px;
	justify-content: center;
	transition: opacity .15s ease;
}
.brp-dl:hover, .brp-dl:focus { opacity: .92; color: var(--brp-accent-ink); text-decoration: none; }
.brp-dl svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.brp-dl__label { display: block; }
.brp-dl__note { font-size: .8rem; font-weight: 500; opacity: .85; }

/* ==========================================================================
   9. Related / read-next (session depth = more pageviews = more RPM)
   ========================================================================== */

.brp-related { margin-top: 40px; }

.brp-next-bar {
	position: fixed; inset-inline-end: 16px;
	bottom: calc(16px + var(--brp-anchor-h, 0px));
	z-index: 44;
	width: min(340px, calc(100vw - 32px));
	background: var(--brp-surface);
	border: 1px solid var(--brp-border);
	border-radius: var(--brp-radius);
	box-shadow: var(--brp-shadow);
	padding: 12px 34px 12px 12px;
	display: none;
	transform: translateY(20px); opacity: 0;
	transition: transform .25s ease, opacity .25s ease;
}
.brp-next-bar.is-visible { display: block; transform: none; opacity: 1; }
.brp-next-bar > a { display: flex; gap: 12px; align-items: center; color: inherit; }
.brp-next-bar > a:hover { text-decoration: none; }
.brp-next-bar img { width: 62px; height: 46px; object-fit: cover; border-radius: 6px; flex: none; }
.brp-next-bar__label { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--brp-accent); font-weight: 700; }
.brp-next-bar__title { font-size: .9rem; font-weight: 600; color: var(--brp-text); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.brp-next-bar__close {
	position: absolute; top: 6px; inset-inline-end: 8px;
	width: 24px; height: 24px; min-height: 0; padding: 0;
	background: none; border: 0; color: var(--brp-text-muted);
	font-size: 16px; cursor: pointer; line-height: 1;
}
@media (max-width: 767px) { .brp-next-bar { display: none !important; } }

/* ==========================================================================
   10. YouTube facade (saves ~1MB+ per embed on 4G)
   ========================================================================== */

.brp-yt {
	position: relative; display: block;
	aspect-ratio: 16 / 9;
	background: #000 center/cover no-repeat;
	border-radius: var(--brp-radius);
	overflow: hidden; cursor: pointer;
	margin-bottom: 1.35em;
}
.brp-yt::after {
	content: ""; position: absolute; inset: 0; margin: auto;
	width: 68px; height: 48px;
	background: rgba(0, 0, 0, .72);
	border-radius: 12px;
	clip-path: none;
}
.brp-yt::before {
	content: ""; position: absolute; inset: 0; margin: auto;
	width: 0; height: 0; z-index: 2;
	border-style: solid;
	border-width: 11px 0 11px 19px;
	border-color: transparent transparent transparent #fff;
}
.brp-yt:hover::after { background: #f00; }
.brp-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ==========================================================================
   11. Sidebar / widgets / footer
   ========================================================================== */

.brp-sidebar .widget, .brp-footer .widget { margin-bottom: 26px; }
.brp-sidebar .widget-title, .brp-footer .widget-title {
	font-size: 1rem; margin: 0 0 12px; padding-bottom: 8px;
	border-bottom: 2px solid var(--brp-border);
}
.brp-sidebar ul, .brp-footer ul { list-style: none; margin: 0; padding: 0; }
.brp-sidebar li, .brp-footer li { padding: 7px 0; border-bottom: 1px solid var(--brp-border); font-size: .93rem; }
.brp-sidebar a, .brp-footer a { color: var(--brp-text); }
.brp-sidebar a:hover, .brp-footer a:hover { color: var(--brp-accent); }

.brp-footer {
	background: var(--brp-bg-alt);
	border-top: 1px solid var(--brp-border);
	padding-block: 32px 20px;
	margin-top: 40px;
	font-size: .92rem;
}
.brp-footer__cols { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.brp-footer__bottom {
	margin-top: 24px; padding-top: 16px;
	border-top: 1px solid var(--brp-border);
	display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between;
	color: var(--brp-text-muted); font-size: .85rem;
}
.brp-footer__bottom ul { display: flex; flex-wrap: wrap; gap: 16px; }
.brp-footer__bottom li { border: 0; padding: 0; }

/* ==========================================================================
   12. Forms, search, pagination, comments
   ========================================================================== */

input[type="text"], input[type="search"], input[type="email"], input[type="url"], textarea, select {
	width: 100%;
	padding: 11px 14px;
	font: inherit; font-size: .95rem;
	color: var(--brp-text);
	background: var(--brp-surface);
	border: 1px solid var(--brp-border);
	border-radius: 8px;
}
/* Scoped to real submit/action buttons on purpose. Targeting bare `button`
   here would override the padding on every icon button below and crush the
   SVGs inside them. */
.brp-btn, button[type="submit"], input[type="submit"] {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 0 20px;
	font: inherit; font-weight: 600; font-size: .95rem;
	color: var(--brp-accent-ink); background: var(--brp-accent);
	border: 0; border-radius: 8px; cursor: pointer;
}
.brp-btn:hover { text-decoration: none; opacity: .92; }

.brp-searchform { display: flex; gap: 8px; }
.brp-search-panel { display: none; padding: 12px 0; border-top: 1px solid var(--brp-border); }
.brp-search-panel.is-open { display: block; }

.brp-pagination { margin-top: 32px; }
.brp-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.brp-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 42px; height: 42px; padding: 0 12px;
	border: 1px solid var(--brp-border); border-radius: 8px;
	color: var(--brp-text); font-weight: 600; font-size: .9rem;
}
.brp-pagination .page-numbers.current, .brp-pagination .page-numbers:hover {
	background: var(--brp-accent); color: var(--brp-accent-ink); border-color: var(--brp-accent); text-decoration: none;
}

.brp-comments { margin-top: 40px; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list ol.children { list-style: none; padding-inline-start: 18px; }
.comment-body {
	border: 1px solid var(--brp-border);
	border-radius: var(--brp-radius);
	padding: 14px 16px; margin-bottom: 14px;
	background: var(--brp-surface);
}
.comment-meta { font-size: .82rem; color: var(--brp-text-muted); margin-bottom: 6px; }
.comment-form p { margin-bottom: 14px; }
.comment-form label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 4px; }

/* ==========================================================================
   13. Utility / misc
   ========================================================================== */

.alignleft { float: left; margin: 0 1.2em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.2em; }
.aligncenter { margin-inline: auto; }
.wp-caption-text, .wp-element-caption { font-size: .82rem; color: var(--brp-text-muted); text-align: center; }
.sticky .brp-card__title::before { content: "📌 "; }

.brp-notice {
	background: var(--brp-accent-soft);
	border: 1px solid var(--brp-accent);
	border-radius: var(--brp-radius);
	padding: 14px 18px; margin-bottom: 20px;
	font-size: .92rem;
}

/* Print: never waste a reader's paper/ink on ad boxes. */
@media print {
	.brp-header, .brp-footer, .brp-ad, .brp-anchor, .brp-share, .brp-share-float,
	.brp-next-bar, .brp-sidebar, .brp-ticker, .brp-progress, .brp-related { display: none !important; }
}
