/*
Theme Name: Bored Marketer
Theme URI: https://boredmarketer.in/
Author: Web Rocz
Author URI: https://webrocz.com/
Description: Bold editorial magazine theme for Bored Marketer — AI, digital marketing and technology publication. Green Edition (Deep Slate Charcoal + Electric Lime). Fully Elementor & Elementor Pro Theme Builder compatible (all core locations registered), with built-in AI Tools Directory, sticky table of contents, reading time, breadcrumbs, schema and a mobile-first layout.
Version: 1.0.1
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bored-marketer
Tags: blog, news, magazine, editorial, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready, elementor
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root {
	--bm-charcoal: #1E2229;
	--bm-charcoal-2: #2A2F38;
	--bm-lime: #00FF66;
	--bm-lime-dark: #00C94F;
	--bm-off: #F4F5F7;
	--bm-white: #FFFFFF;
	--bm-grey: #777777;
	--bm-muted: #5F636B;           /* AA-safe grey for small text on white/off-white */
	--bm-line: #E3E5E9;

	--bm-font-display: "Space Grotesk", "Archivo Black", system-ui, -apple-system, "Segoe UI", sans-serif;
	--bm-font-body: "Inter", "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--bm-font-hand: "Caveat", "Permanent Marker", "Comic Sans MS", cursive;

	--bm-radius: 14px;
	--bm-radius-sm: 8px;
	--bm-radius-pill: 999px;
	--bm-shadow: 0 1px 2px rgba(30, 34, 41, .06), 0 8px 24px rgba(30, 34, 41, .06);
	--bm-shadow-lg: 0 18px 40px rgba(30, 34, 41, .14);

	--bm-container: 1240px;
	--bm-reading: 720px;
	--bm-gutter: clamp(16px, 4vw, 32px);
	--bm-section: clamp(56px, 8vw, 104px);

	--bm-s1: 4px; --bm-s2: 8px; --bm-s3: 12px; --bm-s4: 16px; --bm-s5: 24px; --bm-s6: 32px; --bm-s7: 48px; --bm-s8: 64px;
	--bm-header-h: 72px;
}

/* ==========================================================================
   2. Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--bm-header-h) + 16px); }
body {
	margin: 0;
	background: var(--bm-off);
	color: var(--bm-charcoal);
	font-family: var(--bm-font-body);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}
body.bm-nav-open { overflow: hidden; }
img, svg, video, iframe { max-width: 100%; height: auto; }
img { display: block; }
a { color: inherit; text-decoration-color: var(--bm-lime-dark); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { text-decoration-color: var(--bm-charcoal); }
h1, h2, h3, h4, h5, h6 { font-family: var(--bm-font-display); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; color: var(--bm-charcoal); }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
h4 { font-size: 1.15rem; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; }
hr { border: 0; border-top: 1px solid var(--bm-line); margin: 2.5em 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--bm-lime-dark); outline-offset: 3px; border-radius: 4px; }
.screen-reader-text, .bm-sr { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; word-wrap: normal !important; }
.screen-reader-text:focus { background: var(--bm-lime); color: var(--bm-charcoal); clip: auto !important; clip-path: none; display: block; height: auto; width: auto; left: 8px; top: 8px; padding: 12px 18px; z-index: 100000; font-weight: 700; text-decoration: none; }

.bm-container { width: 100%; max-width: calc(var(--bm-container) + var(--bm-gutter) * 2); margin: 0 auto; padding-left: var(--bm-gutter); padding-right: var(--bm-gutter); }
.bm-section { padding-top: var(--bm-section); padding-bottom: var(--bm-section); }
.bm-section--white { background: var(--bm-white); }
.bm-section--dark { background: var(--bm-charcoal); color: #D9DCE1; }
.bm-section--dark h2, .bm-section--dark h3 { color: var(--bm-white); }

/* ==========================================================================
   3. Brand accents (lime marker, brush, handwritten notes)
   ========================================================================== */
.bm-mark {
	background: linear-gradient(100deg, transparent 0 2%, var(--bm-lime) 2% 97%, transparent 97%) no-repeat 0 88% / 100% 42%;
	padding: 0 .08em;
	-webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.bm-section--dark .bm-mark, .bm-dark .bm-mark { background: none; color: var(--bm-lime); }
.bm-hand { font-family: var(--bm-font-hand); font-weight: 700; font-size: 1.45em; line-height: 1; color: var(--bm-charcoal); letter-spacing: 0; }
.bm-section--dark .bm-hand { color: var(--bm-lime); }
.bm-brush-underline { position: relative; display: inline-block; }
.bm-brush-underline::after {
	content: ""; position: absolute; left: -2%; right: -2%; bottom: -.18em; height: .32em;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M2 9 C 40 3, 90 2, 198 6 L 197 11 C 120 8, 60 9, 4 13 Z' fill='%2300FF66'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
	z-index: -1;
}
.bm-eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	font-family: var(--bm-font-body); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
	color: var(--bm-charcoal); margin-bottom: var(--bm-s4);
}
.bm-eyebrow::before { content: ""; width: 22px; height: 4px; background: var(--bm-lime); border-radius: 2px; }
.bm-section--dark .bm-eyebrow { color: var(--bm-lime); }

/* ==========================================================================
   4. Buttons, pills, forms
   ========================================================================== */
.bm-btn, .wp-block-button__link, button.bm-btn, input[type="submit"] {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 12px 24px;
	font-family: var(--bm-font-body); font-weight: 700; font-size: 1rem; line-height: 1.2;
	text-decoration: none; cursor: pointer;
	border: 2px solid var(--bm-charcoal); border-radius: var(--bm-radius-pill);
	background: var(--bm-lime); color: var(--bm-charcoal);
	transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
	box-shadow: 3px 3px 0 var(--bm-charcoal);
}
.bm-btn:hover, input[type="submit"]:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--bm-charcoal); }
.bm-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--bm-charcoal); }
.bm-btn--ghost { background: transparent; box-shadow: none; }
.bm-btn--ghost:hover { background: var(--bm-white); box-shadow: none; transform: none; }
.bm-btn--dark { background: var(--bm-charcoal); color: var(--bm-white); }
.bm-btn--sm { min-height: 40px; padding: 8px 18px; font-size: .92rem; box-shadow: none; }
.bm-section--dark .bm-btn { border-color: var(--bm-lime); box-shadow: 3px 3px 0 var(--bm-lime-dark); }
.bm-section--dark .bm-btn--ghost { color: var(--bm-white); border-color: rgba(255,255,255,.5); box-shadow: none; }
.bm-section--dark .bm-btn--ghost:hover { background: rgba(255,255,255,.08); }
.bm-link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.bm-link-arrow::after { content: "→"; transition: transform .15s; }
.bm-link-arrow:hover::after { transform: translateX(4px); }

