/* ==========================================================================
   Beirut Mirror — main stylesheet
   Single file, no framework, mobile-first, ~1 request.
   ========================================================================== */

:root {
	--bm-primary: #663200;
	--bm-primary-dark: #472300;
	--bm-primary-soft: #f4ece4;
	--bm-accent: #c8102e;
	--bm-text: #141210;
	--bm-text-2: #3f3a36;
	--bm-muted: #6f6a66;
	--bm-border: #e6e1dc;
	--bm-bg: #ffffff;
	--bm-bg-soft: #f7f4f1;
	--bm-dark: #1b1512;
	--bm-dark-2: #241c18;
	--bm-placeholder: #ede6df;
	--bm-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	--bm-container: 1200px;
	--bm-gutter: 20px;
	--bm-gap: 32px;
	--bm-sidebar: 320px;
	--bm-radius: 4px;
	--bm-nav-h: 56px;
	--bm-shadow: 0 10px 30px rgba(20, 18, 16, .12);
	--bm-ease: cubic-bezier(.2, .7, .2, 1);
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--bm-nav-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
	margin: 0;
	font-family: var(--bm-font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--bm-text);
	background: var(--bm-bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg, video, iframe { max-width: 100%; height: auto; }
img { display: block; }
a { color: inherit; text-decoration: none; transition: color .2s var(--bm-ease); }
a:hover { color: var(--bm-primary); }
h1, h2, h3, h4, h5, h6 { margin: 0; line-height: 1.25; font-weight: 800; letter-spacing: -.01em; color: var(--bm-text); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
figure { margin: 0; }
time { white-space: nowrap; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.bm-skip { position: absolute; left: -999px; top: 8px; z-index: 1000; padding: 10px 16px; background: var(--bm-primary); color: #fff; border-radius: var(--bm-radius); }
.bm-skip:focus { left: 8px; color: #fff; }
:focus-visible { outline: 2px solid var(--bm-primary); outline-offset: 2px; }

.bm-container { width: 100%; max-width: var(--bm-container); margin-inline: auto; padding-inline: var(--bm-gutter); }
.bm-site { display: flex; flex-direction: column; min-height: 100vh; }
.bm-main-wrap { flex: 1; padding: 28px 0 56px; }

.bm-icon { display: inline-block; vertical-align: middle; flex: none; }
.bm-btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 11px 22px; border: 0; border-radius: var(--bm-radius);
	background: var(--bm-primary); color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .02em;
	transition: background .2s var(--bm-ease), transform .2s var(--bm-ease);
}
.bm-btn:hover { background: var(--bm-primary-dark); color: #fff; transform: translateY(-1px); }

/* --------------------------------------------------------------------------
   Header: top bar
   -------------------------------------------------------------------------- */
.bm-topbar { background: var(--bm-bg-soft); border-bottom: 1px solid var(--bm-border); font-size: 12px; }
.bm-topbar__inner { display: flex; align-items: center; gap: 20px; min-height: 36px; }
.bm-topbar__date { color: var(--bm-muted); font-weight: 500; }
.bm-topbar__nav { margin-inline-start: auto; }
.bm-topbar__menu { display: flex; gap: 2px; list-style: none; }
.bm-topbar__menu a { display: block; padding: 8px 10px; text-transform: uppercase; font-weight: 700; letter-spacing: .06em; color: var(--bm-text-2); }
.bm-topbar__menu a:hover, .bm-topbar__menu .current-menu-item > a { color: var(--bm-primary); }
.bm-social { display: flex; gap: 2px; list-style: none; }
.bm-social a { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; color: var(--bm-text-2); transition: background .2s, color .2s; }
.bm-social a:hover { background: var(--bm-primary); color: #fff; }
.bm-social--boxes { gap: 8px; flex-wrap: wrap; }
.bm-social--boxes a { width: 38px; height: 38px; border-radius: var(--bm-radius); background: var(--bm-bg-soft); border: 1px solid var(--bm-border); }
.bm-social--boxes a:hover { background: var(--bm-primary); border-color: var(--bm-primary); }

/* Brand row */
.bm-header__brand { background: var(--bm-bg); }
.bm-header__brand-inner { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px 0; text-align: center; }
.bm-logo__h { margin: 0; line-height: 0; }
.bm-logo img { width: auto; height: 40px; max-width: 100%; margin-inline: auto; }
.bm-header__ad { margin: 0; }
.bm-header__ad > * { margin: 0 auto; }

/* Navigation bar */
.bm-nav { background: var(--bm-primary); color: #fff; z-index: 60; box-shadow: 0 2px 0 rgba(0, 0, 0, .08); }
.bm-nav--sticky { position: sticky; top: 0; }
.admin-bar .bm-nav--sticky { top: 32px; }
@media (max-width: 782px) { .admin-bar .bm-nav--sticky { top: 46px; } }
.bm-nav__inner { display: flex; align-items: stretch; min-height: var(--bm-nav-h); position: relative; }
.bm-nav__logo { display: none; align-items: center; margin-inline-end: 16px; opacity: 0; width: 0; overflow: hidden; transition: opacity .25s var(--bm-ease), width .25s var(--bm-ease); }
.bm-nav__logo img { height: 24px; width: auto; filter: brightness(0) invert(1); }
.bm-nav.is-scrolled .bm-nav__logo { opacity: 1; width: 190px; }
.bm-nav__primary { flex: 1; min-width: 0; display: none; overflow: hidden; }
.bm-menu { display: flex; list-style: none; height: 100%; }
.bm-menu > li { position: static; }
.bm-menu > li > a {
	display: flex; align-items: center; gap: 3px; height: var(--bm-nav-h); padding: 0 12px;
	font-size: 14.5px; font-weight: 700; text-transform: none; letter-spacing: 0; color: #fff; white-space: nowrap;
	border-bottom: 3px solid transparent; transition: background .2s;
}
.bm-menu > li > a .bm-icon { opacity: .7; }
.bm-menu > li:hover > a, .bm-menu > li:focus-within > a, .bm-menu > li.current-menu-item > a, .bm-menu > li.current-menu-ancestor > a, .bm-menu > li.current-menu-parent > a { background: rgba(0, 0, 0, .18); color: #fff; }
.bm-menu > li.current-menu-item > a { border-bottom-color: #fff; }
/* Standard dropdown */
.bm-menu .sub-menu {
	position: absolute; top: 100%; left: auto; min-width: 230px; list-style: none; padding: 8px 0;
	background: var(--bm-bg); color: var(--bm-text); box-shadow: var(--bm-shadow); border-top: 3px solid var(--bm-primary);
	opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s var(--bm-ease), transform .2s var(--bm-ease), visibility .2s; z-index: 70;
}
.bm-menu > li { position: relative; }
.bm-menu > li.menu-item-has-mega { position: static; }
.bm-menu li:hover > .sub-menu, .bm-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.bm-menu .sub-menu a { display: block; padding: 9px 18px; font-size: 14px; font-weight: 600; }
.bm-menu .sub-menu a:hover { background: var(--bm-bg-soft); color: var(--bm-primary); }
/* Mega panel */
.bm-mega {
	position: absolute; left: 0; right: 0; top: 100%; z-index: 70;
	background: var(--bm-bg); color: var(--bm-text); box-shadow: var(--bm-shadow); border-top: 3px solid var(--bm-primary);
	opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s var(--bm-ease), transform .2s var(--bm-ease), visibility .2s;
}
.bm-menu > li:hover > .bm-mega, .bm-menu > li:focus-within > .bm-mega { opacity: 1; visibility: visible; transform: none; }
.bm-mega__inner { display: grid; grid-template-columns: 1fr; gap: 24px; padding: 24px; }
.bm-mega__inner--with-subs { grid-template-columns: 200px 1fr; }
.bm-mega__subs { list-style: none; border-inline-end: 1px solid var(--bm-border); padding-inline-end: 16px; }
.bm-mega__subs a { display: block; padding: 7px 10px; border-radius: var(--bm-radius); font-size: 13px; font-weight: 600; color: var(--bm-text-2); }
.bm-mega__subs a:hover { background: var(--bm-bg-soft); color: var(--bm-primary); }
.bm-mega__subs .is-all { color: var(--bm-primary); text-transform: uppercase; font-size: 12px; letter-spacing: .05em; }
.bm-mega__posts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.bm-mega__media { display: block; border-radius: var(--bm-radius); overflow: hidden; margin-bottom: 10px; aspect-ratio: 3 / 2; background: var(--bm-placeholder); }
.bm-mega__img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--bm-ease); }
.bm-mega__card:hover .bm-mega__img { transform: scale(1.04); }
.bm-mega__title { font-size: 14px; line-height: 1.35; font-weight: 700; }
.bm-mega__date { display: block; margin-top: 6px; font-size: 11px; color: var(--bm-muted); }
.bm-mega__empty { grid-column: 1 / -1; color: var(--bm-muted); font-size: 14px; margin: 0; }

/* Search */
.bm-nav__search { position: relative; margin-inline-start: auto; display: flex; align-items: center; }
.bm-nav__search-toggle, .bm-nav__toggle {
	display: inline-flex; align-items: center; justify-content: center; width: 44px; height: var(--bm-nav-h);
	border: 0; background: transparent; color: #fff; transition: background .2s;
}
.bm-nav__search-toggle:hover, .bm-nav__toggle:hover, .bm-nav__search-toggle[aria-expanded="true"] { background: rgba(0, 0, 0, .18); }
.bm-nav__toggle { margin-inline-start: -12px; }
.bm-search { position: absolute; right: 0; top: 100%; width: min(380px, calc(100vw - 2 * var(--bm-gutter))); padding: 14px; background: var(--bm-bg); color: var(--bm-text); box-shadow: var(--bm-shadow); border-top: 3px solid var(--bm-primary); z-index: 70; }
.bm-search[hidden] { display: none; }
.bm-search__form { display: flex; gap: 8px; }
.bm-search__input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--bm-border); border-radius: var(--bm-radius); }
.bm-search__submit { padding: 10px 16px; border: 0; border-radius: var(--bm-radius); background: var(--bm-primary); color: #fff; font-weight: 700; }

/* Ticker */
.bm-ticker { background: var(--bm-bg); border-bottom: 1px solid var(--bm-border); font-size: 13px; }
.bm-ticker__inner { display: flex; align-items: center; gap: 14px; min-height: 42px; }
.bm-ticker__label { flex: none; position: relative; z-index: 1; padding: 4px 11px; background: var(--bm-primary); color: #fff; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; border-radius: 2px; }
.bm-ticker__viewport { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 40px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 40px), transparent 100%); }
.bm-ticker__track { display: flex; width: max-content; animation: bm-marquee var(--bm-ticker-duration, 50s) linear infinite; will-change: transform; }
.bm-ticker__viewport:hover .bm-ticker__track, .bm-ticker__viewport:focus-within .bm-ticker__track { animation-play-state: paused; }
.bm-ticker__list { display: flex; flex: none; list-style: none; white-space: nowrap; }
.bm-ticker__list li { display: flex; align-items: center; }
.bm-ticker__list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--bm-primary); margin: 0 16px; flex: none; }
.bm-ticker__list a { font-weight: 600; color: var(--bm-text-2); }
.bm-ticker__list a:hover { color: var(--bm-primary); }
@keyframes bm-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Mobile menu */
.bm-mobile { position: fixed; inset: 0; z-index: 100; }
.bm-mobile[hidden] { display: none; }
.bm-mobile__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); }
.bm-mobile__panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(340px, 88vw); background: var(--bm-bg); overflow-y: auto; padding: 18px 20px 30px; box-shadow: var(--bm-shadow); animation: bm-slide .25s var(--bm-ease); }
@keyframes bm-slide { from { transform: translateX(-100%); } to { transform: none; } }
.bm-mobile__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.bm-mobile__head img { height: 26px; width: auto; }
.bm-mobile__close { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border: 0; background: var(--bm-bg-soft); border-radius: 50%; }
.bm-mobile__search { display: flex; gap: 6px; margin-bottom: 16px; }
.bm-mobile__search input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--bm-border); border-radius: var(--bm-radius); }
.bm-mobile__search button { width: 44px; border: 0; border-radius: var(--bm-radius); background: var(--bm-primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.bm-mobile__menu { list-style: none; border-top: 1px solid var(--bm-border); }
.bm-mobile__menu li { border-bottom: 1px solid var(--bm-border); }
.bm-mobile__menu a { display: flex; align-items: center; justify-content: space-between; padding: 12px 4px; font-weight: 700; font-size: 15px; }
.bm-mobile__menu .sub-menu { list-style: none; padding-inline-start: 14px; display: none; }
.bm-mobile__menu li.is-open > .sub-menu { display: block; }
.bm-mobile__menu .sub-menu a { font-weight: 500; font-size: 14px; }
.bm-mobile__menu .bm-mega { display: none; }
.bm-mobile__sub-toggle { border: 0; background: transparent; padding: 8px; display: inline-flex; transition: transform .2s; }
.bm-mobile__menu li.is-open > a > .bm-mobile__sub-toggle { transform: rotate(180deg); }
.bm-mobile__menu--secondary { margin-top: 18px; }
.bm-mobile__menu--secondary a { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--bm-muted); }
.bm-mobile__social { margin-top: 20px; }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.bm-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--bm-gap); align-items: start; }
.bm-content { min-width: 0; }
.bm-sidebar { min-width: 0; align-self: stretch; }
.bm-sidebar__sticky { position: sticky; top: calc(var(--bm-nav-h) + 24px); display: flex; flex-direction: column; gap: 32px; }
.admin-bar .bm-sidebar__sticky { top: calc(var(--bm-nav-h) + 56px); }

