/* ==========================================================================
   Bandmaster — Main Stylesheet
   ========================================================================== */

/* --- Variables ---------------------------------------------------------- */
:root {
  --blue: #2580e8;
  --blue-dark: #1d6fd0;
  --header-bg: #1d1d1d;
  --text: #222;
  --muted: #666;
  --line: #e7e7e7;
  --bg: #efefef;
  --panel: #f8f8f8;
  --surface: #fff;
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 20px;
  --space-5: 24px;
  --space-6: 28px;
  --space-7: 32px;
  --shadow: 0 8px 22px rgba(0,0,0,.08);

  /* Typography (overridden via wp_add_inline_style from the Customizer) */
  --font-body: "Open Sans", Arial, Helvetica, sans-serif;
  --font-title: var(--font-body);

  /* Button design tokens (single source of truth) */
  --btn-pad-y: 11px;
  --btn-pad-x: 22px;
  --btn-radius: 6px;
  --btn-weight: 700;
  --btn-font-size: .95rem;
}

/* --- Dark mode palette --------------------------------------------------- */
:root[data-theme="dark"] {
  --text: #e8e9ea;
  --muted: #9aa0a6;
  --line: #33373d;
  --bg: #14161a;
  --panel: #1c1f24;
  --surface: #202327;
  --shadow: 0 8px 22px rgba(0,0,0,.45);
}

/* --- Reset & Base ------------------------------------------------------- */
html { font-size: 16px; }
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}
a:hover { color: var(--blue); }

img { display: block; max-width: 100%; border-radius: 5px; }

/* --- Site Wrapper ------------------------------------------------------- */
.site {
  width: min(100%, 1200px);
  max-width: 1200px;
  margin: 0 auto;
  background: var(--surface);
  min-height: 100vh;
  padding-bottom: var(--space-6);
  position: relative;
}

/* --- Topbar ------------------------------------------------------------- */
.topbar {
  background: var(--header-bg);
  color: #fff;
  font-size: .86rem;
  position: sticky;
  top: 0;
  z-index: 300;
}

.topbar-inner,
.search-panel-inner,
.container,
.footer-inner,
.subscription-inner {
  width: min(100%, 1098px);
  max-width: 1098px;
  margin: 0 auto;
  padding: 0 20px;
}

.topbar-inner {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 18px;
}

/* --- Logo --------------------------------------------------------------- */
.logo,
.site-logo {
  font-family: var(--font-title);
  font-size: 2.43rem;
  line-height: 1;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0px;
  flex: 0 0 auto;
}
.logo:hover, .site-logo:hover { color: var(--blue); }

/* Custom logo: flex (not inline-flex) at every level so the image's own
   height — not a line-box baseline strut — determines .site-logo's height.
   Otherwise a resized logo sits baseline-aligned and drifts off the
   topbar's vertical centre line as its height changes. */
.site-logo { display: flex; align-items: center; }
.custom-logo-link { display: flex; align-items: center; }
.custom-logo { display: block; height: 50px; width: auto; border-radius: 0; }

/* --- Navigation --------------------------------------------------------- */
.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
  position: relative;
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(255,255,255,.18);
  background: transparent;
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 0 0 auto;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  position: relative;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before,
.nav-toggle span::after { position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

.nav-item { position: relative; }

.nav-link {
  color: #fff;
  opacity: .95;
  font-size: 1rem;
  line-height: 1;
  font-weight: 600;
  letter-spacing: .01em;
  padding: 18px 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-link svg { width: 10px; height: 10px; display: block; fill: currentColor; }

/* Mobile-only "Log in" / "My Account" link appended to the nav drawer —
   desktop login lives in .header-actions, hidden here by default. */
.nav-mobile-login { display: none; }

/* --- Simple Dropdown Menu ----------------------------------------------- */
/* The dropdown must open flush with the BOTTOM of the topbar, not just the
   bottom of the .nav-link. We achieve this by setting position on .nav-item
   relative to the topbar via a calc on the topbar height. Since .topbar-inner
   has min-height: 56px and the nav is vertically centered inside it, we use
   position:fixed coordinates anchored to the topbar bottom. Instead, the
   cleanest pure-CSS approach: move the .nav-dropdown's top anchor to the
   .topbar by making .nav-dropdown position:fixed with a top equal to the
   topbar height — but that requires JS for dynamic height. We instead keep
   position:absolute on .nav-item and push top to account for any excess
   padding below the link by using top: calc(100% + Npx) where N = 0
   (links already fill the full topbar height via padding). */
.nav-dropdown {
  position: absolute;
  top: 100%;          /* flush to bottom of nav-link / topbar row */
  left: 0;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 2px solid var(--blue);  /* accent top edge marks the join */
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  border-radius: 0 0 10px 10px;
  padding: 6px 0;
  display: none;
  flex-direction: column;
  z-index: 400;       /* above sticky topbar z-index:300 */
  overflow: hidden;
}
.nav-item:hover .nav-dropdown,
.nav-item.open .nav-dropdown { display: flex; }

.nav-dropdown-link {
  display: block;
  padding: 9px 18px;
  font-size: .9375rem;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  transition: background .12s, color .12s;
}
.nav-dropdown-link:hover,
.nav-dropdown-link[aria-current="page"] {
  background: var(--panel);
  color: var(--blue);
}

/* --- Header Actions ----------------------------------------------------- */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.dropdown { position: relative; }
.dropdown-toggle { display: inline-flex; align-items: center; justify-content: center; }

.dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 320px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0 0 14px 14px;
  box-shadow: 0 18px 40px rgba(0,0,0,.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  z-index: 30;
  color: var(--text);
}
.dropdown.active .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu h4 { margin: 0 0 12px; font-size: 1rem; font-weight: 700; }

/* ── Country dropdown ─────────────────────────────────────────────────────── */

.country-dropdown-menu { width: 260px; }
.country-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.country-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  transition: background .15s ease;
}
.country-link:hover { background: var(--panel); }
.country-flag { font-size: 1.4rem; line-height: 1; }
.country-name { flex: 1; font-size: .95rem; font-weight: 600; }
.country-code {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--muted);
  background: var(--panel);
  border-radius: 6px;
  padding: 2px 7px;
}

/* ── Mini-cart dropdown ───────────────────────────────────────────────────── */

.dropdown-cart .dropdown-menu {
  width: 340px;
  padding: 0;
  overflow: hidden;
}