.bm-pill {
	display: inline-flex; align-items: center; min-height: 28px; padding: 3px 12px;
	font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1.2;
	background: var(--bm-lime); color: var(--bm-charcoal); border-radius: var(--bm-radius-pill); text-decoration: none;
}
.bm-pill--dark { background: var(--bm-charcoal); color: var(--bm-lime); }
.bm-pill--outline { background: transparent; border: 1.5px solid var(--bm-charcoal); }
.bm-pill--level-beginner { background: #DFFFEA; }
.bm-pill--level-intermediate { background: #FFF3C4; }
.bm-pill--level-advanced { background: #FFD9D2; }

input[type="text"], input[type="email"], input[type="search"], input[type="url"], input[type="password"], textarea, select {
	width: 100%; min-height: 48px; padding: 12px 16px;
	background: var(--bm-white); border: 2px solid var(--bm-line); border-radius: var(--bm-radius-sm);
	font-size: 16px; /* prevents iOS zoom */
	transition: border-color .15s;
}
input:focus, textarea:focus, select:focus { border-color: var(--bm-charcoal); outline: none; box-shadow: 0 0 0 3px rgba(0,255,102,.45); }
label { font-weight: 600; font-size: .92rem; }

.bm-search-form { display: flex; gap: 8px; width: 100%; }
.bm-search-form input[type="search"] { flex: 1; }
.bm-search-form button { flex-shrink: 0; }

/* ==========================================================================
   5. Announcement bar & header
   ========================================================================== */
.bm-announce { background: var(--bm-lime); color: var(--bm-charcoal); font-size: .88rem; font-weight: 600; }
.bm-announce .bm-container { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 40px; text-align: center; padding-top: 6px; padding-bottom: 6px; }
.bm-announce a { font-weight: 800; }
.bm-announce__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bm-charcoal); flex-shrink: 0; animation: bm-pulse 2s infinite; }
@keyframes bm-pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

.bm-header { position: sticky; top: 0; z-index: 900; background: var(--bm-charcoal); color: var(--bm-white); border-bottom: 1px solid rgba(255,255,255,.06); }
.admin-bar .bm-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .bm-header { top: 0; } }
.bm-header__inner { display: flex; align-items: center; gap: var(--bm-s5); min-height: var(--bm-header-h); }
.bm-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--bm-white); flex-shrink: 0; }
.bm-logo img { max-height: 44px; width: auto; }
.bm-logo__mark { width: 34px; height: 34px; flex-shrink: 0; }
.bm-logo__text { font-family: var(--bm-font-display); font-weight: 700; font-size: 1.15rem; line-height: .95; letter-spacing: -.01em; text-transform: uppercase; }
.bm-logo__text small { display: block; font-family: var(--bm-font-body); font-size: .52rem; letter-spacing: .14em; color: var(--bm-lime); margin-top: 4px; font-weight: 700; }

.bm-nav { margin-left: auto; }
.bm-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.bm-nav li { position: relative; }
.bm-nav a { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; color: #E7E9EC; text-decoration: none; font-weight: 600; font-size: .94rem; border-radius: var(--bm-radius-sm); white-space: nowrap; }
.bm-nav a:hover, .bm-nav .current-menu-item > a, .bm-nav .current-menu-ancestor > a, .bm-nav .current-category-ancestor > a { color: var(--bm-white); box-shadow: inset 0 -3px 0 var(--bm-lime); border-radius: 0; }
.bm-nav .sub-menu { position: absolute; top: 100%; left: 0; min-width: 230px; display: block; padding: 8px; background: var(--bm-white); border-radius: var(--bm-radius); box-shadow: var(--bm-shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s; z-index: 10; }
.bm-nav .sub-menu a { color: var(--bm-charcoal); }
.bm-nav .sub-menu a:hover { background: var(--bm-off); box-shadow: none; border-radius: var(--bm-radius-sm); }
.bm-nav li:hover > .sub-menu, .bm-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.bm-nav .menu-item-has-children > a::after { content: ""; width: 7px; height: 7px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); }

.bm-header__actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.bm-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--bm-white); cursor: pointer; }
.bm-icon-btn:hover { background: rgba(255,255,255,.08); }
.bm-icon-btn svg { width: 22px; height: 22px; }
.bm-header .bm-btn { box-shadow: none; border-color: var(--bm-lime); min-height: 42px; padding: 8px 18px; }
.bm-header .bm-btn:hover { box-shadow: 3px 3px 0 var(--bm-white); }
.bm-burger { display: none; }

.bm-search-panel { background: var(--bm-charcoal-2); padding: 18px 0; border-top: 1px solid rgba(255,255,255,.06); }
.bm-search-panel[hidden] { display: none; }
.bm-search-panel input[type="search"] { background: var(--bm-white); }