/* --------------------------------------------------------------------------
   Shared pieces
   -------------------------------------------------------------------------- */
.bm-cat {
	display: inline-block; padding: 3px 9px; background: var(--bm-primary); color: #fff;
	font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; line-height: 1.4; border-radius: 2px;
	transition: background .2s;
}
.bm-cat:hover { background: var(--bm-primary-dark); color: #fff; }
.bm-cat--text { padding: 0; background: transparent; color: var(--bm-primary); }
.bm-cat--text:hover { background: transparent; color: var(--bm-primary-dark); }
.bm-cat--on-img { position: absolute; left: 12px; bottom: 12px; }
.bm-cat--big { font-size: 12px; padding: 5px 12px; }

.bm-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 12px; color: var(--bm-muted); }
.bm-meta a { color: inherit; }
.bm-meta a:hover { color: var(--bm-primary); }
.bm-meta__author { font-weight: 700; color: var(--bm-text-2); }
.bm-meta__author::after { content: ""; }
.bm-meta__reading, .bm-meta__comments { display: inline-flex; align-items: center; gap: 4px; }
.bm-meta--light { color: rgba(255, 255, 255, .8); }
.bm-meta--light .bm-meta__author { color: #fff; }

.bm-block { margin-bottom: 44px; }
.bm-block__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; border-bottom: 2px solid var(--bm-border); }
.bm-block__title { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; line-height: 1; }
.bm-block__title span { display: inline-block; padding: 9px 14px; background: var(--bm-primary); color: #fff; margin-bottom: -2px; border-bottom: 2px solid var(--bm-primary); }
.bm-block__title a { color: #fff; }
.bm-block__more { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--bm-muted); padding-bottom: 8px; }
.bm-block__more:hover { color: var(--bm-primary); }
.bm-empty { color: var(--bm-muted); }

/* Cards */
.bm-card { display: flex; flex-direction: column; min-width: 0; }
.bm-card__media { position: relative; display: block; overflow: hidden; border-radius: var(--bm-radius); aspect-ratio: 3 / 2; background: var(--bm-placeholder); }
.bm-card__link { display: block; height: 100%; }
.bm-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--bm-ease); }
.bm-card:hover .bm-card__img { transform: scale(1.04); }
.bm-card__body { padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.bm-card__title { font-size: 17px; line-height: 1.3; }
.bm-card__title a:hover { color: var(--bm-primary); }
.bm-card__excerpt { margin: 0; font-size: 14px; color: var(--bm-text-2); line-height: 1.55; }
.bm-card--lead .bm-card__title { font-size: 22px; }
.bm-card--compact .bm-card__title { font-size: 15px; }
.bm-card--wide { margin-bottom: 8px; }
.bm-card--wide .bm-card__media { aspect-ratio: 16 / 9; }
.bm-card--wide .bm-card__title { font-size: 28px; }
.bm-placeholder { width: 100%; height: 100%; }

.bm-grid { display: grid; gap: 24px; }
.bm-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bm-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Overlay cards */
.bm-overlay { position: relative; overflow: hidden; border-radius: var(--bm-radius); background: var(--bm-dark); aspect-ratio: 3 / 2; }
.bm-overlay__link { display: block; height: 100%; }
.bm-overlay__img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--bm-ease); opacity: .96; }
.bm-overlay:hover .bm-overlay__img { transform: scale(1.05); }
.bm-overlay__body { position: absolute; inset: auto 0 0 0; padding: 18px; background: linear-gradient(180deg, rgba(20, 14, 10, 0) 0%, rgba(20, 14, 10, .55) 45%, rgba(20, 14, 10, .9) 100%); display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.bm-overlay__body::before { content: ""; position: absolute; inset: -60px 0 0 0; z-index: -1; }
.bm-overlay__title { font-size: 18px; line-height: 1.3; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
.bm-overlay__title a { color: #fff; }
.bm-overlay__title a:hover { color: #fff; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.bm-overlay--hero { aspect-ratio: auto; height: 100%; min-height: 420px; }
.bm-overlay--hero .bm-overlay__body { padding: 26px; }
.bm-overlay--hero .bm-overlay__title { font-size: 30px; }
.bm-overlay--small .bm-overlay__title { font-size: 14px; }
.bm-overlay--small .bm-overlay__body { padding: 12px; }
.bm-overlay--small .bm-meta { display: none; }

/* Hero */
.bm-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--bm-gap); margin-bottom: 44px; }
.bm-hero__main { min-width: 0; }
.bm-hero__side { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.bm-hero__side .bm-block__head { margin-bottom: 0; }
.bm-hero__side .bm-card__title { font-size: 18px; }

/* Lists */
.bm-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.bm-list__item { display: flex; gap: 14px; align-items: flex-start; }
.bm-list__item--text { padding-inline-start: 14px; border-inline-start: 3px solid var(--bm-primary-soft); }
.bm-list__thumb { flex: none; width: 110px; aspect-ratio: 3 / 2; border-radius: var(--bm-radius); overflow: hidden; background: var(--bm-placeholder); }
.bm-list__img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--bm-ease); }
.bm-list__item:hover .bm-list__img { transform: scale(1.05); }
.bm-list__body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.bm-list__title { font-size: 15px; line-height: 1.35; font-weight: 700; }
.bm-list__title a:hover { color: var(--bm-primary); }
.bm-list__date { font-size: 11.5px; color: var(--bm-muted); }
.bm-list--inline { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--bm-border); }