/* ── Header label inside the panel */
.dropdown-cart .dropdown-menu::before {
  content: 'Your basket';
  display: block;
  padding: 16px 18px 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

/* ── Scrollable item list */
.fbr-mini-cart-items {
  list-style: none;
  margin: 12px 0 0;
  padding: 0 18px;
  max-height: 264px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #ddd transparent;
}
.fbr-mini-cart-items::-webkit-scrollbar { width: 4px; }
.fbr-mini-cart-items::-webkit-scrollbar-thumb { background: #ddd; border-radius: 2px; }

/* ── Single item row — 3-col grid: thumb | details | remove */
.fbr-mini-cart-item {
  display: grid;
  grid-template-columns: 52px 1fr 24px;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f2f2f2;
}
.fbr-mini-cart-item:last-child { border-bottom: none; }

/* Thumbnail */
.fbr-mci-thumb { flex-shrink: 0; }
.fbr-mci-thumb img {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid #efefef;
}

/* Details column */
.fbr-mci-details {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fbr-mci-name {
  font-size: .875rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.fbr-mci-name:hover { color: var(--blue); }

.fbr-mci-qty {
  font-size: .8rem;
  color: #888;
}

/* Remove button */
.fbr-mci-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f0f0f0;
  color: #999;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  transition: background .15s, color .15s;
  flex-shrink: 0;
}
.fbr-mci-remove:hover { background: #e53e3e; color: #fff; }

/* ── Subtotal row */
.fbr-mini-cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  padding: 12px 18px;
  border-top: 2px solid #f2f2f2;
  font-weight: 700;
  font-size: .9375rem;
  color: var(--text);
}
.fbr-mct-amount { color: var(--blue); }

/* ── Button row */
.fbr-mini-cart-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px 18px 16px;
  border-top: 1px solid #f2f2f2;
}

.fbr-btn-cart,
.fbr-btn-checkout,
.fbr-btn-shop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 7px;
  font-size: .875rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: background .15s, color .15s, border-color .15s;
  border: 2px solid var(--blue);
  white-space: nowrap;
}

/* "View Cart" — outline */
.fbr-btn-cart {
  background: transparent;
  color: var(--blue);
}
.fbr-btn-cart:hover { background: var(--blue); color: #fff; }

/* "Checkout" — filled */
.fbr-btn-checkout {
  background: var(--blue);
  color: #fff;
}
.fbr-btn-checkout:hover { background: var(--blue-dark); border-color: var(--blue-dark); }

/* ── Empty state */
.fbr-mini-cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 18px 20px;
  text-align: center;
  color: var(--muted);
  font-size: .9375rem;
}
.fbr-mce-icon {
  width: 40px;
  height: 40px;
  color: #bbb;
}
.fbr-mini-cart-empty p { margin: 0; }

/* "Browse the shop" spans both columns */
.fbr-btn-shop {
  width: 100%;
  margin-top: 4px;
  background: var(--blue);
  color: #fff;
  border: 2px solid var(--blue);
}
.fbr-btn-shop:hover { background: var(--blue-dark); border-color: var(--blue-dark); }

/* ── Legacy theme dropdown-action classes (login dropdown etc.) */
.dropdown-action,
.dropdown-link {
  display: inline-flex;
  width: 100%;
  text-align: center;
  padding: 12px 14px;
  border-radius: 8px;
  text-decoration: none;
  margin-top: 4px;
  font-weight: 600;
}
.dropdown-action { background: var(--blue); color: #fff; }
.dropdown-link { color: var(--blue); background: transparent; font-size: .95rem; }

/* Login form */
.login-dropdown-form { display: grid; gap: 12px; }
.login-dropdown-form label { display: grid; gap: 8px; font-size: .95rem; color: #333; }
.login-dropdown-form input { width: 100%; height: 40px; padding: 0 12px; border: 1px solid #d9d9d9; border-radius: 8px; font: inherit; }
.login-dropdown-form button { width: 100%; height: 40px; border: none; border-radius: 8px; background: var(--blue); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }

/* Icon button */
.icon-btn {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: transparent;
  cursor: pointer;
}
.icon-btn:hover { color: #fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.3); }
.icon-btn svg { width: 18px; height: 18px; display: block; fill: currentColor; }

/* Join / Login buttons */
.join-btn,
.login-btn {
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 5px;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
.login-btn { border: 1px solid rgba(255,255,255,.18); color: #fff; }
.login-btn:hover { color: #fff; background: rgba(255,255,255,.08); }
.join-btn { background: var(--blue); color: #fff; }
.join-btn:hover { background: var(--blue-dark); color: #fff; }

/* --- Search Panel ------------------------------------------------------- */
.search-panel { border-bottom: 1px solid var(--line); background: var(--surface); display: none; }
.search-panel.active { display: block; }
.search-panel-inner { padding: 14px 0; }
.search-wide {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fafafa;
  padding: 0 14px;
  height: 48px;
}
/* Search form used inside page content (search.php, widgets, etc.)
   The .search-wide inside a .search-form inherits topbar dark styles by default;
   override to light/neutral for body context. */
.search-form .search-wide {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 0 14px;
  margin-bottom: 24px;
}
.search-form .search-wide svg { fill: #999; }
.search-form .search-wide input { color: var(--text); }
.search-form .search-wide input::placeholder { color: var(--muted); }
.search-wide svg { width: 18px; height: 18px; fill: #777; flex: 0 0 auto; }
.search-wide input { width: 100%; border: none; background: transparent; outline: none; font: inherit; font-size: 1rem; color: var(--text); }

/* --- Container ---------------------------------------------------------- */
.container { margin: 0 auto 0; }

/* Hero layout — image sits flush against the sticky nav, no gap */
body.single-hero-layout > .container,
body.single .fbr-layout-hero-page > .container,
.bm-hero-page .container { margin-top: 0; }

/* Author archive */
.bm-author-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px 0 24px;
  border-bottom: 2px solid var(--blue);
  margin-bottom: 28px;
}
.bm-author-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.bm-author-name { font-size: 1.8rem; margin: 0 0 6px; }
.bm-author-bio  { color: var(--muted); margin: 0 0 6px; font-size: .95rem; line-height: 1.6; max-width: 600px; }
.bm-author-count { font-size: .85rem; color: var(--muted); margin: 0; }

/* Date archive kicker */
.bm-archive-kicker {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--blue);
  margin-bottom: 4px;
}

/* --- Ad / Leaderboard --------------------------------------------------- */
.top-ad {
  width: min(100%, 900px);
  max-width: 900px;
  height: 140px;
  border: 1px solid #a7a7a7;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 20px auto 24px;
  background: var(--surface);
}
.top-ad .hash { font-size: 1.86rem; letter-spacing: 3px; font-weight: 700; color: #111; line-height: 1.2; }
.top-ad .brand { position: absolute; right: 92px; top: 38px; font-size: 1rem; color: var(--muted); letter-spacing: 2px; text-align: center; line-height: 1.35; }

.ad-section { margin: 0 0 var(--space-6); }
.ad-label { font-size: .75rem; line-height: 1; text-transform: uppercase; letter-spacing: .08em; color: #8a8a8a; margin: 0 0 8px; }

/* --- Section Titles ----------------------------------------------------- */
h2.section-title { margin: 0 0 var(--space-4); font-size: 2rem; line-height: 1.2; font-weight: 700; }

/* --- Feature Grid ----------------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: 1.55fr .95fr;
  gap: 20px;
  align-items: start;
  margin-bottom: var(--space-6);
}

/* --- Latest News shell removed (replaced by .ln-grid) --- */

/* --- Cards & Tags ------------------------------------------------------- */
.hero-card .tag,
.feature-card .tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--blue);
  color: #fff;
  font-size: .75rem;
  line-height: 1;
  padding: 6px 9px;
  border-radius: 5px;
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 700;
}

.image-wrap { position: relative; overflow: hidden; background: #ddd; margin-bottom: var(--space-3); }
.hero-card .image-wrap { margin-bottom: 18px; box-shadow: 0 2px 10px rgba(0,0,0,.05); }

.zoom-link { display: block; overflow: hidden; border-radius: 5px; }
.zoom-link img { transition: transform .3s ease; }
.zoom-link:hover img { transform: scale(1.03); }

.hero-card .image-wrap img { width: 100%; height: 392px; object-fit: cover; }
.feature-card .image-wrap img { width: 100%; height: 320px; object-fit: cover; }

.hero-title,
.feature-title {
  font-size: 2rem;
  line-height: 1.18;
  margin: 0 0 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.title-link:hover { color: var(--blue); }

.meta { font-size: 1rem; color: #444; margin-bottom: 0; line-height: 1.55; }
.summary { font-size: 1rem; color: var(--muted); line-height: 1.6; }
.hero-summary { margin-top: 10px; max-width: 95%; }

/* --- Side Stack --------------------------------------------------------- */
.side-stack { display: flex; flex-direction: column; gap: 0; }
.side-item {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 14px;
  padding: 0 0 14px;
  margin: 0 0 14px;
  border-bottom: 1px solid var(--line);
}
.side-item img { width: 108px; height: 108px; object-fit: cover; }
.side-item h3 { margin: 0 0 6px; font-size: 1.25rem; line-height: 1.28; font-weight: 600; letter-spacing: -0.01em; }
.side-item .small-meta { font-size: 1rem; color: var(--muted); margin-bottom: 0; line-height: 1.5; }

/* --- Button ------------------------------------------------------------- */
.btn { display: inline-block; margin-top: 2px; background: var(--blue); color: #fff; font-size: 1rem; line-height: 1; padding: 10px 14px; border-radius: 5px; align-self: flex-start; }
.btn:hover { background: var(--blue-dark); color: #fff; }

/* --- Video Row ---------------------------------------------------------- */
/* --- Video Row ---------------------------------------------------------- */
.fbr-video-section { margin-bottom: var(--space-7); }

.video-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 0;
}

.video-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease;
}
.video-card:hover { transform: translateY(-3px); }

/* Thumbnail wrapper */
.media-link { display: block; }
.media-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 7px;
  margin-bottom: 11px;
  background: #111;
  aspect-ratio: 16 / 9;   /* cinematic, consistent height across all cards */
}

/* Thumbnail image */
.video-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease, filter .35s ease;
  border-radius: 7px;
}
.media-thumb:hover img {
  transform: scale(1.04);
  filter: brightness(.75);
}

/* Play overlay — centred absolutely over the thumbnail */
.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;   /* above the zoom-link <a> (z-index:1) so the button is always visible */
}

/* Play button — always visible, scales + brightens on hover */
.play-button {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .52);
  border: 2px solid rgba(255, 255, 255, .75);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  /* always visible */
  opacity: 1;
  transform: scale(1);
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
  box-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.play-button svg {
  width: 18px;
  height: 18px;
  margin-left: 3px;   /* optical centre for the triangle */
  fill: #fff;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.4));
}

/* Hover state — button pulses to brand blue */
.media-thumb:hover .play-button,
.bm-media-wrap:hover .play-button,
.bm-related__img-wrap:hover .play-button,
.ln-hero-thumb:hover .play-button,
.ln-side-thumb:hover .play-button {
  background: var(--blue);
  border-color: var(--blue);
  transform: scale(1.12);
}

/* Card text */
.video-card h4 {
  margin: 0 0 5px;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
.video-card h4:hover { color: var(--blue); }
.video-date {
  font-size: .8125rem;
  line-height: 1.4;
  color: var(--muted);
  margin: 0;
}

/* --- Promo/Banner Rows -------------------------------------------------- */
.promo-row,
.banner-row {
  display: grid;
  justify-content: center;
  margin: 0;
}
.promo-row { grid-template-columns: repeat(3, 340px); gap: 24px; }
.banner-row { grid-template-columns: repeat(3, 340px); gap: 24px; }
.promo-row img { width: 340px; height: 250px; object-fit: cover; border: 1px solid #d8d8d8; background: #f4f4f4; }
.banner-row img { width: 340px; height: 140px; object-fit: cover; border: 1px solid #d8d8d8; background: #f4f4f4; }

/* --- Bottom Grid -------------------------------------------------------- */
.bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 0;
  align-items: start;
  margin-bottom: 40px;
}

.reviews-column h2,
.rankings h2,
.hp-col h2,
.hp-col-title { font-size: 1.5rem; margin: 0 0 var(--space-3); line-height: 1.25; font-weight: 700; }

.reviews-column,
.hp-col { min-width: 0; }

/* Widget wrapper inside homepage columns */
.hp-col-widget { width: 100%; }

.review-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  align-items: start;          /* top-align so excerpt doesn't stretch thumb */
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.review-item:first-of-type { border-top: none; padding-top: 0; }

.review-thumb {
  display: block;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 5px;
  background: #ddd;
}
.review-thumb img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 5px;
  display: block;
  transition: transform .3s ease;
}
.review-thumb:hover img { transform: scale(1.04); }

/* Placeholder when no thumbnail is available */
.review-thumb--ph {
  width: 96px;
  height: 96px;
  border-radius: 5px;
  background: #e8e8e8;
}

.review-text { min-width: 0; }

/* Date sits above the title — same as ln-side-date */
.review-text .small-meta {
  margin: 0 0 4px;
  font-size: .8rem;
  color: var(--muted);
  line-height: 1.3;
}

.review-item h4 {
  margin: 0 0 5px;
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.review-item h4 a { color: var(--text); text-decoration: none; }
.review-item h4 a:hover { color: var(--blue); }

/* Excerpt — matches ln-side-excerpt */
.review-excerpt {
  margin: 0;
  font-size: .84rem;
  color: var(--muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.reviews-actions { margin-top: 14px; }

/* --- Pro Cards removed --- */

/* --- Latest News Grid (ln-) --------------------------------------------- */
.ln-grid {
  display: grid;
  grid-template-columns: 65fr 35fr;
  gap: 24px;
  align-items: stretch;
  margin-bottom: var(--space-7);
  border-top: 3px solid var(--blue);
  padding-top: var(--space-5);
}

/* Hero item — flex column so the Read more button can sit flush with
   the bottom of the grid row, level with the All news/articles button */
.ln-hero {
  display: flex;
  flex-direction: column;
}
.ln-hero-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 14px;
  background: #ddd;
}
.ln-hero-thumb img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.ln-hero-thumb:hover img { transform: scale(1.03); }

/* Pinned badge — top-right corner of the Latest News hero. */
.ln-pinned-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 4px;
  z-index: 3;
  backdrop-filter: blur(4px);
}
.ln-hero-thumb .tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--blue);
  color: #fff;
  font-size: .75rem;
  line-height: 1;
  padding: 6px 9px;
  border-radius: 5px;
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 700;
}
.ln-date {
  font-size: .875rem;
  color: #888;
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.ln-hero-title {
  font-size: 1.75rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.ln-excerpt {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}

/* Side stack */
.ln-side {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 1px solid var(--line);
  padding-left: 24px;
}
.ln-side-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.ln-side-item:first-child { padding-top: 0; }
.ln-side-item:last-of-type { border-bottom: none; }

/* Thumbnail */
.ln-side-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 5px;
  flex-shrink: 0;
}
.ln-side-thumb img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.ln-side-thumb:hover img { transform: scale(1.05); }

/* Body — wraps date, title, excerpt in column 2 */
.ln-side-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

/* Date */
.ln-side-date {
  font-size: .75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 0;
  line-height: 1.3;
}

/* Title */
.ln-side-title {
  font-size: .9375rem;
  line-height: 1.3;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}
.ln-side-title a { color: var(--text); text-decoration: none; }
.ln-side-title a:hover { color: var(--blue); }

/* Excerpt */
.ln-side-excerpt {
  font-size: .8125rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 1px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;  /* hard cap at 2 lines regardless of word count */
}

.ln-all-btn,
.ln-hero-readmore { margin-top: auto; align-self: flex-start; }

/* --- Homepage Below-Video Ad Row --------------------------------------- */

/*
 * Content area = 1098px max-width, 20px padding each side = 1058px usable.
 * 3 slots × 340px + 2 gaps × 4px = 1028px — 30px breathing room at desktop.
 * On smaller screens the row stays single-line; slots shrink proportionally
 * using flex + min-width: 0 so they never wrap onto a new line.
 */

.hp-ad-row {
  margin: 0 0 var(--space-7);
}

/* Slot container — single unwrapping flex row */
/* Container: space-between pins slot 1 left, slot 2 centre, slot 3 right */
.hp-ad-slots {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: nowrap;           /* slots NEVER wrap to a new line */
}

/* Each slot — no background, no border, no padding, no radius */
.hp-ad-slot {
  width: 340px;
  height: 250px;
  flex: 0 0 340px;             /* fixed width — space-between handles gaps */
  min-width: 0;
  overflow: hidden;
  display: block;
}

/* Images (inc. GIFs) — fill slot exactly */
.hp-ad-slot img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  border-radius: 0;
}

/* Anchor wrapping the image */
.hp-ad-slot a {
  display: block;
  width: 100%;
  line-height: 0;
}

/* Iframe ads */
.hp-ad-slot iframe {
  display: block;
  width: 100%;
  height: 250px;
  border: none;
}

/* Responsive — slots shrink proportionally in a single row.
   space-between keeps left/centre/right positioning at all widths. */
@media screen and (max-width: 1098px) {
  .hp-ad-slot {
    width: calc(33.333% - 6px);
    flex: 0 0 calc(33.333% - 6px);
    height: auto;
    aspect-ratio: 340 / 250;
  }
  .hp-ad-slot iframe { height: 100%; }
}

/* --- Banner Ad Row (3 × 340×140) --------------------------------------- */

/*
 * .hp-banner-slot inherits all .hp-ad-slot rules above.
 * Only height and aspect-ratio are overridden here.
 * 3 slots × 340px + 2 gaps × 4px = 1028px — same fit as the 250px row.
 */
.hp-banner-slot {
  height: 140px;
}
.hp-banner-slot img { height: auto; }
.hp-banner-slot iframe { height: 140px; }

@media screen and (max-width: 1098px) {
  .hp-banner-slot {
    width: calc(33.333% - 6px);
    flex: 0 0 calc(33.333% - 6px);
    height: auto;
    aspect-ratio: 340 / 140;
  }
  .hp-banner-slot iframe { height: 100%; }
}

/* --- Video Section Ad Row (3 × 340×200) -------------------------------- */

/*
 * .hp-video-slot inherits all .hp-ad-slot rules above.
 * Only height and aspect-ratio are overridden here.
 */
.hp-video-slot {
  height: 200px;
}
.hp-video-slot img { height: auto; }
.hp-video-slot iframe { height: 200px; }

@media screen and (max-width: 1098px) {
  .hp-video-slot {
    width: calc(33.333% - 6px);
    flex: 0 0 calc(33.333% - 6px);
    height: auto;
    aspect-ratio: 340 / 200;
  }
  .hp-video-slot iframe { height: 100%; }
}

/* --- Mobile stack: all three homepage ad rows -------------------------- */

/*
 * At ≤760px three 340-wide slots can't fit side by side, so we drop them
 * into a single vertical column. One rule covers Latest News (340×250),
 * Video Section (340×200), and Article Section (340×140) — each slot
 * keeps its own aspect-ratio via the size-class blocks above.
 *
 * max-width caps each slot at the design width so creatives don't get
 * upscaled past their native size on tablet-portrait viewports.
 */
@media screen and (max-width: 760px) {
  .hp-ad-slots {
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
  }
  .hp-ad-slot,
  .hp-banner-slot,
  .hp-video-slot {
    width: 100%;
    flex: 0 0 auto;
    max-width: 340px;
  }
}

/* --- Tables ------------------------------------------------------------- */
table { width: 100%; border-collapse: collapse; font-size: 1rem; }
th, td { border: 1px solid #d9d9d9; padding: 9px 10px; text-align: left; line-height: 1.45; }
th { background: #f6f6f6; font-size: 1rem; font-weight: 600; }

/* --- Subscription Band -------------------------------------------------- */
.subscription-band {
  width: 100%;
  background: linear-gradient(135deg, rgba(37, 128, 232, 0.04), rgba(37, 128, 232, 0.10));
  margin-top: 0;
}
.subscription-inner {
  padding: 40px 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: start;
}
.subscription-copy h3 { margin: 0 0 8px; font-size: 1.55rem; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; color: var(--text); }
.subscription-copy p { margin: 0; font-size: 1rem; line-height: 1.6; color: var(--muted); max-width: 500px; }
.subscription-form { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.subscription-form input { width: 280px; height: 46px; border: 1px solid rgba(255,255,255,.25); border-radius: 6px; padding: 0 14px; font: inherit; font-size: 1rem; background: rgba(255,255,255,.1); color: #fff; }
.subscription-form input::placeholder { color: rgba(255,255,255,.5); }
.subscription-form button { height: 46px; border: none; border-radius: 6px; padding: 0 20px; background: var(--blue); color: #fff; font: inherit; font-size: 1rem; font-weight: 700; cursor: pointer; white-space: nowrap; }
.subscription-form button:hover { background: var(--blue-dark); }
/* GDPR form layout */
.fbr-gdpr-form { width: 100%; max-width: 460px; flex-direction: column; align-items: flex-start; gap: 0; }
/* .nl-email-row / .nl-consent-label / .nl-message default to a dark
   background (see below) — override for the now-light subscription band. */
.subscription-band .nl-email-row input {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
}
.subscription-band .nl-email-row input::placeholder { color: var(--muted); }
.subscription-band .nl-consent-label { color: var(--muted); }
.subscription-band .nl-consent-label a { color: var(--blue); }
.subscription-band .nl-consent-label a:hover { color: var(--blue-dark); }
.subscription-band .nl-message--success { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }
.subscription-band .nl-message--info { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.subscription-band .nl-message--error { background: #fef2f2; border-color: #fca5a5; color: #b91c1c; }

/* --- Footer ------------------------------------------------------------- */
footer { margin: 0 auto 0; border-top: none; color: var(--muted); font-size: 1rem; }
.footer-inner { padding: 22px 20px 18px; }
.footer-brand-row { padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.footer-brand { font-size: 2.14rem; line-height: 1; font-weight: 700; letter-spacing: -0.02em; color: var(--blue); }
.footer-brand:hover { color: var(--blue); }

.footer-links-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding-bottom: 18px; }
.footer-col h4 { margin: 0 0 10px; font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text); line-height: 1.3; }
.footer-col a { display: block; margin-bottom: 6px; color: var(--blue); font-size: .875rem; line-height: 1.4; }

.footer-social { display: flex; flex-wrap: wrap; gap: 2px; margin-top: 2px; }
.footer-social a { width: 36px; height: 16px; color: var(--muted); display: inline-flex; align-items: flex-start; justify-content: flex-start; }
.footer-social a:hover { color: var(--blue); }
.footer-social svg { width: 20px; height: 26px; display: block; }

.footer-google-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 22px; padding: 7px 13px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font-size: .82rem; font-weight: 600; line-height: 1.2; }
.footer-google-cta:hover { border-color: var(--blue); }
.footer-google-cta svg { width: 16px; height: 16px; flex-shrink: 0; }

.footer-bottom { border-top: 1px solid var(--line); padding-top: 14px; display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.footer-legal { max-width: 780px; font-size: 1rem; line-height: 1.5; color: var(--muted); }
.backtop { color: var(--blue); white-space: nowrap; font-size: 1rem; line-height: 1.4; }

/* --- Widgets (WP sidebar areas) ---------------------------------------- */
.widget { margin-bottom: 24px; }
.widget-title { font-size: 1.25rem; font-weight: 700; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--blue); }

/* --- Single Post Layout ------------------------------------------------- */
.single-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  padding-top: 24px;
}
.single-content h1 { font-size: 2.2rem; line-height: 1.15; margin-bottom: 16px; }
/* Scope to non-WooCommerce contexts so cart/checkout paragraphs use WC's own styles */
body:not(.woocommerce-page) .single-content .entry-content p { font-size: 1.07rem; line-height: 1.75; margin-bottom: 18px; }

/* Pages: extra breathing room below the content before the footer */
body.page .single-content .entry-content { margin-bottom: 48px; }

/* --- Archive / Category Layout ------------------------------------------ */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 16px;
}
.archive-card { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); }
.archive-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 0; }
.archive-card-body { padding: 16px; }
.archive-card-body h2 { font-size: 1.25rem; line-height: 1.3; margin: 0 0 8px; font-weight: 600; }
.archive-card-body .meta { font-size: .9rem; }

/* --- 404 page ---------------------------------------------------------- */

.bm-404-container { max-width: 1080px; padding-top: 32px; padding-bottom: 64px; }

.bm-404-hero {
  text-align: center;
  padding: 48px 16px 56px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}
.bm-404-eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 700;
  margin: 0 0 12px;
}
.bm-404-title {
  font-size: 2.4rem;
  line-height: 1.15;
  margin: 0 0 12px;
  color: var(--text);
}
.bm-404-lede {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 28px;
}
.bm-404-search {
  max-width: 480px;
  margin: 0 auto 24px;
}
.bm-404-cta {
  margin: 0;
}

.bm-404-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--blue);
  display: inline-block;
}

.bm-404-recent { margin-bottom: 48px; }
.bm-404-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.bm-404-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.bm-404-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.bm-404-card__thumb { display: block; aspect-ratio: 600 / 320; overflow: hidden; }
.bm-404-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bm-404-card__body { padding: 14px 16px 18px; }
.bm-404-card__date {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 6px;
}
.bm-404-card__title { font-size: 0.95rem; line-height: 1.35; margin: 0; font-weight: 600; }
.bm-404-card__title a { color: var(--text); text-decoration: none; }
.bm-404-card__title a:hover { color: var(--blue); }

.bm-404-cats { margin-bottom: 32px; }
.bm-404-cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.bm-404-cat-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 5px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  transition: background 0.15s, border-color 0.15s;
}
.bm-404-cat-list a:hover {
  background: var(--surface);
  border-color: var(--blue);
}
.bm-404-cat-name { font-size: 0.92rem; }
.bm-404-cat-count {
  font-size: 0.75rem;
  color: var(--muted);
  background: var(--surface);
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid var(--line);
}

@media (max-width: 900px) {
  .bm-404-grid { grid-template-columns: repeat(2, 1fr); }
  .bm-404-cat-list { grid-template-columns: repeat(2, 1fr); }
  .bm-404-title { font-size: 1.9rem; }
}
@media (max-width: 480px) {
  .bm-404-grid { grid-template-columns: 1fr; }
  .bm-404-cat-list { grid-template-columns: 1fr; }
}

/* --- Responsive --------------------------------------------------------- */
@media screen and (max-width: 1024px) {
  .topbar-inner,
  .search-panel-inner,
  .footer-inner,
  .subscription-inner { padding: 28px 20px; }

  /* Container keeps zero vertical padding — prevents gap above hero at ~978px */
  .container { padding: 0 20px; }

  /* Tablet: keep desktop layout but tighter padding and smaller nav links */
  .topbar-inner { gap: 10px; padding-top: 0; padding-bottom: 0; }
  .nav-link { padding: 18px 10px; font-size: .9rem; }
  .header-actions { gap: 8px; }
  /* Hide join/login text labels at tablet to save space */
  .join-btn { display: none; }

  .ln-grid { grid-template-columns: 1fr; }
  .ln-side { border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 20px; }
  .feature-grid { grid-template-columns: 1fr; }

  .video-row    { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .promo-row,
  .banner-row   { grid-template-columns: repeat(2, 1fr); }
  .promo-row img, .banner-row img { width: 100%; height: auto; }

  .bottom-grid { grid-template-columns: 1fr 1fr; }
  .single-layout { grid-template-columns: 1fr; }
  .archive-grid { grid-template-columns: repeat(2, 1fr); }
}

@media screen and (max-width: 760px) {
  .topbar-inner,
  .footer-inner,
  .subscription-inner,
  .search-panel-inner,
  .container { padding: 0 14px; }

  /* Mobile search panel (in topbar): transparent, borderless — just the open input field */
  .topbar .search-panel {
    background: transparent;
    border-bottom: none;
  }
  .topbar .search-wide {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    border-bottom: 1px solid rgba(255,255,255,.25);  /* subtle underline only */
  }
  .topbar .search-wide svg { fill: #fff; }
  .topbar .search-wide input { color: #fff; }
  .topbar .search-wide input::placeholder { color: rgba(255,255,255,.55); }

  /* ── Non-header mobile rules ── */
  .top-ad { height: auto; padding: 24px 16px; text-align: center; }
  .top-ad .brand { position: static; right: auto; top: auto; margin-top: 12px; }

  .video-row    { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .promo-row,
  .banner-row,
  .bottom-grid  { grid-template-columns: 1fr; }

  .ln-hero-thumb img { height: 240px; }
  .ln-side-item { grid-template-columns: 72px 1fr; gap: 10px; }
  .ln-side-thumb img { width: 72px; height: 72px; }
  .side-item { grid-template-columns: 1fr; }
  .review-item,
  .bm-shop-widget-item { grid-template-columns: 72px 1fr; gap: 10px; }
  .review-thumb img, .review-thumb--ph,
  .bm-shop-widget-thumb img { width: 72px; height: 72px; }

  /* Price + Add to cart don't fit on one line at this width — stack them */
  .bm-shop-widget-footer { flex-direction: column; align-items: flex-start; gap: var(--space-2); }

  .footer-links-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .subscription-inner { grid-template-columns: 1fr; gap: 20px; padding: 28px 20px; }
  .subscription-form { flex-direction: column; width: 100%; }
  .subscription-form input { width: 100%; }
  .subscription-form button { width: 100%; }
  .fbr-gdpr-form { max-width: 100%; }

  /* ── Mobile header: burger LEFT | logo CENTRE | actions RIGHT ── */

  /* 1. topbar-inner becomes a single-row flex with no wrapping */
  .topbar-inner {
    position: relative;        /* anchor for the absolutely-centred logo */
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 0;
    min-height: 54px;
    padding: 0 10px;
  }

  /* 2. burger: leftmost slot, order 1 */
  .nav-toggle {
    display: inline-flex;
    order: 1;
    flex: 0 0 auto;
    margin-right: 0;
  }

  /* 3. logo: pulled out of flow, centred absolutely */
  .logo,
  .site-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    order: 2;                  /* ignored when position:absolute, kept for clarity */
    flex: 0 0 auto;
    font-size: 2rem;
    white-space: nowrap;
    pointer-events: auto;
  }
  /* Custom logo image — constrain height on mobile */
  .site-logo .custom-logo { height: 34px; }

  /* 4. nav: full-width drawer anchored absolutely below the sticky topbar.
     The topbar itself stays a single fixed-height row — logo, icons and burger
     never shift position when the drawer opens. */
  .nav {
    display: none;
    position: absolute;        /* out of flow — topbar-inner height unchanged */
    top: 100%;                 /* flush against the bottom of .topbar */
    left: 0;
    right: 0;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    background: var(--header-bg);
    border-top: 1px solid rgba(255,255,255,.08);
    z-index: 200;              /* above page content, below modal overlays */
    box-shadow: 0 8px 24px rgba(0,0,0,.32);
    max-height: calc(100vh - 54px); /* never taller than viewport minus header */
    overflow-y: auto;
  }
  /* Keep the header fixed to the top of the viewport on mobile so the
     menu stays reachable while scrolling. position: sticky is also a
     positioned value, so the drawer's top:100% still calculates correctly. */
  .topbar { position: sticky; top: 0; z-index: 300; }

  /* topbar-inner never needs to wrap any more — the drawer is out of flow */
  .topbar-inner:has(.nav.open),
  .topbar-inner.nav-is-open { flex-wrap: nowrap; /* no-op — kept for JS compat */ }

  .nav.open {
    display: flex;
  }
  .nav-item { width: 100%; }
  .nav-link { width: 100%; padding: 14px 16px; }
  .nav-link svg { margin-left: auto; }

  .nav-mobile-login {
    display: flex;
    color: var(--blue);
    font-weight: 700;
    border-top: 1px solid rgba(255,255,255,.08);
    margin-top: 4px;
  }
  .nav-mobile-login:hover { color: #fff; background: rgba(255,255,255,.06); }

  /* 5. header-actions: rightmost slot, order 3 */
  .header-actions {
    order: 3;
    flex: 0 0 auto;
    width: auto;
    justify-content: flex-end;
    gap: 6px;
    margin-left: 0;
  }
  /* Hide the text-heavy login and join buttons on mobile — icon buttons remain */
  .header-actions .join-btn,
  .header-actions .login-btn:not(.icon-btn) { display: none; }

  /* Simple dropdown — mobile: show inline below nav-item when open */
  .nav-item .nav-dropdown {
    position: static;
    width: 100%;
    border: none;
    box-shadow: none;
    background: #121212;
    border-radius: 0;
    padding: 0;
    display: none;
    flex-direction: column;
    border-top: 1px solid rgba(255,255,255,.06);
  }
  .nav-item.open .nav-dropdown { display: flex; }
  .nav-dropdown-link { color: #ddd; padding: 10px 24px; font-size: .9rem; }
  .nav-dropdown-link:hover { background: rgba(255,255,255,.06); color: #fff; }

  .archive-grid { grid-template-columns: 1fr; }
  .hero-title, .feature-title { font-size: 1.5rem; }
}

/* ── Cart count badge on header icon ─────────────────────────────────────── */
.dropdown-cart .icon-btn { position: relative; }
.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  background: var(--blue);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  border-radius: 9px;
  position: absolute;
  top: -2px;
  right: -4px;
  pointer-events: none;
}
.cart-count--empty { display: none; }

/* ── Footer widget areas ─────────────────────────────────────────────────── */

/* Widget wrapper already carries .footer-col via before_widget in functions.php.
   These rules normalise any widget type dropped into a footer column. */

/* Widget title — matches the hardcoded h4 style */
.footer-col .footer-widget-title,
.footer-col .widget-title {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text);
  line-height: 1.3;
}

/* Navigation Menu widget & wp_nav_menu fallback lists */
.footer-col .footer-nav,
.footer-col .menu,
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col .footer-nav li,
.footer-col .menu li,
.footer-col ul li {
  margin: 0;
  padding: 0;
}

.footer-col .footer-nav a,
.footer-col .menu a,
.footer-col ul li a {
  display: block;
  margin-bottom: 6px;
  color: var(--blue);
  font-size: .875rem;
  line-height: 1.4;
  text-decoration: none;
}

.footer-col .footer-nav a:hover,
.footer-col .menu a:hover,
.footer-col ul li a:hover {
  text-decoration: underline;
}

/* Text widget, HTML widget, paragraph content */
.footer-col .textwidget p,
.footer-col p {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--muted);
}

.footer-col .textwidget a,
.footer-col p a {
  color: var(--blue);
  text-decoration: none;
}

.footer-col .textwidget a:hover,
.footer-col p a:hover {
  text-decoration: underline;
}

/* ── Hero layout (full-bleed image spanning content + sidebar top) ─────── */
.fbr-layout-hero .fbr-hero-image-wrap {
  grid-column: 1 / -1;
  width: 100%;
  margin-bottom: 28px;
}
.fbr-layout-hero .fbr-hero-img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  border-radius: 6px;
}
.fbr-layout-hero .single-layout {
  grid-template-rows: auto 1fr;
}
.fbr-layout-hero .fbr-sidebar-below-hero {
  align-self: start;
}

/* ── Video layout — play icon overlay ───────────────────────────────────── */
.fbr-video-wrap { cursor: pointer; }
.fbr-play-icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 80px; height: 80px;
  pointer-events: none;
  transition: transform .2s, opacity .2s;
}
.fbr-video-trigger:hover .fbr-play-icon {
  transform: translate(-50%, -50%) scale(1.1);
  opacity: .9;
}

/* ── Audio layout ────────────────────────────────────────────────────────── */
.fbr-audio-player audio {
  width: 100%;
  border-radius: 6px;
}

/* ── Shared account / listing form elements ─────────────────────────────── */
.fbr-notice {
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 18px;
  font-size: .93rem;
}
.fbr-notice--success { background: #f0fdf4; border: 1px solid #86efac; color: #166534; }
.fbr-notice--error   { background: #fef2f2; border: 1px solid #fca5a5; color: #b91c1c; }
.fbr-notice--info    { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }

.fbr-submit-btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  margin-top: 12px;
}
.fbr-submit-btn:hover { background: var(--blue-dark); }


/* ── Newsletter band — tablet ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .subscription-inner {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 32px 20px;
  }
  .fbr-gdpr-form { max-width: 100%; }
  .nl-email-row input { min-width: 0; }
}
/* 1001–1024px: keep newsletter band in the desktop left/right split.
   Only collapse to single column below 1000px. */
@media screen and (min-width: 1001px) and (max-width: 1024px) {
  .subscription-inner {
    grid-template-columns: 1fr auto;
    gap: 40px;
    padding: 40px 20px;
  }
  .subscription-form {
    flex-direction: row;
    width: auto;
  }
  .subscription-form input { width: 220px; }
  .subscription-form button { width: auto; }
}
/* ── Newsletter GDPR form ─────────────────────────────────────────────── */
.nl-email-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
}
.nl-email-row input {
  flex: 1;
  min-width: 200px;
}
.nl-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  font-size: .85rem;
  color: rgba(255,255,255,.8);
  line-height: 1.5;
  cursor: pointer;
  width: 100%;
}
.nl-consent-label input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
  cursor: pointer;
}
.nl-consent-label a { color: #fff; text-decoration: underline; }
.nl-consent-label a:hover { color: rgba(255,255,255,.75); }
.fbr-gdpr-form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-width: 460px;
}
.nl-email-row {
  width: 100%;
  display: flex;
  gap: 8px;
}
.nl-email-row input {
  flex: 1;
  height: 46px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 6px;
  padding: 0 14px;
  font: inherit;
  font-size: 1rem;
  background: rgba(255,255,255,.12);
  color: #fff;
}
.nl-email-row input::placeholder { color: rgba(255,255,255,.5); }
.nl-email-row input:focus { outline: 2px solid var(--blue); border-color: transparent; }
.nl-email-row button {
  height: 46px;
  white-space: nowrap;
  padding: 0 20px;
  border: none;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}
.nl-email-row button:hover { background: var(--blue-dark); }
.nl-message {
  padding: 10px 14px;
  border-radius: 6px;
  font-size: .9rem;
  margin-bottom: 12px;
  width: 100%;
}
.nl-message--success { background: rgba(74,222,128,.18); border: 1px solid rgba(74,222,128,.45); color: #d1fae5; }
.nl-message--error   { background: rgba(248,113,113,.18); border: 1px solid rgba(248,113,113,.45); color: #fee2e2; }
.nl-message--info    { background: rgba(147,197,253,.18); border: 1px solid rgba(147,197,253,.45); color: #dbeafe; }

/* --- Inline newsletter (end of article) -------------------------------- */

/*
 * Rendered between the article body and the prev/next nav. Uses a tinted
 * accent-coloured panel that reads as editorial-curated, not as another
 * footer band. Form markup is shared with the footer (.fbr-gdpr-form +
 * .nl-email-row) — these rules scope overrides to .bm-inline-nl so the
 * dark footer styles are not affected.
 */
.bm-inline-nl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  margin: 40px 0;
  padding: 28px 32px;
  background: linear-gradient(135deg, rgba(37, 128, 232, 0.04), rgba(37, 128, 232, 0.10));
  border: 1px solid rgba(37, 128, 232, 0.25);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
}
.bm-inline-nl__heading h3 {
  font-size: 1.2rem;
  margin: 0 0 6px;
  color: var(--text);
}
.bm-inline-nl__heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.bm-inline-nl .fbr-gdpr-form {
  width: 100%;
  max-width: none;
}
.bm-inline-nl__row {
  display: flex;
  gap: 8px;
  width: 100%;
  margin-bottom: 10px;
}
.bm-inline-nl__row input {
  flex: 1;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
}
.bm-inline-nl__row input::placeholder { color: var(--muted); }
.bm-inline-nl__row input:focus {
  outline: 2px solid var(--blue);
  border-color: transparent;
}
.bm-inline-nl__row button {
  height: 44px;
  padding: 0 22px;
  background: var(--blue);
  color: #fff;
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.bm-inline-nl__row button:hover { background: var(--blue-dark); }
.bm-inline-nl__consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--muted);
}
.bm-inline-nl__consent input { margin-top: 3px; flex-shrink: 0; }
.bm-inline-nl__consent a { color: var(--blue); }

@media (max-width: 760px) {
  .bm-inline-nl {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px 20px;
  }
  .bm-inline-nl__row { flex-direction: column; }
  .bm-inline-nl__row input { flex: none; width: 100%; }
  .bm-inline-nl__row button { width: 100%; }
}

/* ── Single post breadcrumbs ─────────────────────────────────────────────── */
.fbr-single-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: .88rem;
  color: var(--muted);
  margin-bottom: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.fbr-single-breadcrumb a {
  color: var(--blue);
  text-decoration: none;
}
.fbr-single-breadcrumb a:hover { text-decoration: underline; }
.fbr-bc-sep { color: #bbb; margin: 0 2px; }
.fbr-bc-current {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 280px;
  display: inline-block;
  vertical-align: middle;
}

/* ── Predictive search dropdown ──────────────────────────────────────────── */
/*
 * z-index sits above the topbar (10) and hero overlays (~5) but below
 * modal-level UI. The dropdown is a natural-flow block element; this
 * z-index applies only when an ancestor establishes a stacking context.
 */
.fbr-search-results {
  display: none;
  position: relative;
  z-index: 1000;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  overflow: hidden;
  max-height: 420px;
  overflow-y: auto;
}
.fbr-search-results.open { display: block; }

/* Group header ("Articles", "Pages") — small, uppercase, tinted. */
.fbr-sr-group:not(:first-child) {
  border-top: 1px solid var(--line);
}
.fbr-sr-group-header {
  padding: 10px 16px 6px;
  background: #f7f9fc;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--line);
}

/* Mobile full-width — on phones the dropdown breaks out to span the
 * viewport. Anchored to the input via fixed positioning so it works
 * regardless of whether the parent establishes a stacking context.
 * Width:100vw + left:0 gets the full screen edge-to-edge. */
@media (max-width: 600px) {
  .fbr-search-results {
    position: fixed;
    left: 0;
    right: 0;
    width: 100vw;
    max-width: 100vw;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    max-height: 70vh;
    z-index: 1100;
  }
  .bm-search-page-form .fbr-search-results {
    /* In-page form keeps natural flow on mobile — sits below the input
     * in the page rhythm rather than overlaying everything. */
    position: relative;
    width: auto;
    max-width: none;
    border-radius: 0 0 8px 8px;
  }
}

/* ── In-page predictive search form (search.php) ─────────────────────── */
/*
 * Variant used on the search results page itself. Same dropdown
 * markup as the header form (via .fbr-search-results / .fbr-sr-*
 * classes), but the wrapper is full-width inline rather than the
 * collapsed top-bar form.
 */
.bm-search-page-form {
  margin: 16px 0 28px;
  position: relative;
}
.bm-search-page-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.bm-search-page-input-wrap:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 128, 232, 0.12);
}
.bm-search-page-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--muted);
}
.bm-search-page-input-wrap input {
  flex: 1;
  height: 48px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 1rem;
  padding: 0;
  outline: none;
  color: var(--text);
}
.bm-search-page-input-wrap input::placeholder { color: var(--muted); }

/*
 * The results dropdown on the search page tucks under the input wrap
 * with matching radius. The shared .fbr-search-results rules above
 * supply the rest (border, shadow, max-height, .open display toggle).
 */
.bm-search-page-form .fbr-search-results {
  margin-top: -1px;
  border-top: 1px solid var(--line);
  border-radius: 0 0 8px 8px;
}

.fbr-sr-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  transition: background .15s;
}
.fbr-sr-item:hover,
.fbr-sr-item.is-focused {
  background: #f0f6ff;
  color: var(--text);
  outline: 0;
}
.fbr-sr-item.is-focused {
  box-shadow: inset 3px 0 0 var(--blue);
}
.fbr-sr-item:last-of-type { border-bottom: none; }

.fbr-sr-thumb {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}
.fbr-sr-thumb--ph {
  background: var(--line);
}
.fbr-sr-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.fbr-sr-title {
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fbr-sr-cat {
  font-size: .78rem;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.fbr-sr-date {
  font-size: .78rem;
  color: var(--muted);
}
.fbr-sr-all {
  display: block;
  text-align: center;
  padding: 12px;
  font-size: .88rem;
  font-weight: 700;
  color: var(--blue);
  background: #f8f9fa;
  text-decoration: none;
}
.fbr-sr-all:hover,
.fbr-sr-all.is-focused {
  background: var(--line);
  color: var(--blue);
  outline: 0;
}
.fbr-sr-empty {
  padding: 20px 16px;
  text-align: center;
  color: var(--muted);
  font-size: .93rem;
}

/* ── Homepage 4-card grid (Latest News + Latest Articles) ───────────────── */
.fbr-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
  border-top: 3px solid var(--blue);
  padding-top: var(--space-5);
}
.fbr-section-header .section-title {
  margin: 0;
}
.fbr-view-all {
  font-size: .9rem;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  white-space: nowrap;
}
.fbr-view-all:hover { text-decoration: underline; }

.fbr-hp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: var(--space-7);
}

.fbr-hp-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: box-shadow .2s, transform .2s;
}
.fbr-hp-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,.1);
  transform: translateY(-3px);
}