/* Mobile drawer */
.bm-drawer { position: fixed; inset: 0; z-index: 1000; visibility: hidden; pointer-events: none; }
.bm-drawer.is-open { visibility: visible; pointer-events: auto; }
.bm-drawer__backdrop { position: absolute; inset: 0; background: rgba(15,17,21,.6); opacity: 0; transition: opacity .25s; }
.bm-drawer.is-open .bm-drawer__backdrop { opacity: 1; }
.bm-drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(88vw, 400px); background: var(--bm-charcoal); color: var(--bm-white); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .28s ease; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: env(safe-area-inset-bottom); }
.bm-drawer.is-open .bm-drawer__panel { transform: none; }
.bm-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 14px var(--bm-gutter); border-bottom: 1px solid rgba(255,255,255,.08); min-height: var(--bm-header-h); }
.bm-drawer__body { padding: 20px var(--bm-gutter) 32px; display: flex; flex-direction: column; gap: 24px; }
.bm-drawer__body .bm-search-form input { background: var(--bm-white); color: var(--bm-charcoal); }
.bm-drawer__body .bm-search-form .bm-btn { box-shadow: none; padding: 10px 16px; }
.bm-mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.bm-mobile-nav li { border-bottom: 1px solid rgba(255,255,255,.08); position: relative; }
.bm-mobile-nav a { display: flex; align-items: center; min-height: 54px; padding: 10px 48px 10px 0; color: var(--bm-white); text-decoration: none; font-family: var(--bm-font-display); font-size: 1.2rem; font-weight: 600; }
.bm-mobile-nav .current-menu-item > a { color: var(--bm-lime); }
.bm-mobile-nav .sub-menu { display: none; padding: 0 0 10px 14px; border-left: 3px solid var(--bm-lime); margin-bottom: 10px; }
.bm-mobile-nav .sub-menu li { border: 0; }
.bm-mobile-nav .sub-menu a { min-height: 44px; font-size: 1rem; font-family: var(--bm-font-body); color: #C9CDD3; }
.bm-mobile-nav li.is-open > .sub-menu { display: block; }
.bm-subtoggle { position: absolute; right: 0; top: 5px; width: 44px; height: 44px; border: 0; background: transparent; color: var(--bm-lime); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.bm-subtoggle::before { content: ""; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; margin-top: -4px; }
li.is-open > .bm-subtoggle::before { transform: rotate(-135deg); margin-top: 4px; }
.bm-drawer .bm-btn { width: 100%; box-shadow: none; }
.bm-drawer__social { display: flex; gap: 8px; flex-wrap: wrap; }

@media (max-width: 1100px) {
	.bm-nav, .bm-header__actions .bm-btn, .bm-header__actions .bm-search-toggle { display: none; }
	.bm-burger { display: inline-flex; }
	.bm-header__actions { margin-left: auto; }
}

/* ==========================================================================
   6. Cards
   ========================================================================== */
.bm-grid { display: grid; gap: clamp(16px, 2.4vw, 28px); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bm-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bm-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1024px) { .bm-grid, .bm-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .bm-grid, .bm-grid--4, .bm-grid--2 { grid-template-columns: minmax(0, 1fr); } }

.bm-card { position: relative; display: flex; flex-direction: column; background: var(--bm-white); border-radius: var(--bm-radius); overflow: hidden; box-shadow: var(--bm-shadow); transition: transform .2s ease, box-shadow .2s ease; height: 100%; }
.bm-card:hover { transform: translateY(-3px); box-shadow: var(--bm-shadow-lg); }
.bm-card__media { position: relative; aspect-ratio: 16 / 10; background: var(--bm-charcoal); overflow: hidden; }
.bm-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.bm-card:hover .bm-card__media img { transform: scale(1.04); }
.bm-card__media .bm-pill { position: absolute; left: 14px; top: 14px; z-index: 2; }
.bm-card__body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; flex: 1; }
.bm-card__title { font-size: 1.22rem; margin: 0; line-height: 1.25; }
.bm-card__title a { text-decoration: none; }
.bm-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* whole card clickable */
.bm-card__title a:hover { text-decoration: underline; text-decoration-color: var(--bm-lime-dark); }
.bm-card__excerpt { color: var(--bm-muted); font-size: .95rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bm-card__meta, .bm-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: .84rem; color: var(--bm-muted); margin-top: auto; }
.bm-meta > * + *::before { content: "•"; margin-right: 12px; color: var(--bm-lime-dark); }
.bm-card__meta a, .bm-meta a { position: relative; z-index: 2; }

/* Placeholder media (no featured image) */
.bm-ph { width: 100%; height: 100%; display: flex; align-items: flex-end; padding: 18px; background: radial-gradient(circle at 85% 20%, rgba(0,255,102,.35), transparent 40%), var(--bm-charcoal); color: var(--bm-white); font-family: var(--bm-font-display); font-weight: 700; font-size: 1.3rem; line-height: 1.1; }
.bm-ph span { border-bottom: 4px solid var(--bm-lime); }

/* Lead + supporting stories */
.bm-featured { display: grid; gap: clamp(16px, 2.4vw, 28px); grid-template-columns: 1.6fr 1fr; }
.bm-card--lead .bm-card__media { aspect-ratio: 16 / 9; }
.bm-card--lead .bm-card__title { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
.bm-card--lead .bm-card__body { padding: 26px 28px 28px; }
.bm-stack { display: flex; flex-direction: column; gap: 16px; }
.bm-card--row { flex-direction: row; align-items: stretch; }
.bm-card--row .bm-card__media { width: 38%; flex-shrink: 0; aspect-ratio: auto; min-height: 130px; }
.bm-card--row .bm-card__body { padding: 16px 18px; gap: 8px; }
.bm-card--row .bm-card__title { font-size: 1.04rem; }
@media (max-width: 1024px) { .bm-featured { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
	.bm-card--row .bm-card__media { width: 112px; min-height: 112px; }
	.bm-card--row .bm-pill { display: none; }
	.bm-card--row .bm-card__title { font-size: .98rem; }
	.bm-card__body { padding: 18px; }
}

/* ==========================================================================
   7. Section heads
   ========================================================================== */
.bm-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(24px, 3.5vw, 40px); flex-wrap: wrap; }
.bm-section-head h2 { margin: 0; }
.bm-section-head p { margin: 8px 0 0; color: var(--bm-muted); max-width: 560px; }
.bm-section--dark .bm-section-head p { color: #AEB3BB; }

/* ==========================================================================
   8. Homepage — hero
   ========================================================================== */
.bm-hero { position: relative; padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 96px); background: var(--bm-off); overflow: hidden; }
.bm-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--bm-line) 1px, transparent 1px), linear-gradient(90deg, var(--bm-line) 1px, transparent 1px); background-size: 48px 48px; opacity: .5; mask-image: linear-gradient(180deg, #000, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); pointer-events: none; }
.bm-hero__grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.bm-hero h1 { font-size: clamp(2.4rem, 6.4vw, 4.6rem); line-height: 1.02; letter-spacing: -.035em; margin-bottom: 22px; }
.bm-hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #3B4049; max-width: 560px; margin-bottom: 30px; }
.bm-hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.bm-hero__note { display: flex; align-items: center; gap: 10px; margin-top: 26px; }
.bm-hero__note svg { width: 44px; height: 30px; flex-shrink: 0; }
.bm-hero__visual { position: relative; }
.bm-hero__visual img { border-radius: var(--bm-radius); width: 100%; aspect-ratio: 4 / 4.2; object-fit: cover; filter: grayscale(1) contrast(1.05); box-shadow: 10px 10px 0 var(--bm-lime); }
.bm-collage { position: relative; aspect-ratio: 1 / 1; max-width: 520px; margin-left: auto; }
.bm-collage svg { width: 100%; height: 100%; }
@media (max-width: 900px) {
	.bm-hero__grid { grid-template-columns: 1fr; }
	.bm-hero__visual { order: 2; max-width: 440px; margin: 0 auto; width: 100%; }
	.bm-collage { margin: 0 auto; }
}
@media (max-width: 480px) {
	.bm-hero__ctas .bm-btn { width: 100%; }
}

/* Topics */
.bm-topic { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px; background: var(--bm-white); border: 2px solid var(--bm-charcoal); border-radius: var(--bm-radius); text-decoration: none; transition: transform .15s, box-shadow .15s; min-height: 100%; }
.bm-topic:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--bm-lime); }
.bm-topic__icon { width: 52px; height: 52px; border-radius: 12px; background: var(--bm-charcoal); color: var(--bm-lime); display: flex; align-items: center; justify-content: center; }
.bm-topic__icon svg { width: 28px; height: 28px; }
.bm-topic h3 { margin: 6px 0 0; font-size: 1.3rem; }
.bm-topic p { margin: 0; color: var(--bm-muted); font-size: .95rem; }
.bm-topic__count { margin-top: auto; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 640px) {
	.bm-topics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.bm-topic { padding: 18px 16px; }
	.bm-topic p { display: none; }
	.bm-topic h3 { font-size: 1.05rem; }
	.bm-topic__icon { width: 44px; height: 44px; }
}