/* Block: featured (1 big + list) */
.bm-block__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.bm-block__lead { min-width: 0; }

/* Block: half pair */
.bm-row-half { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--bm-gap); }
.bm-block--half .bm-card { margin-bottom: 18px; }

/* Block: overlay tiles */
.bm-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bm-tiles .bm-overlay--big { grid-column: 1 / -1; aspect-ratio: 16 / 9; }

/* Rows (archives / more stories) */
.bm-rows { display: flex; flex-direction: column; gap: 26px; }
.bm-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding-bottom: 26px; border-bottom: 1px solid var(--bm-border); }
.bm-row:last-child { border-bottom: 0; padding-bottom: 0; }
.bm-row__media { display: block; border-radius: var(--bm-radius); overflow: hidden; aspect-ratio: 3 / 2; background: var(--bm-placeholder); }
.bm-row__img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--bm-ease); }
.bm-row:hover .bm-row__img { transform: scale(1.04); }
.bm-row__body { min-width: 0; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.bm-row__title { font-size: 20px; line-height: 1.3; }
.bm-row__title a:hover { color: var(--bm-primary); }
.bm-row__excerpt { margin: 0; font-size: 14.5px; color: var(--bm-text-2); }

/* Ads */
.bm-ad { display: flex; justify-content: center; margin: 0 0 32px; }
.bm-ad--article { margin: 28px 0; }
.bm-ad--sidebar, .bm-ad--widget { margin: 0; }
.bm-ad:empty { display: none; }

/* --------------------------------------------------------------------------
   Sidebar / widgets
   -------------------------------------------------------------------------- */
.bm-widget { min-width: 0; }
.bm-widget__title { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; border-bottom: 2px solid var(--bm-border); margin-bottom: 18px; line-height: 1; }
.bm-widget__title span { display: inline-block; padding: 9px 14px; background: var(--bm-primary); color: #fff; margin-bottom: -2px; border-bottom: 2px solid var(--bm-primary); }
.bm-widget ul { list-style: none; }
.bm-widget p:last-child { margin-bottom: 0; }

.bm-plist { display: flex; flex-direction: column; gap: 16px; }
.bm-plist__item { display: flex; gap: 14px; align-items: flex-start; }
.bm-plist__num { flex: none; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800; color: var(--bm-primary); border: 2px solid var(--bm-primary-soft); border-radius: 50%; }
.bm-plist__thumb { flex: none; width: 92px; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--bm-radius); background: var(--bm-placeholder); }
.bm-plist__img { width: 100%; height: 100%; object-fit: cover; }
.bm-plist__body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.bm-plist__title { font-size: 14.5px; line-height: 1.35; font-weight: 700; }
.bm-plist__title a:hover { color: var(--bm-primary); }
.bm-plist__date { font-size: 11.5px; color: var(--bm-muted); }

.bm-catlist li { border-bottom: 1px solid var(--bm-border); }
.bm-catlist a { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; font-weight: 600; font-size: 14px; }
.bm-catlist__count { font-size: 11px; font-weight: 700; color: var(--bm-muted); background: var(--bm-bg-soft); padding: 2px 8px; border-radius: 10px; }

/* Core widgets niceties */
.bm-widget .wp-block-search__button, .bm-widget .search-submit { background: var(--bm-primary); color: #fff; border: 0; border-radius: var(--bm-radius); padding: 8px 14px; }
.bm-widget .wp-block-search__input, .bm-widget .search-field { border: 1px solid var(--bm-border); border-radius: var(--bm-radius); padding: 8px 10px; }
.bm-widget .tagcloud a, .bm-tags a { display: inline-block; margin: 0 6px 6px 0; padding: 5px 10px; font-size: 12px !important; font-weight: 600; background: var(--bm-bg-soft); border: 1px solid var(--bm-border); border-radius: 2px; }
.bm-widget .tagcloud a:hover, .bm-tags a:hover { background: var(--bm-primary); border-color: var(--bm-primary); color: #fff; }
.bm-widget .widget_categories li, .bm-widget .widget_archive li, .bm-widget .widget_recent_entries li { padding: 8px 0; border-bottom: 1px solid var(--bm-border); font-size: 14px; }

/* --------------------------------------------------------------------------
   Archive header, chips, pagination, breadcrumbs
   -------------------------------------------------------------------------- */
.bm-crumbs { font-size: 12px; color: var(--bm-muted); margin-bottom: 14px; }
.bm-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 6px; list-style: none; }
.bm-crumbs li + li::before { content: "›"; margin-inline-end: 6px; color: var(--bm-border); }
.bm-crumbs a { color: var(--bm-muted); font-weight: 600; }
.bm-crumbs a:hover { color: var(--bm-primary); }
.bm-crumbs [aria-current] { color: var(--bm-text-2); font-weight: 500; }

.bm-archive-head { margin-bottom: 28px; padding-bottom: 20px; border-bottom: 3px solid var(--bm-primary); }
.bm-archive-head__row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; }
.bm-archive-head__title { font-size: 34px; letter-spacing: -.02em; }
.bm-archive-head__count { font-size: 13px; color: var(--bm-muted); font-weight: 600; }
.bm-archive-head__desc { margin-top: 10px; color: var(--bm-text-2); font-size: 15px; max-width: 70ch; }
.bm-archive-head__desc p:last-child { margin: 0; }
.bm-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-top: 16px; }
.bm-chips a { display: inline-block; padding: 6px 12px; font-size: 12.5px; font-weight: 700; border: 1px solid var(--bm-border); border-radius: 20px; background: var(--bm-bg); }
.bm-chips a:hover { background: var(--bm-primary); border-color: var(--bm-primary); color: #fff; }

.bm-pagination { margin-top: 36px; }
.bm-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.bm-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--bm-border); border-radius: var(--bm-radius); font-weight: 700; font-size: 14px; }
.bm-pagination .page-numbers:hover { border-color: var(--bm-primary); color: var(--bm-primary); }
.bm-pagination .page-numbers.current { background: var(--bm-primary); border-color: var(--bm-primary); color: #fff; }
.bm-pagination .page-numbers.dots { border: 0; }
.bm-pagination .screen-reader-text { position: absolute; }

.bm-search-inline { display: flex; gap: 8px; margin-bottom: 28px; }
.bm-search-inline input { flex: 1; min-width: 0; padding: 11px 14px; border: 1px solid var(--bm-border); border-radius: var(--bm-radius); }

/* --------------------------------------------------------------------------
   Single article
   -------------------------------------------------------------------------- */
.bm-article { margin-bottom: 44px; }
.bm-article__header { margin-bottom: 24px; }
.bm-article__title { font-size: clamp(28px, 4vw, 42px); line-height: 1.15; letter-spacing: -.02em; margin: 14px 0 12px; }
.bm-article__excerpt { font-size: 18px; line-height: 1.55; color: var(--bm-text-2); margin: 0 0 18px; font-weight: 400; }
.bm-article__meta { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--bm-border); border-bottom: 1px solid var(--bm-border); }
.bm-article__avatar img { width: 44px; height: 44px; border-radius: 50%; }
.bm-meta--article { font-size: 13px; }
.bm-meta--article .bm-meta__author { font-size: 14px; color: var(--bm-text); }
.bm-article__figure { margin: 0 0 28px; }
.bm-article__img { width: 100%; border-radius: var(--bm-radius); aspect-ratio: 16 / 9; object-fit: cover; }
.bm-article__figure figcaption { margin-top: 8px; font-size: 12.5px; color: var(--bm-muted); }
.bm-article__footer { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--bm-border); display: flex; flex-direction: column; gap: 20px; }
.bm-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.bm-tags__label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; margin-inline-end: 6px; color: var(--bm-muted); }