.fbr-hp-card-img-wrap {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--line);
  flex-shrink: 0;
}
.fbr-hp-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  display: block;
  transition: transform .35s ease;
}
.fbr-hp-card:hover .fbr-hp-card-img-wrap img {
  transform: scale(1.04);
}
.fbr-hp-card-no-thumb {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e0e7ef 0%, #c8d5e6 100%);
}

/* Category badge */
.fbr-hp-card-cat {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: var(--blue);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: 4px 9px;
  border-radius: 4px;
  z-index: 2;
}

/* Media overlay icons */
.fbr-hp-card:hover .fbr-hp-media-icon {
  transform: translate(-50%, -50%) scale(1.12);
}

/* Card body */
.fbr-hp-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.fbr-hp-card-date {
  font-size: .78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 0;
}
.fbr-hp-card-title {
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 700;
  margin: 0;
  letter-spacing: -.01em;
}
.fbr-hp-card-title a {
  color: var(--text);
  text-decoration: none;
}
.fbr-hp-card-title a:hover { color: var(--blue); }
.fbr-hp-card-excerpt {
  font-size: .875rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Responsive */
@media (max-width: 1024px) {
  .fbr-hp-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .fbr-hp-grid { grid-template-columns: 1fr; gap: 14px; }
  .fbr-hp-card-img-wrap { aspect-ratio: 16 / 9; }
}

/* ── Homepage media overlay icons (video / audio) ────────────────────────── */
.ln-hero-thumb { position: relative; }
.fbr-hp-media-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  pointer-events: none;
  z-index: 3;
  transition: transform .2s;
}
.fbr-hp-media-icon svg { width: 56px; height: 56px; display: block; filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); }
.ln-hero-thumb:hover .fbr-hp-media-icon,
.ln-side-thumb:hover .fbr-hp-media-icon { transform: translate(-50%, -50%) scale(1.12); }