/* Tools spotlight / tool cards */
.bm-tool { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 22px; background: var(--bm-white); color: var(--bm-charcoal); border-radius: var(--bm-radius); box-shadow: var(--bm-shadow); height: 100%; transition: transform .2s, box-shadow .2s; }
.bm-tool:hover { transform: translateY(-3px); box-shadow: var(--bm-shadow-lg); }
.bm-tool__top { display: flex; align-items: center; gap: 14px; }
.bm-tool__logo { width: 52px; height: 52px; border-radius: 12px; flex-shrink: 0; background: var(--bm-charcoal); color: var(--bm-lime); display: flex; align-items: center; justify-content: center; font-family: var(--bm-font-display); font-weight: 700; font-size: 1.4rem; overflow: hidden; }
.bm-tool__logo img { width: 100%; height: 100%; object-fit: contain; background: var(--bm-white); }
.bm-tool__name { font-size: 1.14rem; margin: 0; }
.bm-tool__name a { text-decoration: none; }
.bm-tool__name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.bm-tool__cat { font-size: .8rem; color: var(--bm-muted); }
.bm-tool__desc { margin: 0; font-size: .94rem; color: #3B4049; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bm-tool__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--bm-line); }
.bm-tool__foot a { position: relative; z-index: 2; }
.bm-tool__visit { font-size: .88rem; font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }
.bm-price { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: var(--bm-radius-pill); font-size: .74rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; border: 1.5px solid var(--bm-charcoal); }
.bm-price--free { background: var(--bm-lime); }
.bm-price--freemium { background: #DFFFEA; }
.bm-price--trial { background: #FFF3C4; }
.bm-price--paid { background: var(--bm-white); }
.bm-badge-tested { position: absolute; top: 14px; right: 14px; font-size: .7rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; background: var(--bm-charcoal); color: var(--bm-lime); padding: 4px 8px; border-radius: 6px; }

/* Tutorials */
.bm-tutorial { position: relative; display: flex; gap: 18px; padding: 22px; background: var(--bm-white); border-radius: var(--bm-radius); box-shadow: var(--bm-shadow); height: 100%; }
.bm-tutorial__num { font-family: var(--bm-font-display); font-weight: 700; font-size: 2.4rem; line-height: 1; color: var(--bm-charcoal); -webkit-text-stroke: 0; min-width: 52px; }
.bm-tutorial__num span { background: linear-gradient(transparent 60%, var(--bm-lime) 60%); }
.bm-tutorial h3 { font-size: 1.12rem; margin: 8px 0 6px; }
.bm-tutorial h3 a { text-decoration: none; }
.bm-tutorial h3 a::after { content: ""; position: absolute; inset: 0; }

/* Editor's picks */
.bm-picks { counter-reset: pick; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.bm-pick { position: relative; counter-increment: pick; display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--bm-line); }
.bm-pick::before { content: counter(pick, decimal-leading-zero); font-family: var(--bm-font-display); font-weight: 700; font-size: 1.6rem; color: var(--bm-lime-dark); min-width: 44px; line-height: 1.1; }
.bm-pick h3 { font-size: 1.15rem; margin: 0 0 6px; }
.bm-pick h3 a { text-decoration: none; }
.bm-pick h3 a::after { content: ""; position: absolute; inset: 0; }
@media (max-width: 800px) { .bm-picks { grid-template-columns: 1fr; } }

/* Newsletter */
.bm-newsletter { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(28px, 5vw, 64px); background: var(--bm-charcoal); color: #D9DCE1; border-radius: calc(var(--bm-radius) * 1.6); overflow: hidden; }
.bm-newsletter::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 18px solid var(--bm-lime); opacity: .9; pointer-events: none; }
.bm-newsletter h2 { color: var(--bm-white); margin-bottom: 12px; }
.bm-newsletter ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.bm-newsletter li { display: flex; gap: 10px; align-items: flex-start; }
.bm-newsletter li::before { content: "✓"; color: var(--bm-lime); font-weight: 800; }
.bm-newsletter__form { position: relative; z-index: 1; }
.bm-nl-form { display: flex; flex-direction: column; gap: 12px; }
.bm-nl-form__row { display: flex; gap: 10px; }
.bm-nl-form__row input { flex: 1; border-color: transparent; color: var(--bm-charcoal); }
.bm-nl-form .bm-btn { box-shadow: none; border-color: var(--bm-lime); flex-shrink: 0; }
.bm-nl-form small, .bm-nl-form .bm-consent { font-size: .8rem; color: #AEB3BB; }
.bm-nl-form .bm-consent { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.bm-nl-form .bm-consent input { width: 18px; height: 18px; min-height: 0; margin-top: 2px; accent-color: var(--bm-lime); }
.bm-nl-msg { padding: 12px 14px; border-radius: var(--bm-radius-sm); background: rgba(0,255,102,.12); border: 1px solid var(--bm-lime); color: var(--bm-white); font-weight: 600; }
.bm-hp { position: absolute !important; left: -9999px !important; }
@media (max-width: 860px) {
	.bm-newsletter { grid-template-columns: 1fr; }
	.bm-newsletter::after { width: 140px; height: 140px; right: -50px; top: -50px; border-width: 12px; }
}
@media (max-width: 480px) { .bm-nl-form__row { flex-direction: column; } .bm-nl-form .bm-btn { width: 100%; } }
/* light variant (inside articles) */
.bm-newsletter--inline { grid-template-columns: 1fr; padding: 28px; margin: 48px 0; }
.bm-newsletter--inline::after { width: 120px; height: 120px; right: -40px; top: -40px; border-width: 10px; }

/* Trending */
.bm-trending { display: flex; flex-wrap: wrap; gap: 10px; }
.bm-trending a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 18px; border: 2px solid var(--bm-charcoal); border-radius: var(--bm-radius-pill); text-decoration: none; font-weight: 600; background: var(--bm-white); transition: .15s; }
.bm-trending a::before { content: "#"; color: var(--bm-lime-dark); font-weight: 800; }
.bm-trending a:hover { background: var(--bm-lime); }
.bm-trending small { font-size: .78rem; color: var(--bm-muted); }

/* About strip */
.bm-about-strip { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; }
.bm-about-strip__crown { width: 84px; height: 84px; }
.bm-about-strip p { margin: 0; font-size: 1.12rem; max-width: 760px; }
@media (max-width: 800px) { .bm-about-strip { grid-template-columns: 1fr; text-align: left; gap: 18px; } .bm-about-strip__crown { width: 60px; height: 60px; } }

/* ==========================================================================
   9. Footer
   ========================================================================== */
.bm-footer { background: var(--bm-charcoal); color: #AEB3BB; padding-top: clamp(48px, 7vw, 88px); font-size: .95rem; }
.bm-footer a { color: #D9DCE1; text-decoration: none; }
.bm-footer a:hover { color: var(--bm-lime); }
.bm-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.08); }
.bm-footer h2 { font-family: var(--bm-font-body); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--bm-lime); margin-bottom: 18px; }
.bm-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.bm-footer ul a { display: inline-flex; min-height: 36px; align-items: center; }
.bm-footer__brand p { margin: 18px 0 20px; max-width: 340px; }
.bm-social { display: flex; flex-wrap: wrap; gap: 8px; }
.bm-social a { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid rgba(255,255,255,.18); border-radius: 50%; color: var(--bm-white); }
.bm-social a:hover { background: var(--bm-lime); border-color: var(--bm-lime); color: var(--bm-charcoal); }
.bm-social svg { width: 18px; height: 18px; }
.bm-footer .bm-nl-form__row { flex-direction: column; }
.bm-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 22px 0 calc(22px + env(safe-area-inset-bottom)); font-size: .85rem; }
.bm-footer__bottom ul { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.bm-footer__tagline { font-family: var(--bm-font-display); font-weight: 700; color: var(--bm-lime); letter-spacing: .04em; }
@media (max-width: 1024px) { .bm-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
	.bm-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
	.bm-footer__brand, .bm-footer__nl { grid-column: 1 / -1; }
	.bm-footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   10. Archive / page headers / breadcrumbs / pagination
   ========================================================================== */
.bm-page-head { padding: clamp(36px, 6vw, 72px) 0 clamp(28px, 4vw, 48px); background: var(--bm-off); border-bottom: 1px solid var(--bm-line); }
.bm-page-head h1 { margin-bottom: 12px; }
.bm-page-head__desc { font-size: 1.12rem; color: #3B4049; max-width: 720px; }
.bm-page-head__desc p:last-child { margin-bottom: 0; }
.bm-subtopics { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.bm-subtopics a { min-height: 40px; display: inline-flex; align-items: center; padding: 6px 14px; border-radius: var(--bm-radius-pill); background: var(--bm-white); border: 1.5px solid var(--bm-line); text-decoration: none; font-size: .9rem; font-weight: 600; }
.bm-subtopics a:hover { border-color: var(--bm-charcoal); }

.bm-breadcrumbs { font-size: .85rem; color: var(--bm-muted); margin-bottom: 18px; }
.bm-breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.bm-breadcrumbs li { display: inline-flex; align-items: center; gap: 4px; }
.bm-breadcrumbs li + li::before { content: "›"; margin: 0 4px; color: var(--bm-lime-dark); font-weight: 800; }
.bm-breadcrumbs a { text-decoration: none; }
.bm-breadcrumbs a:hover { text-decoration: underline; }
.bm-breadcrumbs [aria-current] { color: var(--bm-charcoal); font-weight: 600; max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.nav-links, .bm-pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 48px; }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; min-height: 46px; padding: 0 14px; border-radius: var(--bm-radius-pill); background: var(--bm-white); border: 2px solid var(--bm-line); text-decoration: none; font-weight: 700; }
.page-numbers.current { background: var(--bm-charcoal); color: var(--bm-lime); border-color: var(--bm-charcoal); }
a.page-numbers:hover { border-color: var(--bm-charcoal); }
.page-numbers.dots { border: 0; background: none; }

.bm-empty { text-align: center; padding: 56px 24px; background: var(--bm-white); border-radius: var(--bm-radius); border: 2px dashed var(--bm-line); }
.bm-empty h2 { font-size: 1.6rem; }
.bm-empty .bm-search-form { max-width: 520px; margin: 24px auto; }

/* ==========================================================================
   11. Single article
   ========================================================================== */
.bm-article-head { padding: clamp(28px, 5vw, 56px) 0 28px; background: var(--bm-white); }
.bm-article-head__inner { max-width: 880px; }
.bm-article-head h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); margin: 14px 0 16px; }
.bm-standfirst { font-size: clamp(1.08rem, 1.8vw, 1.3rem); color: #3B4049; line-height: 1.55; margin-bottom: 22px; }
.bm-byline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.bm-byline img { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--bm-lime); }
.bm-byline__name { font-weight: 700; text-decoration: none; }
.bm-byline .bm-meta { margin: 0; }
.bm-article-hero { background: linear-gradient(var(--bm-white) 50%, var(--bm-off) 50%); }
.bm-article-hero figure { margin: 0; }
.bm-article-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--bm-radius); }
.bm-article-hero figcaption { font-size: .82rem; color: var(--bm-muted); margin-top: 8px; }

.bm-article-layout { display: grid; grid-template-columns: 250px minmax(0, var(--bm-reading)) 1fr; gap: 48px; padding-top: 40px; padding-bottom: 40px; }
.bm-article-layout--no-toc { grid-template-columns: minmax(0, var(--bm-reading)); justify-content: center; }
.bm-article-aside { position: relative; }
.bm-toc { position: sticky; top: calc(var(--bm-header-h) + 24px); max-height: calc(100vh - var(--bm-header-h) - 48px); overflow: auto; font-size: .9rem; }
.admin-bar .bm-toc { top: calc(var(--bm-header-h) + 56px); }
.bm-toc__title { font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.bm-toc__title::before { content: ""; width: 18px; height: 4px; background: var(--bm-lime); border-radius: 2px; }
.bm-toc ol { list-style: none; margin: 0; padding: 0 0 0 0; border-left: 2px solid var(--bm-line); }
.bm-toc li { margin: 0; }
.bm-toc ol ol { border: 0; }
.bm-toc a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; text-decoration: none; color: var(--bm-muted); line-height: 1.4; }
.bm-toc ol ol a { padding-left: 28px; font-size: .86rem; }
.bm-toc a:hover { color: var(--bm-charcoal); }
.bm-toc a.is-active { color: var(--bm-charcoal); font-weight: 700; border-left-color: var(--bm-lime-dark); }
.bm-toc-mobile { display: none; margin-bottom: 28px; background: var(--bm-white); border: 2px solid var(--bm-charcoal); border-radius: var(--bm-radius); }
.bm-toc-mobile summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 54px; padding: 12px 18px; font-weight: 800; }
.bm-toc-mobile summary::-webkit-details-marker { display: none; }
.bm-toc-mobile summary::after { content: "+"; font-size: 1.4rem; color: var(--bm-charcoal); }
.bm-toc-mobile[open] summary::after { content: "–"; }
.bm-toc-mobile .bm-toc { position: static; max-height: none; padding: 0 18px 16px; }
@media (max-width: 1180px) {
	.bm-article-layout { grid-template-columns: minmax(0, var(--bm-reading)); justify-content: center; }
	.bm-article-aside { display: none; }
	.bm-toc-mobile { display: block; }
}