/* Share */
.bm-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.bm-share__label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--bm-muted); margin-inline-end: 4px; }
.bm-share__btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid var(--bm-border); border-radius: var(--bm-radius); background: var(--bm-bg); color: var(--bm-text-2); transition: all .2s; }
.bm-share__btn:hover { color: #fff; border-color: transparent; transform: translateY(-1px); }
.bm-share__btn--facebook:hover { background: #1877f2; }
.bm-share__btn--twitter:hover { background: #111; }
.bm-share__btn--linkedin:hover { background: #0a66c2; }
.bm-share__btn--whatsapp:hover { background: #25d366; }
.bm-share__btn--telegram:hover { background: #2aabee; }
.bm-share__btn--mail:hover, .bm-share__btn--copy:hover { background: var(--bm-primary); }
.bm-share__btn--copy.is-copied { background: #16a34a; color: #fff; border-color: transparent; }

/* Entry content typography */
.bm-entry { font-size: 18px; line-height: 1.8; color: var(--bm-text); }
.bm-entry > * { margin-block: 0 1.4em; }
.bm-entry > *:last-child { margin-bottom: 0; }
.bm-entry p { margin: 0 0 1.4em; }
.bm-has-dropcap.bm-single-post .bm-entry > p:first-of-type::first-letter {
	float: left; font-size: 3.9em; line-height: .8; font-weight: 800; margin: .08em .14em 0 0; color: var(--bm-primary);
}
.bm-entry h2, .bm-entry h3, .bm-entry h4 { margin: 1.6em 0 .6em; line-height: 1.25; }
.bm-entry h2 { font-size: 28px; padding-bottom: .3em; border-bottom: 2px solid var(--bm-border); }
.bm-entry h2::after { content: ""; display: block; width: 60px; height: 2px; background: var(--bm-primary); margin-bottom: -2px; margin-top: .3em; }
.bm-entry h3 { font-size: 22px; }
.bm-entry h4 { font-size: 18px; }
.bm-entry a:not(.wp-block-button__link) { color: var(--bm-primary); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(102, 50, 0, .4); }
.bm-entry a:not(.wp-block-button__link):hover { text-decoration-color: currentColor; }
.bm-entry ul, .bm-entry ol { padding-inline-start: 1.4em; margin: 0 0 1.4em; }
.bm-entry li { margin-bottom: .45em; }
.bm-entry li::marker { color: var(--bm-primary); font-weight: 700; }
.bm-entry blockquote { margin: 2em 0; padding: 1.2em 1.6em 1.2em 2em; border-inline-start: 4px solid var(--bm-primary); background: var(--bm-bg-soft); font-size: 1.1em; font-style: italic; line-height: 1.6; position: relative; border-radius: 0 var(--bm-radius) var(--bm-radius) 0; }
.bm-entry blockquote::before { content: "\201C"; position: absolute; top: .1em; left: .35em; font-size: 3em; line-height: 1; color: var(--bm-primary); opacity: .3; font-style: normal; font-weight: 800; }
.bm-entry blockquote p:last-child { margin: 0; }
.bm-entry blockquote cite { display: block; margin-top: .6em; font-size: .8em; font-style: normal; font-weight: 700; color: var(--bm-muted); }
.bm-entry figure { margin: 2em 0; }
.bm-entry figure img, .bm-entry img { border-radius: var(--bm-radius); }
.bm-entry figcaption { font-size: 13px; color: var(--bm-muted); margin-top: 8px; text-align: center; }
.bm-entry .alignwide { margin-inline: 0; }
.bm-entry .alignleft { float: left; margin: .4em 1.6em 1em 0; max-width: 50%; }
.bm-entry .alignright { float: right; margin: .4em 0 1em 1.6em; max-width: 50%; }
.bm-entry .aligncenter { margin-inline: auto; }
.bm-entry hr { border: 0; height: 2px; background: var(--bm-border); margin: 2.4em auto; width: 120px; }
.bm-entry table { width: 100%; border-collapse: collapse; font-size: .9em; margin: 0 0 1.6em; }
.bm-entry th, .bm-entry td { padding: .7em .9em; border: 1px solid var(--bm-border); text-align: left; vertical-align: top; }
.bm-entry th { background: var(--bm-bg-soft); font-weight: 700; }
.bm-entry tr:nth-child(even) td { background: #fbf9f7; }
.bm-entry pre { background: var(--bm-dark); color: #f3ede8; padding: 1.2em 1.4em; border-radius: var(--bm-radius); overflow: auto; font-size: .85em; line-height: 1.6; }
.bm-entry code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; background: var(--bm-bg-soft); padding: .15em .4em; border-radius: 3px; }
.bm-entry pre code { background: none; padding: 0; }
.bm-entry iframe { max-width: 100%; }
.bm-embed, .wp-block-embed__wrapper { position: relative; }
.bm-embed iframe, .wp-block-embed.is-type-video .wp-block-embed__wrapper iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; }
.bm-entry .wp-block-button__link { background: var(--bm-primary); color: #fff; border-radius: var(--bm-radius); font-weight: 700; }
.bm-entry .wp-block-pullquote { border-top: 3px solid var(--bm-primary); border-bottom: 3px solid var(--bm-primary); padding: 1.6em 0; text-align: center; }
.bm-entry .wp-block-pullquote p { font-size: 1.3em; font-weight: 700; line-height: 1.4; }
.bm-entry .has-text-align-center { text-align: center; }
.bm-entry .wp-block-image.alignfull { margin-inline: 0; }
.bm-entry .wp-block-gallery { margin-bottom: 1.6em; }
.bm-entry .wp-block-columns { gap: 1.5em; }
.bm-entry .bm-notice { font-size: 15px; }
.bm-page-links { margin-top: 2em; font-weight: 700; }
.bm-page-links a { display: inline-block; margin-inline-start: 6px; padding: 4px 10px; border: 1px solid var(--bm-border); border-radius: var(--bm-radius); }

/* Table of contents */
.bm-toc { margin: 0 0 2em; font-size: 15px; background: var(--bm-bg-soft); border: 1px solid var(--bm-border); border-inline-start: 4px solid var(--bm-primary); border-radius: var(--bm-radius); }
.bm-toc summary { cursor: pointer; padding: 12px 16px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 12.5px; list-style: none; display: flex; justify-content: space-between; }
.bm-toc summary::-webkit-details-marker { display: none; }
.bm-toc summary::after { content: "−"; font-size: 16px; }
.bm-toc details:not([open]) summary::after { content: "+"; }
.bm-toc ol { padding: 0 16px 12px 36px; margin: 0; }
.bm-toc li { margin: 0 0 6px; }
.bm-toc li a { color: var(--bm-text-2); font-weight: 600; }
.bm-toc li a:hover { color: var(--bm-primary); }
.bm-toc__h3 { list-style: circle; margin-inline-start: 18px; font-size: .95em; }

/* Author box */
.bm-author { display: flex; gap: 22px; align-items: flex-start; padding: 24px; margin-bottom: 44px; background: var(--bm-bg-soft); border-radius: var(--bm-radius); border-inline-start: 4px solid var(--bm-primary); }
.bm-author__avatar img { width: 84px; height: 84px; border-radius: 50%; flex: none; }
.bm-author__body { min-width: 0; }
.bm-author__label { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--bm-muted); margin-bottom: 4px; }
.bm-author__name { font-size: 20px; margin-bottom: 8px; }
.bm-author__bio { font-size: 14.5px; color: var(--bm-text-2); margin: 0 0 10px; }
.bm-author__more { font-size: 13px; font-weight: 700; color: var(--bm-primary); }

/* Prev / next */
.bm-postnav { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 44px; }
.bm-postnav__link { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border: 1px solid var(--bm-border); border-radius: var(--bm-radius); transition: border-color .2s, box-shadow .2s; }
.bm-postnav__link:hover { border-color: var(--bm-primary); box-shadow: 0 4px 16px rgba(0, 0, 0, .06); }
.bm-postnav__link--next { text-align: right; align-items: flex-end; }
.bm-postnav__label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--bm-muted); }
.bm-postnav__title { font-weight: 700; font-size: 15px; line-height: 1.35; }

/* Comments */
.bm-comments { margin-top: 10px; }
.bm-comments__title { font-size: 20px; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--bm-border); }
.bm-comments__list, .bm-comments__list .children { list-style: none; }
.bm-comments__list .children { margin-inline-start: 40px; }
.bm-comments .comment-body { padding: 18px 0; border-bottom: 1px solid var(--bm-border); font-size: 15px; }
.bm-comments .comment-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-bottom: 10px; }
.bm-comments .comment-author { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.bm-comments .comment-author .avatar { width: 44px; height: 44px; border-radius: 50%; }
.bm-comments .comment-metadata { font-size: 12px; color: var(--bm-muted); }
.bm-comments .comment-metadata a { color: inherit; }
.bm-comments .comment-content { padding-inline-start: 56px; }
.bm-comments .comment-content p:last-child { margin: 0; }
.bm-comments .reply { padding-inline-start: 56px; margin-top: 8px; font-size: 12px; font-weight: 700; }
.bm-comments .reply a { color: var(--bm-primary); }
.bm-comments .bypostauthor .comment-author .fn::after { content: "Author"; margin-inline-start: 6px; padding: 1px 6px; font-size: 10px; background: var(--bm-primary); color: #fff; border-radius: 2px; text-transform: uppercase; }
.bm-comments .comment-respond { margin-top: 30px; }
.bm-comments .comment-reply-title { font-size: 20px; margin-bottom: 14px; }
.bm-comments .comment-form label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.bm-comments .comment-form input[type="text"], .bm-comments .comment-form input[type="email"], .bm-comments .comment-form input[type="url"], .bm-comments .comment-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--bm-border); border-radius: var(--bm-radius); background: #fff; }
.bm-comments .comment-form-cookies-consent { display: flex; gap: 8px; align-items: center; }
.bm-comments .comment-form-cookies-consent label { margin: 0; font-weight: 500; }
.bm-comments .comment-notes, .bm-comments .logged-in-as { font-size: 13px; color: var(--bm-muted); }
.bm-comments__closed { color: var(--bm-muted); font-size: 14px; }
.bm-comments .comment-navigation { margin: 16px 0; display: flex; justify-content: space-between; font-weight: 700; font-size: 14px; }

/* --------------------------------------------------------------------------
   Forms (contact), notices
   -------------------------------------------------------------------------- */
.bm-form label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 5px; }
.bm-form input[type="text"], .bm-form input[type="email"], .bm-form textarea { width: 100%; padding: 11px 13px; border: 1px solid var(--bm-border); border-radius: var(--bm-radius); background: #fff; transition: border-color .2s, box-shadow .2s; }
.bm-form input:focus, .bm-form textarea:focus { outline: 0; border-color: var(--bm-primary); box-shadow: 0 0 0 3px rgba(102, 50, 0, .12); }
.bm-form p { margin: 0 0 16px; }
.bm-form__row { display: grid; grid-template-columns: 1fr; gap: 0 16px; }
.bm-form__hp { position: absolute !important; left: -9999px; }
.bm-notice { padding: 12px 16px; border-radius: var(--bm-radius); margin-bottom: 18px; font-size: 14.5px; font-weight: 600; }
.bm-notice--ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.bm-notice--error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

.bm-contact__grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
.bm-contact__info .bm-entry { font-size: 16.5px; margin-bottom: 22px; }
.bm-contact__list { list-style: none; display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.bm-contact__list li { display: flex; gap: 14px; align-items: flex-start; }
.bm-contact__list .bm-icon { color: var(--bm-primary); margin-top: 2px; }
.bm-contact__list strong { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--bm-muted); margin-bottom: 2px; }
.bm-contact__form { padding: 28px; background: var(--bm-bg-soft); border-radius: var(--bm-radius); border-top: 4px solid var(--bm-primary); }
.bm-contact__heading { font-size: 22px; margin-bottom: 18px; }

/* 404 */
.bm-404 { text-align: center; padding: 30px 0 50px; max-width: 640px; margin: 0 auto; }
.bm-404__code { font-size: 96px; font-weight: 900; line-height: 1; color: var(--bm-primary); margin: 0 0 8px; letter-spacing: -.04em; opacity: .9; }
.bm-404__title { font-size: 30px; margin-bottom: 10px; }
.bm-404__text { color: var(--bm-text-2); margin-bottom: 22px; }
.bm-404 .bm-chips { justify-content: center; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.bm-footer { background: var(--bm-dark); color: #d9d2cb; margin-top: auto; font-size: 14px; }
.bm-footer a { color: #f1ebe5; }
.bm-footer a:hover { color: #fff; }
.bm-footer__grid { display: grid; grid-template-columns: 1fr; gap: 36px; padding: 52px 0 44px; }
.bm-footer__col { min-width: 0; }
.bm-footer .bm-social--boxes { margin-top: 18px; }
.bm-footer .bm-social--boxes a { background: var(--bm-dark-2); border-color: #3a2f29; color: #e8e1da; }
.bm-footer .bm-social--boxes a:hover { background: var(--bm-primary); border-color: var(--bm-primary); color: #fff; }
.bm-footer__contact { list-style: none; margin-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.bm-footer__contact li { display: flex; align-items: center; gap: 8px; color: #b9b0a8; }
.bm-footer .bm-widget__title { color: #fff; border-bottom-color: #3a2f29; }
.bm-footer .bm-widget__title span { border-bottom-color: var(--bm-primary); }
.bm-footer .bm-catlist li { border-bottom-color: #3a2f29; }
.bm-footer .bm-catlist__count { background: var(--bm-dark-2); color: #b9b0a8; }
.bm-footer .bm-plist__title a { color: #f1ebe5; }
.bm-footer .bm-plist__date, .bm-footer .bm-cat--text { color: #a39a92; }
.bm-footer .bm-plist__num { color: #f1ebe5; border-color: #3a2f29; }
.bm-footer .bm-widget h3:not(.bm-widget__title), .bm-footer .bm-widget .widget-title { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.bm-footer__bottom { border-top: 1px solid #3a2f29; background: var(--bm-dark-2); }
.bm-footer__bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding: 18px 0; font-size: 12.5px; }
.bm-footer__copy { margin: 0; color: #a39a92; }
.bm-footer__menu { display: flex; flex-wrap: wrap; gap: 4px 18px; list-style: none; }
.bm-footer__menu a { font-weight: 600; text-transform: uppercase; letter-spacing: .05em; font-size: 11.5px; }

/* Back to top */
.bm-totop { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--bm-primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .2); opacity: 0; transform: translateY(10px); transition: opacity .25s, transform .25s; }
.bm-totop[hidden] { display: none; }
.bm-totop.is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (min-width: 640px) {
	.bm-row { grid-template-columns: 280px minmax(0, 1fr); gap: 22px; }
	.bm-form__row { grid-template-columns: 1fr 1fr; }
	.bm-postnav { grid-template-columns: 1fr 1fr; }
	.bm-block__body { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
	.bm-hero { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
	.bm-row-half { grid-template-columns: 1fr 1fr; }
	.bm-contact__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
	.bm-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
	.bm-menu > li > a { padding: 0 10px; font-size: 13.5px; }
	.bm-menu > li > a .bm-icon { display: none; }
}
@media (min-width: 1024px) {
	.bm-nav__toggle { display: none; }
	.bm-nav__primary { display: block; }
	.bm-nav__logo { display: flex; }
	.bm-layout { grid-template-columns: minmax(0, 1fr) var(--bm-sidebar); }
	.bm-footer__grid { gap: 48px; }
	.bm-hero__side .bm-card__title { font-size: 19px; }
}
@media (max-width: 1023px) {
	.bm-sidebar__sticky { position: static; }
	.bm-sidebar { padding-top: 10px; border-top: 3px solid var(--bm-primary); }
}
@media (max-width: 639px) {
	:root { --bm-gap: 24px; }
	.bm-header__brand-inner { padding: 16px 0; justify-content: center; }
	.bm-header__ad { display: none; }
	.bm-logo img { height: 32px; }
	.bm-topbar__date { display: none; }
	.bm-grid--3, .bm-grid--4 { grid-template-columns: 1fr 1fr; gap: 16px; }
	.bm-card__title { font-size: 15px; }
	.bm-card--lead .bm-card__title { font-size: 19px; }
	.bm-card--wide .bm-card__title { font-size: 22px; }
	.bm-overlay--hero { aspect-ratio: 4 / 3; height: auto; min-height: 0; }
	.bm-overlay--hero .bm-overlay__title { font-size: 22px; }
	.bm-overlay--hero .bm-overlay__body { padding: 16px; }
	.bm-tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
	.bm-article__title { margin-top: 10px; }
	.bm-entry { font-size: 17px; }
	.bm-entry h2 { font-size: 24px; }
	.bm-entry h3 { font-size: 20px; }
	.bm-author { flex-direction: column; gap: 14px; padding: 18px; }
	.bm-comments__list .children { margin-inline-start: 16px; }
	.bm-contact__form { padding: 20px; }
	.bm-footer__bottom-inner { justify-content: center; text-align: center; }
	.bm-ticker__label { font-size: 10px; }
}
@media (max-width: 420px) {
	.bm-grid--3, .bm-grid--4 { grid-template-columns: 1fr; }
	.bm-list__thumb { width: 96px; }
}

/* --------------------------------------------------------------------------
   Round 2 adjustments
   -------------------------------------------------------------------------- */
/* Article title on single posts */
.bm-single-post .bm-article__title { font-size: 17px; line-height: 1.45; letter-spacing: 0; margin: 12px 0 10px; }

/* Captions & figures never overflow the article column */
.bm-entry figure, .bm-entry .wp-caption, .bm-entry .wp-block-image,
.bm-entry .wp-block-image .alignleft, .bm-entry .wp-block-image .alignright, .bm-entry .wp-block-image .aligncenter,
.bm-entry .wp-block-image > figure { max-width: 100% !important; box-sizing: border-box; }
.bm-entry .wp-caption { width: auto !important; }
.bm-entry .wp-block-image .alignleft, .bm-entry .wp-block-image .alignright, .bm-entry .wp-block-image .aligncenter { display: block; }
.bm-entry .wp-block-image .alignleft > figcaption, .bm-entry .wp-block-image .alignright > figcaption, .bm-entry .wp-block-image .aligncenter > figcaption { display: block; }
.bm-entry figure img, .bm-entry .wp-caption img { max-width: 100%; height: auto; }
.bm-entry figcaption, .bm-entry .wp-caption-text, .bm-entry .wp-element-caption { display: block; max-width: 100%; overflow-wrap: anywhere; word-break: break-word; }
.bm-entry .wp-caption-text { font-size: 13px; color: var(--bm-muted); margin: 8px 0 0; text-align: center; }
.bm-entry .wp-caption.alignleft, .bm-entry .wp-caption.alignright { max-width: 50% !important; }

/* Related articles: titles capped at 3 lines and aligned */
.bm-related .bm-card__title { font-size: 15px; line-height: 1.4; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; min-height: calc(1.4em * 3); }

/* Sidebar "Latest": titles capped at 2 lines */
.bm-sidebar .bm-plist--thumb .bm-plist__title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }

@media (max-width: 639px) {
	.bm-entry .wp-caption.alignleft, .bm-entry .wp-caption.alignright, .bm-entry .alignleft, .bm-entry .alignright { float: none; max-width: 100% !important; margin: 1.6em 0; }
}

/* --------------------------------------------------------------------------
   Round 3 adjustments
   -------------------------------------------------------------------------- */
/* Business-style block (grid3): titles 2 lines, aligned */
.bm-block--grid3 .bm-grid--3 .bm-card__title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; line-height: 1.35; min-height: calc(1.35em * 2); }

/* Business-style block: lower strip of 3 compact stories */
.bm-grid3__more { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 24px; background: var(--bm-bg-soft); border-top: 3px solid var(--bm-primary); border-radius: 0 0 var(--bm-radius) var(--bm-radius); }
.bm-grid3__more .bm-list__item { padding: 16px; gap: 12px; align-items: center; transition: background .2s; }
.bm-grid3__more .bm-list__item:hover { background: #efe8e1; }
.bm-grid3__more .bm-list__item + .bm-list__item { border-inline-start: 1px solid var(--bm-border); }
.bm-grid3__more .bm-list__thumb { width: 84px; aspect-ratio: 1 / 1; border-radius: 50%; box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--bm-border); }
.bm-grid3__more .bm-list__title { font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.bm-grid3__more .bm-list__date { display: none; }

/* Lifestyle-style block (grid4): titles 3 lines, aligned */
.bm-block--grid4 .bm-card__title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; line-height: 1.35; min-height: calc(1.35em * 3); }

/* Sidebar "Sections": tiles */
.bm-sections { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bm-sections a { position: relative; display: flex; align-items: center; min-height: 46px; padding: 12px 12px 12px 14px; background: var(--bm-bg-soft); border: 1px solid var(--bm-border); border-inline-start: 3px solid var(--bm-primary); border-radius: var(--bm-radius); overflow: hidden; transition: background .2s, border-color .2s, transform .2s; }
.bm-sections a::after { content: "\203A"; position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 20px; line-height: 1; color: var(--bm-primary); opacity: .45; transition: opacity .2s, right .2s; }
.bm-sections__name { font-size: 14px; font-weight: 800; color: var(--bm-text); padding-inline-end: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bm-sections a:hover { background: var(--bm-primary); border-color: var(--bm-primary); transform: translateY(-1px); }
.bm-sections a:hover .bm-sections__name, .bm-sections a:hover::after { color: #fff; opacity: 1; }
.bm-sections a:hover::after { right: 8px; }

/* Footer "Sections": A-Z, two per row, no counts */
.bm-footer-cats { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.bm-footer-cats li { border-bottom: 1px solid #3a2f29; }
.bm-footer-cats a { display: flex; align-items: center; gap: 8px; padding: 9px 0; font-weight: 600; font-size: 14px; }
.bm-footer-cats a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--bm-primary); flex: none; transition: background .2s; }
.bm-footer-cats a:hover::before { background: #fff; }

@media (max-width: 639px) {
	.bm-grid3__more { grid-template-columns: 1fr; }
	.bm-grid3__more .bm-list__item + .bm-list__item { border-inline-start: 0; border-top: 1px solid var(--bm-border); }
}

@media (max-width: 420px) {
	.bm-block--grid3 .bm-grid--3 .bm-card__title, .bm-block--grid4 .bm-card__title, .bm-related .bm-card__title { min-height: 0; }
}

/* Print */
@media print {
	.bm-topbar, .bm-nav, .bm-ticker, .bm-sidebar, .bm-footer, .bm-share, .bm-totop, .bm-ad, .bm-related, .bm-postnav, .bm-comments { display: none !important; }
	.bm-layout { display: block; }
	body { font-size: 12pt; }
}