/* Smaller icon on side thumbs */
.fbr-hp-media-icon--sm { width: 28px; height: 28px; }
.fbr-hp-media-icon--sm svg { width: 28px; height: 28px; }

/* ════════════════════════════════════════════════════════════════════════════
   BANDMASTER SINGLE POST ADDITIONS
   ════════════════════════════════════════════════════════════════════════════ */

/* ── Post title — tight under breadcrumb divider ────────────────────────── */
.bm-post-title {
  font-size: 2rem;
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 0 0 14px;
}
/* Remove gap between breadcrumb and title */
.fbr-single-breadcrumb {
  margin-bottom: 10px;
  padding-bottom: 10px;
}
.bm-post-title + .meta { margin-bottom: 14px; }

/* ── "Listen" text-to-speech button — below the byline ───────────────────── */
.meta + .fbr-listen-btn { margin: 0; }

.fbr-listen-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--blue);
  font-size: .82rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.fbr-listen-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.fbr-listen-btn:hover { background: #eaf3ff; border-color: var(--blue); }
.fbr-listen-btn[data-state="playing"],
.fbr-listen-btn[data-state="paused"] {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.fbr-listen-btn[data-state="playing"] svg { animation: fbr-listen-pulse 1.2s ease-in-out infinite; }
@keyframes fbr-listen-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .45; }
}