.bm-share { position: sticky; top: calc(var(--bm-header-h) + 24px); display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.bm-share__label { font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--bm-muted); }
.bm-share a, .bm-share button { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1.5px solid var(--bm-line); background: var(--bm-white); cursor: pointer; color: var(--bm-charcoal); }
.bm-share a:hover, .bm-share button:hover { background: var(--bm-lime); border-color: var(--bm-charcoal); }
.bm-share svg { width: 18px; height: 18px; }
.bm-share--row { position: static; flex-direction: row; flex-wrap: wrap; align-items: center; margin: 32px 0; padding: 18px 0; border-top: 1px solid var(--bm-line); border-bottom: 1px solid var(--bm-line); }
.bm-share--row .bm-share__label { margin-right: 6px; }
@media (max-width: 1180px) { .bm-article-layout > .bm-share-col { display: none; } }
/* Share row under the byline: shown whenever the sticky side column is hidden (tablet + mobile) */
.bm-share--top { display: none; margin: 18px 0 0; padding: 0; border: 0; gap: 8px; }
.bm-share--top a, .bm-share--top button { width: 40px; height: 40px; }
@media (max-width: 1180px) { .bm-share--top { display: flex; } }
.bm-facts__empty { margin: 0 0 16px; padding: 12px 14px; background: #FFF7D6; border: 1px dashed #C9A200; border-radius: 10px; font-size: .85rem; line-height: 1.5; }
.bm-facts__empty a { display: inline-block; margin-top: 6px; font-weight: 700; }

/* Prose */
.bm-prose { font-size: clamp(1.02rem, 1.2vw, 1.12rem); line-height: 1.78; color: #262A31; overflow-wrap: break-word; }
.bm-prose > * + * { margin-top: 0; }
.bm-prose h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 2em 0 .6em; }
.bm-prose h3 { font-size: clamp(1.22rem, 2.2vw, 1.45rem); margin: 1.7em 0 .5em; }
.bm-prose h2::before { content: ""; display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--bm-lime); margin-bottom: 14px; }
.bm-prose a { color: var(--bm-charcoal); font-weight: 600; text-decoration: underline; text-decoration-color: var(--bm-lime-dark); text-decoration-thickness: 3px; }
.bm-prose a:hover { background: var(--bm-lime); text-decoration-color: var(--bm-charcoal); }
.bm-prose ul, .bm-prose ol { margin: 0 0 1.4em; }
.bm-prose li { margin-bottom: .45em; }
.bm-prose ul li::marker { color: var(--bm-lime-dark); }
.bm-prose ol li::marker { font-weight: 800; }
.bm-prose blockquote { margin: 2em 0; padding: 4px 0 4px 24px; border-left: 5px solid var(--bm-lime); font-family: var(--bm-font-display); font-size: 1.3em; line-height: 1.4; font-weight: 600; }
.bm-prose blockquote cite { display: block; margin-top: 10px; font-family: var(--bm-font-body); font-size: .75em; font-weight: 400; color: var(--bm-muted); font-style: normal; }
.bm-prose figure { margin: 2em 0; }
.bm-prose figure img, .bm-prose > p img { border-radius: var(--bm-radius-sm); }
.bm-prose figcaption, .wp-element-caption { font-size: .85rem; color: var(--bm-muted); text-align: center; margin-top: 8px; }
.bm-prose code { font-size: .88em; background: var(--bm-off); padding: 2px 6px; border-radius: 4px; }
.bm-prose pre { background: var(--bm-charcoal); color: #E7E9EC; padding: 20px; border-radius: var(--bm-radius-sm); overflow-x: auto; font-size: .9rem; line-height: 1.6; }
.bm-prose pre code { background: none; padding: 0; color: inherit; }
.bm-prose table, .bm-table-wrap table { width: 100%; border-collapse: collapse; font-size: .94rem; background: var(--bm-white); }
.bm-table-wrap, .wp-block-table { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 2em 0; border: 1px solid var(--bm-line); border-radius: var(--bm-radius-sm); }
.bm-prose th, .bm-prose td { padding: 12px 14px; border-bottom: 1px solid var(--bm-line); text-align: left; vertical-align: top; min-width: 120px; }
.bm-prose thead th { background: var(--bm-charcoal); color: var(--bm-white); font-weight: 700; }
.bm-prose tbody tr:nth-child(even) { background: #FAFBFC; }
.bm-prose iframe, .bm-prose video, .bm-prose embed { max-width: 100%; }
.bm-prose .wp-block-embed__wrapper { position: relative; }
.alignwide { max-width: 1000px; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: 50%; transform: translateX(-50%); }
.alignleft { float: left; margin: 0 1.5em 1em 0; max-width: 50%; }
.alignright { float: right; margin: 0 0 1em 1.5em; max-width: 50%; }
.aligncenter { margin-left: auto; margin-right: auto; }
@media (max-width: 600px) { .alignleft, .alignright { float: none; max-width: 100%; margin: 1.5em 0; } }

.bm-takeaways { margin: 0 0 2.2em; padding: 24px 26px; background: var(--bm-white); border: 2px solid var(--bm-charcoal); border-radius: var(--bm-radius); box-shadow: 6px 6px 0 var(--bm-lime); }
.bm-takeaways h2 { font-size: 1.1rem; margin: 0 0 12px; font-family: var(--bm-font-body); letter-spacing: .08em; text-transform: uppercase; }
.bm-takeaways h2::before { display: none; }
.bm-takeaways ul { margin: 0; }
.bm-takeaways li { margin-bottom: .4em; }
.bm-disclosure { font-size: .86rem; color: #3B4049; background: #EEFFF4; border-left: 4px solid var(--bm-lime-dark); padding: 12px 16px; border-radius: 0 var(--bm-radius-sm) var(--bm-radius-sm) 0; margin-bottom: 28px; }
.bm-updated { font-size: .86rem; color: var(--bm-muted); margin-bottom: 24px; }
.bm-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.bm-tags a { font-size: .85rem; min-height: 36px; display: inline-flex; align-items: center; padding: 4px 14px; border-radius: var(--bm-radius-pill); background: var(--bm-off); text-decoration: none; font-weight: 600; }
.bm-tags a:hover { background: var(--bm-lime); }

.bm-author-box { display: flex; gap: 22px; padding: 28px; background: var(--bm-white); border-radius: var(--bm-radius); box-shadow: var(--bm-shadow); margin: 40px 0; }
.bm-author-box img { width: 84px; height: 84px; border-radius: 50%; border: 3px solid var(--bm-lime); flex-shrink: 0; }
.bm-author-box h2 { font-size: 1.25rem; margin: 2px 0 8px; }
.bm-author-box p { margin: 0 0 10px; color: #3B4049; font-size: .97rem; }
@media (max-width: 520px) { .bm-author-box { flex-direction: column; gap: 14px; padding: 22px; } .bm-author-box img { width: 64px; height: 64px; } }

.bm-post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 40px 0; }
.bm-post-nav a { display: block; padding: 18px 20px; background: var(--bm-white); border-radius: var(--bm-radius); text-decoration: none; box-shadow: var(--bm-shadow); height: 100%; }
.bm-post-nav small { display: block; font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--bm-muted); margin-bottom: 4px; }
.bm-post-nav strong { font-family: var(--bm-font-display); line-height: 1.3; }
.bm-post-nav .next { text-align: right; }
@media (max-width: 600px) { .bm-post-nav { grid-template-columns: 1fr; } .bm-post-nav .next { text-align: left; } }

/* Comments */
.bm-comments { max-width: var(--bm-reading); margin: 0 auto; padding-bottom: 48px; }
.bm-comments ol { list-style: none; padding: 0; }
.bm-comments .children { padding-left: clamp(12px, 4vw, 40px); }
.bm-comments .comment-body { background: var(--bm-white); border-radius: var(--bm-radius); padding: 20px; margin-bottom: 16px; }
.bm-comments .comment-author img { border-radius: 50%; float: left; margin-right: 12px; }
.bm-comments .comment-meta { font-size: .85rem; color: var(--bm-muted); margin-bottom: 10px; overflow: hidden; }
.comment-form p { margin-bottom: 14px; }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form-cookies-consent input { width: auto; min-height: 0; margin-top: 5px; }

/* Author archive */
.bm-author-head { display: flex; gap: 28px; align-items: center; }
.bm-author-head img { width: 120px; height: 120px; border-radius: 50%; border: 4px solid var(--bm-lime); }
@media (max-width: 600px) { .bm-author-head { flex-direction: column; align-items: flex-start; gap: 16px; } .bm-author-head img { width: 88px; height: 88px; } }

/* 404 */
.bm-404 { text-align: center; padding: clamp(56px, 10vw, 120px) 0; }
.bm-404__code { font-family: var(--bm-font-display); font-weight: 700; font-size: clamp(6rem, 22vw, 13rem); line-height: .9; letter-spacing: -.06em; margin: 0; }
.bm-404 .bm-search-form { max-width: 560px; margin: 28px auto; }
.bm-404 .bm-trending { justify-content: center; }

/* ==========================================================================
   12. AI Tools directory
   ========================================================================== */
.bm-dir-controls { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; padding: 20px; background: var(--bm-white); border-radius: var(--bm-radius); box-shadow: var(--bm-shadow); position: sticky; top: calc(var(--bm-header-h) + 10px); z-index: 20; }
.admin-bar .bm-dir-controls { top: calc(var(--bm-header-h) + 42px); }
.bm-dir-search { position: relative; }
.bm-dir-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--bm-muted); pointer-events: none; }
.bm-dir-search input { padding-left: 44px; }
.bm-chips { display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px; }
.bm-chips::-webkit-scrollbar { display: none; }
.bm-chip { flex-shrink: 0; display: inline-flex; align-items: center; min-height: 40px; padding: 6px 16px; border-radius: var(--bm-radius-pill); border: 1.5px solid var(--bm-line); background: var(--bm-white); font-weight: 600; font-size: .9rem; text-decoration: none; cursor: pointer; white-space: nowrap; }
.bm-chip:hover { border-color: var(--bm-charcoal); }
.bm-chip.is-active, .bm-chip[aria-pressed="true"] { background: var(--bm-charcoal); color: var(--bm-lime); border-color: var(--bm-charcoal); }
.bm-chips__label { flex-shrink: 0; align-self: center; font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--bm-muted); margin-right: 4px; }
.bm-dir-count { font-size: .9rem; color: var(--bm-muted); margin: 0 0 16px; }
@media (max-width: 640px) { .bm-dir-controls { position: static; padding: 16px; } }