/* ── Hero banner layout ───────────────────────────────────────────────────── */
.bm-hero-banner {
  position: relative;
  /* Break out of .container to fill full .site width (1200px) */
  width: 100vw;
  max-width: 1200px;
  margin-left: 50%;
  transform: translateX(-50%);
  height: 500px;
  overflow: hidden;
  margin-bottom: 0;
}
.bm-hero-banner__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}
.bm-hero-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(0,0,0,.45) 0%,
    rgba(0,0,0,.15) 40%,
    rgba(0,0,0,.15) 60%,
    rgba(0,0,0,.55) 100%);
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 0;
}

/* Breadcrumb — top-left, aligned to the same left edge as .container content */
.bm-hero-breadcrumb {
  align-self: start;
  /* inner wrapper centres to 1098px then adds 20px side padding — matching container */
  width: 100%;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  padding: 14px calc((100% - 1098px) / 2 + 20px) 12px;
  border-bottom: 1px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.85);
  margin-bottom: 0;
  box-sizing: border-box;
}
/* On viewports narrower than 1098px the calc goes negative — clamp to 20px */
@media (max-width: 1138px) {
  .bm-hero-breadcrumb { padding-left: 20px; padding-right: 20px; }
}
.bm-hero-breadcrumb a { color: #fff; }
.bm-hero-breadcrumb a:hover { text-decoration: underline; }
.bm-hero-breadcrumb .fbr-bc-sep { color: rgba(255,255,255,.45); margin: 0 2px; }
.bm-hero-breadcrumb .fbr-bc-current { color: rgba(255,255,255,.7); max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Title — centred vertically and horizontally in remaining space */
.bm-hero-banner__title {
  align-self: center;
  justify-self: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 auto;
  padding: 0 40px;
  max-width: 860px;
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
}

.fbr-listen-btn--hero {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.4);
  color: #fff;
  backdrop-filter: blur(3px);
}
.fbr-listen-btn--hero:hover { background: rgba(255,255,255,.22); }
.fbr-listen-btn--hero[data-state="playing"],
.fbr-listen-btn--hero[data-state="paused"] {
  background: var(--blue);
  border-color: var(--blue);
}

/* Meta + Listen button — bottom of image */
.bm-hero-meta-row {
  align-self: end;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 28px 22px;
  border-top: 1px solid rgba(255,255,255,.18);
}
.bm-hero-banner__meta {
  text-align: center;
  color: rgba(255,255,255,.82);
  font-size: .9rem;
}

/* ── Media wrap (video/audio thumbnails on non-hero posts) ──────────────── */
.bm-media-wrap {
  position: relative;
  margin-bottom: 24px;
  overflow: hidden;
  border-radius: 6px;
}
.bm-media-wrap img { width: 100%; height: auto; display: block; border-radius: 0; }
.bm-media-wrap .play-overlay { border-radius: 6px; }

/* ── Small play button variant for related posts ────────────────────────── */
.play-button--sm {
  width: 36px;
  height: 36px;
}
.play-button--sm svg { width: 12px; height: 12px; margin-left: 2px; }

/* ── Related Posts scroller ─────────────────────────────────────────────── */
.bm-related {
  background: var(--panel);
  border-top: 3px solid var(--blue);
  padding: 32px 0 36px;
  margin-top: 20px;
  margin-bottom: 0;
}
.bm-related__inner {
  width: min(100%, 1098px);
  margin: 0 auto;
  padding: 0 20px;
}
.bm-related__heading {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 18px;
  color: var(--text);
}
.bm-related__track-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}
.bm-related__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex: 1;
  min-width: 0;
}
.bm-related__track::-webkit-scrollbar { display: none; }

.bm-related__card {
  flex: 0 0 calc(25% - 15px);
  min-width: 220px;
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.bm-related__card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.bm-related__img-wrap {
  display: block;
  position: relative;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  background: var(--line);
}
.bm-related__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform .35s;
}
.bm-related__card:hover .bm-related__img-wrap img { transform: scale(1.04); }
.bm-related__no-thumb {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e0e7ef, #c8d5e6);
}

/* --- Default thumbnail placeholder ------------------------------------- */

/*
 * Applied to <img> elements served by bandmaster_post_thumbnail() when
 * the post has no Featured Image. Subtle desaturation marks them as
 * placeholders without screaming "broken." Hover states (zoom, scale)
 * still apply — the visual rhythm of the grid is preserved.
 */
.bm-default-thumb {
  filter: saturate(0.85) brightness(0.98);
}

/*
 * Last-resort guard: when no Customizer default is set, the bundled
 * SVG ships with class .bm-default-thumb--bundled. If the SVG file is
 * ever missing (404), an <img> with broken alt collapses to the alt
 * text — these rules give the broken state a coloured backdrop so the
 * layout never shows a stark white gap.
 *
 * This is purely defensive: in the normal case the SVG loads and these
 * rules do nothing visible.
 */
.bm-default-thumb--bundled {
  background: var(--blue, #2580e8);
  min-height: 80px;
}
.bm-default-thumb--bundled[alt]:not([alt=""]) {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bm-related__body { padding: 12px; }
.bm-related__date { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 0 0 5px; }
.bm-related__title { font-size: .95rem; font-weight: 700; line-height: 1.3; margin: 0; }
.bm-related__title a { color: var(--text); text-decoration: none; }
.bm-related__title a:hover { color: var(--blue); }

.bm-related__arrow {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, border-color .15s;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.bm-related__arrow svg { width: 20px; height: 20px; fill: var(--text); }
.bm-related__arrow:hover { background: var(--blue); border-color: var(--blue); }
.bm-related__arrow:hover svg { fill: #fff; }

@media (max-width: 1024px) {
  .bm-related__card { flex: 0 0 calc(50% - 10px); }
}
@media (max-width: 760px) {
  .bm-hero-banner__title { font-size: 1.6rem; }
  .bm-hero-banner { height: 340px; margin-left: 0; transform: none; width: 100%; }
  .bm-hero-banner__title { font-size: 1.55rem; padding: 0 16px; }
  .bm-hero-meta-row { padding: 10px 16px 16px; gap: 4px; }
  .bm-hero-breadcrumb { padding: 10px 16px; }
  .bm-related__card { flex: 0 0 calc(85% - 10px); }
  .bm-related__arrow { display: none; }
  .bm-post-title { font-size: 1.5rem; }
}

/* No gap between related posts section and newsletter band */
.bm-related + .subscription-band {
  margin-top: 0;
}

/* ── Prev / Next post navigation with thumbnails ─────────────────────────── */
.bm-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 32px 0 0;
  padding-top: 24px;
  border-top: 2px solid var(--line);
}
.bm-post-nav__item {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  transition: box-shadow .2s, border-color .2s;
}
.bm-post-nav__item:hover {
  box-shadow: var(--shadow);
  border-color: var(--blue);
  color: var(--text);
}
.bm-post-nav__item--next { justify-content: flex-end; }
.bm-post-nav__thumb {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 5px;
  flex-shrink: 0;
}
.bm-post-nav__thumb--ph {
  background: var(--line);
  border-radius: 5px;
}
.bm-post-nav__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.bm-post-nav__text--right { text-align: right; }
.bm-post-nav__label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--blue);
}
.bm-post-nav__title {
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 760px) {
  .bm-post-nav { grid-template-columns: 1fr; }
  .bm-post-nav__item--next { justify-content: flex-start; }
  .bm-post-nav__text--right { text-align: left; }
}

/* ── Brand tags (post_brand taxonomy) ────────────────────────────────────── */
.fbr-brand-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: var(--space-5) 0;
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
}
.fbr-brand-tags__label {
  font-size: .875rem;
  font-weight: 700;
  color: var(--text);
  margin-right: 4px;
}
.fbr-brand-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border: 1px solid var(--blue);
  border-radius: 20px;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.fbr-brand-tag:hover {
  background: var(--blue);
  color: #fff;
}