.bm-tool-head { padding: clamp(28px, 5vw, 56px) 0; background: var(--bm-white); border-bottom: 1px solid var(--bm-line); }
.bm-tool-head__grid { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.bm-tool-head .bm-tool__logo { width: 88px; height: 88px; font-size: 2.2rem; border-radius: 20px; }
.bm-tool-head h1 { margin: 0 0 8px; font-size: clamp(2rem, 4.4vw, 3rem); }
.bm-tool-head__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bm-tool-head__cta { margin-left: auto; display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 720px) { .bm-tool-head__cta { margin-left: 0; width: 100%; } .bm-tool-head__cta .bm-btn { flex: 1; } }
.bm-tool-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; padding-top: 40px; padding-bottom: 56px; align-items: start; }
.bm-facts { position: sticky; top: calc(var(--bm-header-h) + 24px); background: var(--bm-white); border: 2px solid var(--bm-charcoal); border-radius: var(--bm-radius); padding: 22px; box-shadow: 6px 6px 0 var(--bm-lime); }
.bm-facts h2 { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; font-family: var(--bm-font-body); margin-bottom: 12px; }
.bm-facts dl { margin: 0 0 18px; display: grid; grid-template-columns: auto 1fr; gap: 0; }
.bm-facts dt, .bm-facts dd { padding: 10px 0; border-bottom: 1px solid var(--bm-line); margin: 0; font-size: .92rem; }
.bm-facts dt { color: var(--bm-muted); padding-right: 14px; }
.bm-facts dd { font-weight: 600; text-align: right; }
.bm-facts .bm-btn { width: 100%; }
@media (max-width: 960px) { .bm-tool-layout { grid-template-columns: 1fr; gap: 32px; } .bm-facts { position: static; order: -1; } }
.bm-proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 2em 0; }
.bm-proscons > div { padding: 22px; border-radius: var(--bm-radius); background: var(--bm-white); border-top: 5px solid var(--bm-lime-dark); }
.bm-proscons > div.cons { border-top-color: #FF6B4A; }
.bm-proscons h3 { margin-top: 0 !important; font-size: 1.1rem !important; }
.bm-proscons h3::before { display: none !important; }
.bm-proscons ul { margin: 0; padding-left: 1.1em; }
@media (max-width: 640px) { .bm-proscons { grid-template-columns: 1fr; } }
.bm-verdict { padding: 26px; border-radius: var(--bm-radius); background: var(--bm-charcoal); color: #D9DCE1; margin: 2em 0; }
.bm-verdict h2 { color: var(--bm-white); margin-top: 0 !important; }
.bm-verdict h2::before { background: var(--bm-lime); }
.bm-feature-list { list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.bm-feature-list li { display: flex; gap: 12px; padding: 12px 16px; background: var(--bm-white); border-radius: var(--bm-radius-sm); margin: 0 !important; }
.bm-feature-list li::before { content: "✓"; font-weight: 800; color: var(--bm-charcoal); background: var(--bm-lime); border-radius: 50%; width: 24px; height: 24px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; }

/* ==========================================================================
   13. Pages & Elementor compatibility
   ========================================================================== */
.bm-page-content { padding-top: 48px; padding-bottom: 72px; }
.bm-page-content .bm-prose { max-width: var(--bm-reading); margin: 0 auto; }
.bm-elementor-full { width: 100%; }
/* Let Elementor own layout on Elementor-built pages */
.elementor-page .bm-page-content, .bm-elementor-full { padding: 0; }
.elementor-page .bm-prose { max-width: none; font-size: inherit; line-height: inherit; }
.elementor-page .bm-prose h2::before { display: none; }
.elementor-widget-theme-post-content .bm-prose h2::before { display: block; }
.elementor .bm-card__title a::after, .elementor .bm-tool__name a::after { z-index: 1; }
.elementor-location-header + .bm-main, .elementor-location-header ~ main { position: relative; }
/* Elementor nav menu: ensure 44px tap targets on mobile */
.elementor-nav-menu--dropdown a { min-height: 48px; display: flex !important; align-items: center; }

/* Gutenberg colour classes (palette) */
.has-bm-charcoal-color { color: var(--bm-charcoal) !important; }
.has-bm-lime-color { color: var(--bm-lime) !important; }
.has-bm-off-color { color: var(--bm-off) !important; }
.has-bm-white-color { color: var(--bm-white) !important; }
.has-bm-grey-color { color: var(--bm-grey) !important; }
.has-bm-charcoal-background-color { background-color: var(--bm-charcoal) !important; }
.has-bm-lime-background-color { background-color: var(--bm-lime) !important; }
.has-bm-off-background-color { background-color: var(--bm-off) !important; }
.has-bm-white-background-color { background-color: var(--bm-white) !important; }

/* WordPress core classes */
.sticky {}
.bypostauthor {}
.gallery-caption {}
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .85rem; color: var(--bm-muted); }

/* ==========================================================================
   14. Back to top & motion
   ========================================================================== */
.bm-top { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--bm-charcoal); background: var(--bm-lime); color: var(--bm-charcoal); display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px); transition: .2s; z-index: 800; }
.bm-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.bm-progress { position: fixed; left: 0; top: 0; height: 4px; width: 0; background: var(--bm-lime); z-index: 1001; transition: width .1s linear; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	html { scroll-behavior: auto; }
}

@media print {
	.bm-header, .bm-announce, .bm-footer, .bm-share, .bm-toc, .bm-newsletter, .bm-top, .bm-progress, .bm-article-aside, .bm-related { display: none !important; }
	body { background: #fff; }
}

/* ==========================================================================
   15. Mobile fine-tuning
   ========================================================================== */
@media (max-width: 640px) {
	:root { --bm-header-h: 62px; }
	body { font-size: 16px; }
	.bm-logo__mark { width: 30px; height: 30px; }
	.bm-logo__text { font-size: 1rem; }
	.bm-announce { font-size: .8rem; }
	.bm-section-head { align-items: flex-start; flex-direction: column; }
	.bm-article-head .bm-breadcrumbs [aria-current] { max-width: 22ch; }
	.bm-prose blockquote { font-size: 1.12em; padding-left: 16px; }
	.bm-takeaways { padding: 20px; box-shadow: 4px 4px 0 var(--bm-lime); }
	.bm-tutorial { padding: 18px; gap: 12px; }
	.bm-tutorial__num { font-size: 1.8rem; min-width: 38px; }
}

/* Review fixes */
.bm-card--row .bm-ph span { display: none; }
.bm-logo { min-height: 44px; }
@media (max-width: 640px) {
	.bm-hero__visual { max-width: 320px; }
	.bm-card__media { aspect-ratio: 16 / 9; }
}
.bm-search-form .bm-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.bm-search-form input[type="search"] { min-width: 0; }
.bm-card__body > .bm-pill { align-self: flex-start; }
.bm-drawer .bm-search-form .bm-btn { width: auto; }
@media (max-width: 960px) { .bm-tool-layout > aside { order: -1; } }
.bm-prose .bm-trending a { text-decoration: none; font-weight: 600; }
.bm-prose .bm-trending a:hover { background: var(--bm-lime); }
.bm-prose .bm-chip { cursor: default; }