/* ── Social share bar ────────────────────────────────────────────────────── */
.bm-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 20px 0 24px;
}
.bm-share__label {
  font-size: .82rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-right: 4px;
}
.bm-share__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 6px;
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity .15s, transform .15s;
  line-height: 1;
  font-family: inherit;
}
.bm-share__btn:hover { opacity: .85; transform: translateY(-1px); }
.bm-share__btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.bm-share__btn--facebook  { background: #1877f2; color: #fff; }
.bm-share__btn--facebook svg { fill: #fff; stroke: none; }
.bm-share__btn--twitter   { background: #000; color: #fff; }
.bm-share__btn--twitter svg { fill: #fff; stroke: none; }
.bm-share__btn--linkedin  { background: #0a66c2; color: #fff; }
.bm-share__btn--linkedin svg { fill: #fff; stroke: none; }
.bm-share__btn--whatsapp  { background: #25d366; color: #fff; }
.bm-share__btn--whatsapp svg { fill: #fff; stroke: none; }
.bm-share__btn--copy      { background: var(--panel); color: var(--text); border: 1px solid var(--line); }
.bm-share__btn--copy svg  { stroke: var(--text); }
.bm-share__btn--google-source { background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.bm-share__btn--google-source svg { stroke: none; }
@media (max-width: 480px) {
  .bm-share__btn span { display: none; }
  .bm-share__btn { padding: 9px; }
  .bm-share__btn svg { width: 17px; height: 17px; }
}

/* Container gets breathing room only when a leaderboard ad is present */
.has-leader-ad { margin-top: 32px; }

/* Homepage: when there's no leaderboard ad, the "Latest News" heading
   still needs the same breathing room from the header above it. */
.home .container:not(.has-leader-ad) { margin-top: 32px; }

/* ── Search / Archive load-more spacing ────────────────────────────────── */
/* Ensures clear visual separation between the last result / load-more
   button and the newsletter band below. */
.bm-load-more-wrap {
  padding-bottom: 56px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Comments — Modern boxed threaded design
   ═══════════════════════════════════════════════════════════════════════════ */

.bm-comments-area {
  margin-top: 48px;
  border-top: 2px solid var(--blue);
  padding-top: 32px;
}

/* ── Header row ─────────────────────────────────────────────────────────── */
.bm-comments-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.bm-comments-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}
.bm-comments-count {
  color: var(--blue);
}

/* ── Comment list — strip default list styling ──────────────────────────── */
.bm-comment-list,
.bm-comment-list ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ── Top-level comment card ─────────────────────────────────────────────── */
.bm-comment--top {
  margin-bottom: 20px;
}
.bm-comment--top > .bm-comment-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px 22px;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
  transition: box-shadow .2s;
}
.bm-comment--top > .bm-comment-card:hover {
  box-shadow: 0 3px 12px rgba(0,0,0,.09);
}

/* ── Reply / child comments — inset inside parent card ─────────────────── */
.bm-comment-list .children {
  list-style: none;
  padding: 0;
  margin: 16px 0 0 0;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.bm-comment--reply {
  margin-bottom: 14px;
}
.bm-comment--reply > .bm-comment-card {
  padding: 14px 16px;
  background: var(--panel, #f8f9fa);
  border-radius: 8px;
  border-left: 3px solid var(--blue);
  margin-left: 20px;
}
/* Deeper nesting — progressively smaller left indent */
.children .children .bm-comment--reply > .bm-comment-card { margin-left: 14px; }
.children .children .children .bm-comment--reply > .bm-comment-card { margin-left: 8px; }

/* ── Comment header ─────────────────────────────────────────────────────── */
.bm-comment-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.bm-comment-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.bm-comment-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid var(--line);
}
.bm-comment--reply .bm-comment-avatar {
  width: 36px;
  height: 36px;
}
.bm-comment-byline {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.bm-comment-author {
  font-weight: 700;
  font-size: .9375rem;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bm-comment-author a { color: inherit; text-decoration: none; }
.bm-comment-author a:hover { color: var(--blue); }
.bm-comment-time {
  font-size: .78rem;
  color: var(--muted);
}

/* ── Action buttons ─────────────────────────────────────────────────────── */
.bm-comment-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.bm-comment-actions .comment-reply-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  transition: border-color .15s, color .15s;
}
.bm-comment-actions .comment-reply-link:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.bm-comment-edit {
  color: var(--muted);
  transition: color .15s;
}
.bm-comment-edit:hover { color: var(--blue); }

/* ── Moderation notice ──────────────────────────────────────────────────── */
.bm-comment-moderation {
  font-size: .82rem;
  color: #92400e;
  background: #fef3c7;
  border-radius: 5px;
  padding: 6px 10px;
  margin: 0 0 10px;
}

/* ── Comment body text ──────────────────────────────────────────────────── */
.bm-comment-body p {
  margin: 0 0 10px;
  font-size: .9375rem;
  line-height: 1.7;
  color: var(--text);
}
.bm-comment-body p:last-child { margin-bottom: 0; }
.bm-comment-body a { color: var(--blue); text-decoration: underline; }

/* ── Comment form ───────────────────────────────────────────────────────── */
.bm-comment-form-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 40px 0 8px;
}
.bm-comment-form-note {
  font-size: .82rem;
  color: var(--muted);
  margin: 0 0 20px;
}
.bm-comment-form .bm-comment-fields-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.bm-comment-form p {
  margin: 0 0 16px;
}
.bm-comment-form label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--text);
}
.bm-comment-form label span { color: var(--blue); }
.bm-comment-form input[type="text"],
.bm-comment-form input[type="email"],
.bm-comment-form input[type="url"],
.bm-comment-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 7px;
  font: inherit;
  font-size: .9375rem;
  color: var(--text);
  background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
  box-sizing: border-box;
}
.bm-comment-form input:focus,
.bm-comment-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,128,232,.12);
}
.bm-comment-form textarea { resize: vertical; min-height: 140px; }
.bm-comment-submit {
  padding: 13px 28px;
  font-size: 1rem;
  font-weight: 700;
}

/* ── "No more comments" / closed state ─────────────────────────────────── */
.bm-comments-closed {
  color: var(--muted);
  font-style: italic;
  text-align: center;
  padding: 20px 0;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .bm-comment-fields-row { grid-template-columns: 1fr; }
  .bm-comment--reply > .bm-comment-card { margin-left: 8px; }
  .bm-comment--top > .bm-comment-card { padding: 14px 14px; }
}

/* =======================================================================
 * v1.2.0 additions
 * ===================================================================== */

/* --- Sidebar widget normalisation -------------------------------------
 * Make single-post and shop (cart/checkout/single-product) sidebar widgets
 * match the category page sidebar boxes (.fbr-sw / .fbr-sw h3). */
.single-sidebar .widget {
	border: 1px solid var(--line);
	border-radius: 8px;
	padding: 18px;
	margin-bottom: 20px;
	background: var(--surface);
}
.single-sidebar .widget:last-child { margin-bottom: 0; }
.single-sidebar .widget-title {
	margin: 0 0 14px;
	font-size: .97rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: #555;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--blue);
}

/* --- Newsletter row: fixed dimensions, no shift on status messages -----
 * The band height is fixed and the form is vertically centred, leaving a
 * reserved zone above the form. Status messages are taken out of flow and
 * float into that zone, so showing/hiding a message never moves the form
 * or resizes the row. */
.subscription-inner { min-height: 184px; align-items: center; }
.nl-form-col {
	position: relative;
	width: 460px;
	max-width: 100%;
	justify-self: end;
}
.nl-form-col .nl-message {
	position: absolute;
	left: 0;
	right: 0;
	bottom: calc(100% + 12px);
	margin: 0;
}
@media (max-width: 1000px) {
	.subscription-inner { min-height: 0; align-items: start; }
	.nl-form-col { width: 100%; justify-self: stretch; }
	.nl-form-col .nl-message { position: static; margin-bottom: 12px; }
}

/* =======================================================================
 * v1.3.0 — Global button system, widget typography, featured widget,
 * subscribe page
 * ===================================================================== */

/* --- Global buttons (non-WooCommerce; Woo buttons mirror these tokens in
       woocommerce.css so every button matches) --- */
.btn,
.fbr-btn-shop,
.fbr-btn-checkout,
.fbr-btn-cart,
.bm-featured-cta,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: var(--btn-pad-y) var(--btn-pad-x);
	border: 2px solid var(--blue);
	border-radius: var(--btn-radius);
	background: var(--blue);
	color: #fff;
	font-size: var(--btn-font-size);
	font-weight: var(--btn-weight);
	line-height: 1;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background .15s ease, border-color .15s ease, color .15s ease, transform .05s ease;
}
.btn:hover,
.fbr-btn-shop:hover,
.fbr-btn-checkout:hover,
.bm-featured-cta:hover,
.wp-block-button__link:hover {
	background: var(--blue-dark);
	border-color: var(--blue-dark);
	color: #fff;
}
.btn:active,
.fbr-btn-shop:active,
.fbr-btn-checkout:active,
.bm-featured-cta:active { transform: translateY(1px); }

/* Outline variant — same geometry, transparent fill */
.fbr-btn-cart,
.btn--ghost {
	background: transparent;
	color: var(--blue);
}
.fbr-btn-cart:hover,
.btn--ghost:hover { background: var(--blue); color: #fff; }

/* Header buttons — same design language, header-compact height retained */
.join-btn,
.login-btn {
	border-radius: var(--btn-radius);
	font-weight: var(--btn-weight);
	transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.join-btn { background: var(--blue); border: 2px solid var(--blue); color: #fff; }
.join-btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.login-btn { background: transparent; border: 2px solid rgba(255,255,255,.35); color: #fff; }
.login-btn:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }

/* --- Sidebar widget typography: uniform across all single/shop sidebars --- */
.single-sidebar .widget,
.single-sidebar .widget p,
.single-sidebar .widget li,
.single-sidebar .widget a { font-size: .9rem; line-height: 1.5; }
.single-sidebar .widget ul { list-style: none; margin: 0; padding: 0; }
.single-sidebar .widget li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.single-sidebar .widget li:last-child { border-bottom: none; }
.single-sidebar .widget a { color: var(--text); text-decoration: none; font-weight: 600; }
.single-sidebar .widget a:hover { color: var(--blue); }

/* --- Featured Products widget (review-list style) --- */
.bm-featured-list { list-style: none; margin: 0; padding: 0; }
.bm-featured-product {
	display: grid;
	grid-template-columns: 64px 1fr;
	gap: 12px;
	align-items: center;
	padding: 12px 0;
	border-bottom: 1px solid var(--line);
}
.bm-featured-product:first-child { padding-top: 0; }
.bm-featured-product:last-child { border-bottom: none; }
.bm-featured-thumb { display: block; border-radius: 6px; overflow: hidden; background: #f0f0f0; }
.bm-featured-thumb img {
	width: 64px;
	height: 64px;
	object-fit: cover;
	display: block;
	transition: transform .3s ease;
}
.bm-featured-thumb:hover img { transform: scale(1.05); }
.bm-featured-info { min-width: 0; }
.bm-featured-title { margin: 0 0 3px; font-size: .9rem; font-weight: 600; line-height: 1.3; }
.bm-featured-title a { color: var(--text); text-decoration: none; }
.bm-featured-title a:hover { color: var(--blue); }
.bm-featured-price { font-size: .85rem; font-weight: 700; color: var(--blue); }
.bm-featured-price del { color: var(--muted); font-weight: 400; margin-right: 5px; }
.bm-featured-price ins { text-decoration: none; }
.bm-featured-cta { width: 100%; margin-top: 14px; }

/* --- Shop widget (homepage) — mirrors .review-item's proportions so it
       fills the same row-height as the Reviews column it sits opposite --- */
.bm-shop-widget-item {
	display: grid;
	grid-template-columns: 96px 1fr;
	gap: 14px;
	align-items: start;
	padding: 12px 0;
	border-top: 1px solid var(--line);
}
.bm-shop-widget-item:first-child { border-top: none; padding-top: 0; }

.bm-shop-widget-thumb { display: block; flex-shrink: 0; overflow: hidden; border-radius: 5px; background: #ddd; }
.bm-shop-widget-thumb img {
	width: 96px;
	height: 96px;
	object-fit: cover;
	border-radius: 5px;
	display: block;
	transition: transform .3s ease;
}
.bm-shop-widget-thumb:hover img { transform: scale(1.04); }

.bm-shop-widget-info { min-width: 0; }
.bm-shop-widget-info h4 { margin: 0 0 4px; font-size: .9375rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.bm-shop-widget-info h4 a { color: var(--text); text-decoration: none; }
.bm-shop-widget-info h4 a:hover { color: var(--blue); }

.bm-shop-widget-excerpt {
	margin: 0 0 6px;
	font-size: .84rem;
	color: var(--muted);
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.bm-shop-widget-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3);
	flex-wrap: wrap;
}

.bm-shop-widget-price { font-size: .9rem; font-weight: 700; color: var(--blue); }
.bm-shop-widget-price del { color: var(--muted); font-weight: 400; margin-right: 5px; }
.bm-shop-widget-price ins { text-decoration: none; }

/* Add-to-cart link rendered by woocommerce_template_loop_add_to_cart() —
   styled outside .woocommerce since this widget can sit on any page. */
.bm-shop-widget-add .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 6px 14px;
	border: 2px solid var(--blue);
	border-radius: var(--btn-radius);
	background: var(--blue);
	color: #fff;
	font-size: .8rem;
	font-weight: var(--btn-weight);
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: background .15s ease, border-color .15s ease, transform .05s ease;
}
.bm-shop-widget-add .button:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.bm-shop-widget-add .button:active { transform: translateY(1px); }
.bm-shop-widget-add .added_to_cart {
	display: inline-block;
	margin-left: var(--space-2);
	font-size: .8rem;
	font-weight: 600;
	color: var(--blue);
	text-decoration: none;
}
.bm-shop-widget-add .added_to_cart:hover { color: var(--blue-dark); }

.bm-shop-widget-cta { width: 100%; margin-top: 14px; }

/* --- Newsletter subscribe page --- */
.subscribe-page {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-7);
	align-items: center;
	padding: var(--space-7) 0;
}
.subscribe-page:not(.has-media) {
	grid-template-columns: minmax(0, 620px);
	justify-content: center;
	text-align: center;
}
.subscribe-title { font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.1; margin: 0 0 var(--space-4); }
.subscribe-copy { color: var(--muted); font-size: 1.05rem; line-height: 1.6; margin-bottom: var(--space-5); }
.subscribe-form { max-width: 480px; }
.subscribe-page:not(.has-media) .subscribe-form { margin: 0 auto; }
.subscribe-email-row { display: flex; gap: 10px; margin-bottom: 12px; }
.subscribe-email-row input[type="email"] {
	flex: 1;
	min-width: 0;
	height: 46px;
	padding: 0 14px;
	border: 1px solid #d1d5db;
	border-radius: var(--btn-radius);
	font-size: 1rem;
}
.subscribe-email-row input[type="email"]:focus { outline: 2px solid var(--blue); border-color: var(--blue); }
.subscribe-email-row .btn { flex: 0 0 auto; }
.subscribe-form .nl-consent-label { display: flex; gap: 8px; align-items: flex-start; font-size: .85rem; color: var(--muted); text-align: left; }
.subscribe-form .nl-consent-label a { color: var(--blue); }
.subscribe-reassurance { margin: 12px 0 0; font-size: .85rem; color: var(--muted); }
.subscribe-media img { width: 100%; height: auto; border-radius: 12px; display: block; }
.subscribe-page .nl-message { padding: 12px 16px; border-radius: 8px; font-size: .92rem; border: 1px solid var(--line); margin-bottom: var(--space-4); }
.subscribe-page .nl-message--success { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }
.subscribe-page .nl-message--info { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.subscribe-page .nl-message--error { background: #fef2f2; border-color: #fca5a5; color: #b91c1c; }
@media (max-width: 820px) {
	.subscribe-page,
	.subscribe-page:not(.has-media) { grid-template-columns: 1fr; text-align: left; }
	.subscribe-page:not(.has-media) .subscribe-form { margin: 0; }
	.subscribe-media { order: -1; }
}

/* Keep the Featured CTA button styled as a button inside sidebars
   (out-specifies the generic .single-sidebar .widget a rule). */
.single-sidebar .widget a.bm-featured-cta { color: #fff; font-size: var(--btn-font-size); font-weight: var(--btn-weight); }
.single-sidebar .widget a.bm-featured-cta:hover { color: #fff; }

/* --- Recent Posts widget (matches the "Most Read" sidebar block on
   category pages — see .fbr-pop-item in category.css) --- */
.fbr-pop-item {
	display: grid;
	grid-template-columns: 60px 1fr;
	gap: 10px;
	padding: 10px 0;
	border-bottom: 1px solid var(--line);
	align-items: center;
}
.fbr-pop-item:first-of-type { padding-top: 0; }
.fbr-pop-item:last-of-type { border-bottom: none; padding-bottom: 0; }
.fbr-pop-item img { width: 60px; height: 60px; object-fit: cover; border-radius: 5px; }
.fbr-pop-item h4 { margin: 0 0 3px; font-size: .86rem; line-height: 1.3; font-weight: 600; }
.fbr-pop-item span { font-size: .75rem; color: var(--muted); }
.single-sidebar .widget a .fbr-pop-item,
.single-sidebar .widget .fbr-pop-item h4 a {
	font-weight: 600;
	font-size: .86rem;
	line-height: 1.3;
}

/* --- Light / Dark mode toggle ------------------------------------------- */
.bm-theme-toggle {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 56px;
  padding: 0;
  border: 1px solid var(--line);
  border-right: none;
  border-radius: 10px 0 0 10px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.bm-theme-toggle:hover { background: var(--panel); }
.bm-theme-icon { width: 20px; height: 20px; fill: currentColor; }
.bm-theme-icon--moon { display: none; }
[data-theme="dark"] .bm-theme-icon--sun { display: none; }
[data-theme="dark"] .bm-theme-icon--moon { display: block; }
@media (max-width: 760px) {
  .bm-theme-toggle { width: 34px; height: 48px; }
  .bm-theme-icon { width: 16px; height: 16px; }
}
