/*
Theme Name: BrandMentions
Theme URI: https://brandmentions.com
Author: BrandMentions
Description: BrandMentions Blog theme — 2026 redesign
Version: 2.1.1
License: Private
Text Domain: BrandMentions
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root {
  /* Brand */
  --bm-purple: #56489f;
  --bm-purple-deep: #3a3078;
  --bm-purple-soft: #ecebf7;
  --bm-pink: #e00b3d;        /* brand pink, tuned for 4.9:1 with white text (WCAG AA) */
  --bm-pink-deep: #c20a35;
  --bm-pink-bright: #f3144d; /* original hue, for decorative dots/marks only */

  /* Neutrals */
  --bm-ink: #16152a;
  --bm-ink-2: #4a4862;
  --bm-ink-3: #6b6987;
  --bm-line: #e6e5f0;
  --bm-line-strong: #d3d1e3;
  --bm-surface: #f7f6fb;
  --bm-surface-2: #f0eff7;
  --bm-white: #fff;
  --bm-dark: #14131f;

  /* Type */
  --bm-font: "IBM Plex Sans", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --bm-display: "Bricolage Grotesque", "IBM Plex Sans", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --bm-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Layout */
  --bm-container: 1180px;
  --bm-article: 720px;
  --bm-aside: 300px;
  --bm-prose: 100%;    /* one width for everything in the column: text, images, tables, quotes */
  --bm-gutter: 24px;
  --bm-nav-h: 64px;

  /* Shape */
  --bm-radius-s: 8px;
  --bm-radius: 12px;
  --bm-radius-l: 16px;
  --bm-shadow: 0 1px 2px rgba(22,21,42,.04), 0 8px 24px -12px rgba(22,21,42,.18);
  --bm-shadow-l: 0 24px 64px -24px rgba(22,21,42,.28);

  /* Per-article accent (set inline by the templates) and the tints derived from it */
  --bm-article-color: var(--bm-purple);
  --bm-accent: var(--bm-article-color);
  --bm-accent-deep: color-mix(in srgb, var(--bm-article-color) 68%, #16152a);
  --bm-accent-text: color-mix(in srgb, var(--bm-article-color) 78%, #16152a);
  --bm-accent-soft: color-mix(in srgb, var(--bm-article-color) 11%, #fff);
  --bm-accent-line: color-mix(in srgb, var(--bm-article-color) 24%, #fff);
}

/* ==========================================================================
   2. Reset / base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--bm-nav-h) + 24px); }
html, body { overflow-x: clip; } /* safety net: no horizontal scroll, sticky still works (clip ≠ hidden) */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  font-family: var(--bm-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--bm-ink);
  background: var(--bm-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1, "liga" 1;
}
img, video, svg { max-width: 100%; height: auto; }
a { color: var(--bm-purple); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--bm-purple); outline-offset: 3px; border-radius: 4px; }
button { font: inherit; cursor: pointer; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); height: 1px; width: 1px; overflow: hidden; word-wrap: normal !important; }
.screen-reader-text:focus { clip: auto !important; height: auto; width: auto; background: var(--bm-white); padding: 12px 16px; z-index: 100000; left: 8px; top: 8px; border-radius: 6px; box-shadow: var(--bm-shadow); }
.bm-container { max-width: var(--bm-container); margin: 0 auto; padding: 0 var(--bm-gutter); }

/* Site title/tagline are for SEO only (WP header text hidden) */
.site-title, .site-description { position: absolute; clip: rect(1px,1px,1px,1px); }

/* ==========================================================================
   3. Buttons
   ========================================================================== */
.bm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 999px;
  font-size: 14px; font-weight: 600; line-height: 1; white-space: nowrap;
  border: 1px solid transparent; transition: background-color .15s, border-color .15s, color .15s;
  text-decoration: none !important;
}
.bm-btn--primary { background: var(--bm-pink); color: #fff; }
.bm-btn--primary:hover { background: var(--bm-pink-deep); color: #fff; }
.bm-btn--ghost { background: transparent; color: var(--bm-ink); border-color: var(--bm-line-strong); }
.bm-btn--ghost:hover { border-color: var(--bm-ink-3); }
.bm-btn--light { background: #fff; color: var(--bm-ink); }
.bm-btn--light:hover { background: #f1f0fa; }
.bm-btn--lg { height: 48px; padding: 0 24px; font-size: 15px; }
.bm-btn--icon { width: 40px; padding: 0; color: var(--bm-ink-2); background: transparent; border: 0; }
.bm-btn--icon:hover { background: var(--bm-surface-2); color: var(--bm-ink); }
.bm-btn svg { width: 18px; height: 18px; }

/* ==========================================================================
   4. Navigation
   ========================================================================== */
/* The header wrapper is what sticks; it slides away on scroll-down and returns on scroll-up (see bm.js).
   To keep the nav permanently visible instead, delete the .site-header.is-hidden rule. */
.site-header { position: sticky; top: 0; z-index: 50; transition: transform .28s ease; }
.site-header.is-hidden { transform: translateY(-100%); }
.bm-nav {
  position: relative;
  height: var(--bm-nav-h);
  background: rgba(255,255,255,.86);
  -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--bm-line);
}
.bm-nav__inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.bm-nav__logo { display: flex; align-items: center; }
.bm-nav__logo svg { width: 156px; height: 32px; display: block; }
.bm-nav__menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.bm-nav__menu > li { position: relative; }
.bm-nav__menu > li > a {
  display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 8px;
  font-size: 15px; font-weight: 500; color: var(--bm-ink-2);
}
.bm-nav__menu > li > a:hover, .bm-nav__menu > li.current-menu-item > a { color: var(--bm-ink); background: var(--bm-surface-2); text-decoration: none; }
.bm-nav__menu > li > a .icon { width: 14px; height: 14px; opacity: .6; }
.bm-nav__menu .sub-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px;
  list-style: none; margin: 0; padding: 8px;
  background: #fff; border: 1px solid var(--bm-line); border-radius: var(--bm-radius); box-shadow: var(--bm-shadow-l);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s;
}
.bm-nav__menu > li:hover > .sub-menu, .bm-nav__menu > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.bm-nav__menu .sub-menu a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--bm-ink-2); }
.bm-nav__menu .sub-menu a:hover { background: var(--bm-surface-2); color: var(--bm-ink); text-decoration: none; }
.bm-nav__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.bm-nav__toggle { display: none; }
.bm-progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--bm-pink); transform: scaleX(0); transform-origin: left; transition: transform .1s linear; will-change: transform; }

/* Language switcher */
.bm-lang { position: relative; }
.bm-lang__code { font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.bm-lang__menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 160px; list-style: none; margin: 0; padding: 6px; background: #fff; border: 1px solid var(--bm-line); border-radius: var(--bm-radius); box-shadow: var(--bm-shadow-l); z-index: 60; }
.bm-lang__menu a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--bm-ink-2); }
.bm-lang__menu a:hover { background: var(--bm-surface-2); color: var(--bm-ink); text-decoration: none; }
.bm-lang__menu a[aria-current="true"] { color: var(--bm-purple); font-weight: 600; }

/* Search overlay */
.bm-search { position: fixed; inset: 0; z-index: 100; background: rgba(20,19,31,.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: none; align-items: flex-start; justify-content: center; padding: 12vh 24px 0; }
.bm-search.is-open { display: flex; }
.bm-search__form { width: 100%; max-width: 640px; background: #fff; border-radius: var(--bm-radius-l); box-shadow: var(--bm-shadow-l); display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 20px; }
.bm-search__form svg { width: 20px; height: 20px; color: var(--bm-ink-3); flex: none; }
.bm-search__form input { flex: 1; border: 0; font: inherit; font-size: 18px; height: 48px; outline: none; color: var(--bm-ink); background: transparent; }
.bm-search__form input::placeholder { color: var(--bm-ink-3); }
.bm-search__hint { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.6); font-size: 13px; }

/* Mobile nav */
@media (max-width: 960px) {
  .bm-nav__inner { gap: 12px; }
  .bm-nav__toggle { display: inline-flex; }
  .bm-nav__menu { display: none; position: absolute; top: var(--bm-nav-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; background: #fff; border-bottom: 1px solid var(--bm-line); box-shadow: var(--bm-shadow-l); }
  .bm-nav.is-open .bm-nav__menu { display: flex; }
  .bm-nav__menu > li > a { height: 44px; }
  .bm-nav__menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 8px 12px; }
  .bm-nav__actions .bm-btn--ghost { display: none; }
}
@media (max-width: 560px) { .bm-nav__actions .bm-btn--primary { display: none; } }

/* ==========================================================================
   5. Article header (keeps the per-article colour)
   ========================================================================== */
.bm-hero {
  position: relative; overflow: hidden;
  background: var(--bm-article-color);
  color: #fff;
  padding: 64px 0 72px;
}
.bm-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 82% 50%, transparent 0 158px, rgba(255,255,255,.07) 159px 160px, transparent 161px 238px, rgba(255,255,255,.05) 239px 240px, transparent 241px 318px, rgba(255,255,255,.035) 319px 320px, transparent 321px),
    linear-gradient(180deg, rgba(255,255,255,.06) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,.14) 100%);
}
.bm-hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: center; }
.bm-hero__category { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 20px; }
.bm-hero__category:hover { background: rgba(255,255,255,.26); text-decoration: none; }
.bm-hero__title { margin: 0 0 18px; font-family: var(--bm-display); font-size: 50px; line-height: 1.06; font-weight: 700; letter-spacing: -.025em; color: #fff; text-wrap: balance; }
.bm-hero__lead { margin: 0 0 28px; font-size: 18px; line-height: 1.55; color: rgba(255,255,255,.82); max-width: 640px; }
.bm-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; font-size: 14px; color: rgba(255,255,255,.85); }
.bm-meta__author { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; }
.bm-meta__author img { width: 32px; height: 32px; border-radius: 50%; border: 2px solid rgba(255,255,255,.5); }
.bm-meta__item { display: flex; align-items: center; gap: 6px; }
.bm-meta__item svg { width: 15px; height: 15px; opacity: .8; }
.bm-meta__sep { opacity: .6; margin: 0 2px; }
.bm-hero__figure { margin: 0; justify-self: end; width: 320px; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.bm-hero__figure--image { padding: 22px; border-radius: 28px; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.22); box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 24px 48px -24px rgba(0,0,0,.35); }
.bm-hero__figure img { display: block; width: 100%; height: 100%; object-fit: contain; }
.bm-hero__figure .bm-vis { width: 100%; height: 100%; }
@media (max-width: 960px) {
  .bm-hero { padding: 40px 0 44px; }
  .bm-hero__inner { grid-template-columns: 1fr; gap: 28px; }
  .bm-hero__title { font-size: 32px; }
  .bm-hero__figure { display: none; }
}

/* Signature motif: the signal line */
.bm-signal { display: block; width: 100%; height: 24px; color: var(--bm-accent); overflow: visible; }
/* Draw-in effect as a transform (the only property Lighthouse accepts as composited; stroke-dashoffset
   and clip-path both repaint every frame, September 2026 audit). The path grows from the left; the
   stroke keeps its width thanks to vector-effect: non-scaling-stroke. Gated behind
   prefers-reduced-motion: no-preference; otherwise the line is simply visible. */
@media (prefers-reduced-motion: no-preference) {
  .bm-signal path { transform-box: fill-box; transform-origin: left center; transform: scaleX(0); animation: bm-signal-reveal 1.6s cubic-bezier(.4,0,.2,1) .15s forwards; }
  @keyframes bm-signal-reveal { to { transform: scaleX(1); } }
}
.bm-hero__signal { position: absolute; left: 0; right: 0; top: -40px; height: 24px; color: rgba(255,255,255,.55); }
.bm-hero__inner { padding-top: 40px; }
.bm-section__head { align-items: center; }
.bm-section__signal { flex: 1; min-width: 80px; height: 20px; opacity: .9; }
.bm-featured__signal { width: 120px; height: 20px; margin-bottom: 14px; }
.bm-content hr { border: 0; height: 24px; margin: 3em 0; background: none; position: relative; color: var(--bm-accent-line); }
.bm-content hr::before { content: ""; position: absolute; inset: 0; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 24' preserveAspectRatio='none'%3E%3Cpath d='M0 12 H140 l6 -9 l7 18 l6 -12 l5 3 H1200' fill='none' stroke='%23000' stroke-width='1.5' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center/100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 24' preserveAspectRatio='none'%3E%3Cpath d='M0 12 H140 l6 -9 l7 18 l6 -12 l5 3 H1200' fill='none' stroke='%23000' stroke-width='1.5' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center/100% 100% no-repeat; }

/* Signature visual: mention stream */
.bm-vis { display: block; width: 100%; height: auto; overflow: visible; }
.bm-vis__card { transform-box: fill-box; transform-origin: center; }
.bm-hero .bm-vis__card { animation: bm-rise .7s cubic-bezier(.2,.7,.2,1) both; }
.bm-hero .bm-vis__card--2 { animation-delay: .12s; }
.bm-hero .bm-vis__card--3 { animation-delay: .24s; }
.bm-hero .bm-vis__rings circle { animation: bm-ring 3.6s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.bm-hero .bm-vis__rings circle:nth-child(2) { animation-delay: 1.2s; }
.bm-hero .bm-vis__rings circle:nth-child(3) { animation-delay: 2.4s; }
.bm-hero .bm-vis__live { animation: bm-pulse 2.4s ease-in-out infinite; }
/* Transform only: starting from opacity 0 delayed the LCP paint of the hero visual (September 2026 audit). */
@keyframes bm-rise { from { translate: 0 18px; } to { translate: 0 0; } }
@keyframes bm-ring { 0% { scale: .96; opacity: .4; } 60% { opacity: 1; } 100% { scale: 1.03; opacity: .4; } }
@keyframes bm-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.bm-vis--compact .bm-vis__rings circle:nth-child(3) { display: none; }

/* ==========================================================================
   6. Article layout — content left, sticky tools column right
   ========================================================================== */
.bm-article-layout { display: grid; grid-template-columns: minmax(0, var(--bm-article)) var(--bm-aside); gap: 56px; justify-content: space-between; padding-top: 48px; padding-bottom: 72px; }
.bm-article-main { min-width: 0; order: 1; }
.bm-aside { order: 2; min-width: 0; }
.bm-aside__sticky { position: sticky; top: calc(var(--bm-nav-h) + 8px); max-height: calc(100vh - var(--bm-nav-h) - 16px); overflow-y: auto; scrollbar-width: thin; display: flex; flex-direction: column; gap: 20px; padding-right: 4px; transition: top .28s ease; }
body.bm-nav-hidden .bm-aside__sticky { top: 8px; max-height: calc(100vh - 16px); }
.bm-aside__label { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--bm-ink-3); }
.bm-aside__label svg { width: 14px; height: 14px; color: var(--bm-purple); }

/* Author card */
.bm-author-card { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--bm-line); border-radius: var(--bm-radius); }
.bm-author-card img { width: 44px; height: 44px; border-radius: 50%; flex: none; }
.bm-author-card__name { display: block; font-size: 15px; font-weight: 600; color: var(--bm-ink); line-height: 1.3; }
.bm-author-card__role { display: block; font-size: 13px; color: var(--bm-ink-3); margin-top: 2px; }

/* Summarize with AI */
.bm-ai__links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bm-ai__link { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border: 1px solid var(--bm-line); border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--bm-ink); background: #fff; transition: border-color .15s, background-color .15s; }
.bm-ai__link:hover { text-decoration: none; border-color: var(--bm-line-strong); background: var(--bm-surface); }
.bm-ai__logo { width: 18px; height: 18px; flex: none; color: var(--bm-ink); }
.bm-ai__copy { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 0; border: 0; background: none; font-size: 13px; color: var(--bm-ink-3); }
.bm-ai__copy:hover { color: var(--bm-purple); }
.bm-ai__copy svg { width: 14px; height: 14px; }
.bm-ai__copy.is-done { color: var(--bm-purple); }

/* Table of contents (in the aside) */
.bm-toc { padding: 0; }
.bm-toc__summary { list-style: none; cursor: default; display: flex; align-items: center; justify-content: space-between; margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--bm-ink-3); }
.bm-toc__summary::-webkit-details-marker { display: none; }
.bm-toc__summary .icon { display: none; width: 16px; height: 16px; transition: transform .15s; }
.bm-toc__list { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--bm-line); }
.bm-toc--long .bm-toc__list { max-height: min(46vh, 520px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--bm-line-strong) transparent; padding: 8px 0; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12px, #000 calc(100% - 16px), transparent); mask-image: linear-gradient(to bottom, transparent, #000 12px, #000 calc(100% - 16px), transparent); }
.bm-toc__list li { margin: 0; }
.bm-toc__list a { display: block; padding: 7px 10px 7px 14px; margin-left: -1px; border-left: 3px solid transparent; border-radius: 0 8px 8px 0; font-size: 15px; line-height: 1.4; color: var(--bm-ink-2); transition: background-color .12s, color .12s; }
.bm-toc__list a:hover { color: var(--bm-ink); background: var(--bm-surface); text-decoration: none; }
.bm-toc__list a.is-active { color: var(--bm-accent-text); background: var(--bm-accent-soft); border-left-color: var(--bm-accent); font-weight: 600; }
.bm-toc__list a.is-parent { color: var(--bm-accent-text); font-weight: 600; }
.bm-toc__item--h3 a { padding-left: 30px; font-size: 14px; color: var(--bm-ink-2); }
.bm-toc__item--h3 a::before { content: ""; position: absolute; left: 17px; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: var(--bm-line-strong); transform: translateY(-50%); }
.bm-toc__item--h3 { position: relative; }
.bm-toc__item--h3 a.is-active::before { background: var(--bm-accent); }

/* Sidebar product card */
.bm-side-cta { padding: 20px; border-radius: var(--bm-radius); background: var(--bm-surface); border: 1px solid var(--bm-line); }
.bm-side-cta__title { margin: 0 0 6px; font-size: 15px; font-weight: 600; }
.bm-side-cta__text { margin: 0 0 14px; font-size: 14px; color: var(--bm-ink-2); line-height: 1.5; }
.bm-side-cta .bm-btn { width: 100%; }
.bm-side-cta__note { margin: 10px 0 0; font-size: 12px; color: var(--bm-ink-3); text-align: center; }

/* Tablet / mobile: tools go above the article, compact */
@media (max-width: 1080px) {
  .bm-article-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .bm-aside { order: 0; }
  .bm-aside__sticky { position: static; max-height: none; overflow: visible; gap: 16px; padding-right: 0; }
  .bm-side-cta, .bm-author-card { display: none; } /* hero already shows the author */
  .bm-toc { padding: 4px 18px 8px; border: 1px solid var(--bm-line); border-radius: var(--bm-radius); background: var(--bm-surface); }
  .bm-toc__summary { cursor: pointer; padding: 10px 0; margin: 0; color: var(--bm-ink); font-size: 14px; }
  .bm-toc__summary .icon { display: block; color: var(--bm-ink-3); }
  .bm-toc[open] .bm-toc__summary .icon { transform: rotate(180deg); }
  .bm-toc__list { border: 0; margin: 0 0 8px; padding-left: 1.4em; list-style: decimal; }
  .bm-toc__list li::marker { color: var(--bm-ink-3); font-size: 13px; }
  .bm-toc__list a { padding: 5px 0 5px 4px; border: 0; margin: 0; }
  .bm-toc__item--h3 { list-style: none; margin-left: 12px; }
  .bm-toc__item--h3 a { padding-left: 4px; }
  .bm-ai__links { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 640px) { .bm-ai__links { grid-template-columns: 1fr 1fr; } }

/* ==========================================================================
   7. Article typography
   ========================================================================== */
.bm-content { font-size: 18px; line-height: 1.7; color: var(--bm-ink); }
/* Everything in the column shares one width (--bm-article); prose stays readable via the 720px column + 18px/1.7 */
.bm-content p, .bm-content li { text-wrap: pretty; }
.bm-content h2, .bm-content h3 { text-wrap: balance; }
.bm-content > :first-child { margin-top: 0; }
.bm-content p { margin: 0 0 1.35em; }
.bm-content .first-paragraph-letter { float: none; display: inline; font: inherit; color: inherit; width: auto; height: auto; }
.bm-content > p:first-of-type { font-size: 20px; line-height: 1.6; }
.bm-content h2 { font-family: var(--bm-display); font-size: 32px; line-height: 1.18; font-weight: 700; letter-spacing: -.02em; margin: 2.2em 0 .7em; scroll-margin-top: calc(var(--bm-nav-h) + 24px); }
.bm-content h3 { font-family: var(--bm-display); font-size: 23px; line-height: 1.28; font-weight: 600; letter-spacing: -.01em; margin: 1.8em 0 .6em; }
.bm-content h4 { font-size: 18px; font-weight: 600; margin: 1.6em 0 .5em; }
.bm-content h2 + h3 { margin-top: .8em; }
.bm-content a { color: var(--bm-accent-text); text-decoration: underline; text-decoration-color: var(--bm-accent-line); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.bm-content a:hover { text-decoration-color: var(--bm-accent); }
.bm-content strong { font-weight: 600; }
.bm-content ul, .bm-content ol { margin: 0 0 1.35em; padding-left: 1.4em; }
.bm-content li { margin: 0 0 .6em; padding-left: .3em; line-height: 1.6; }
.bm-content li::marker { color: var(--bm-accent); font-weight: 600; }
.bm-content ul li::marker { font-size: 1.05em; }
.bm-content li > ul, .bm-content li > ol { margin: .5em 0 0; }
.bm-content img { display: block; margin: 2em auto; max-width: 100%; height: auto; border-radius: var(--bm-radius); border: 1px solid var(--bm-line); }
.bm-content p > img:only-child { margin: 0; }
.bm-content p:has(> img:only-child) { margin: 2em 0; }
.bm-content figure { margin: 2em 0; }
.bm-content figure img { margin: 0; }
.bm-content figcaption, .bm-content .wp-caption-text { margin-top: 10px; font-size: 14px; color: var(--bm-ink-3); text-align: center; }
/* Quotes: editorial pull quote — no box (a box reads as a banner and gets skipped) */
.bm-quote { position: relative; margin: 4.4em 0 3.4em; padding: 6px 0 0 64px; }
.bm-table + .bm-quote, .bm-content img + .bm-quote, .bm-content p:has(> img:only-child) + .bm-quote { margin-top: 4.8em; }
.bm-quote::before { content: "\201C"; position: absolute; left: 0; top: -10px; font-family: var(--bm-display); font-size: 96px; line-height: 1; font-weight: 700; color: var(--bm-accent); }
.bm-quote::after { display: none; }
.bm-quote blockquote, .bm-content blockquote { margin: 0; padding: 0; border: 0; font-family: var(--bm-display); font-size: 25px; line-height: 1.36; font-weight: 500; letter-spacing: -.012em; color: var(--bm-ink); text-wrap: pretty; }
.bm-content blockquote p { margin: 0; font-size: inherit; line-height: inherit; }
.bm-content blockquote p + p { margin-top: .7em; }
.bm-content blockquote strong { font-weight: 600; }
.bm-quote__signal { display: block; width: 88px; height: 16px; margin: 16px 0 0; color: var(--bm-accent); opacity: .9; }
.bm-quote__cite { margin-top: 10px; font-family: var(--bm-font); font-size: 14px; font-weight: 500; color: var(--bm-ink-2); }
.bm-quote__cite::before { content: "\2014\00a0"; color: var(--bm-accent); }
.bm-content blockquote cite { display: block; margin-top: 10px; font-family: var(--bm-font); font-size: 14px; font-weight: 400; font-style: normal; color: var(--bm-ink-3); }
/* fallback for a bare blockquote (outside bm_reading_structures) */
.bm-content > blockquote { padding: 4px 0 4px 24px; border-left: 3px solid var(--bm-accent); margin: 2em 0; color: var(--bm-ink); }
.bm-content code { font-family: var(--bm-mono); font-size: .88em; background: var(--bm-surface-2); padding: 2px 6px; border-radius: 6px; }
.bm-content pre { font-family: var(--bm-mono); font-size: 14px; line-height: 1.6; background: var(--bm-dark); color: #e8e6f5; padding: 20px 24px; border-radius: var(--bm-radius); overflow: auto; margin: 2em 0; }
.bm-content pre code { background: none; padding: 0; font-size: inherit; }
.bm-content iframe { max-width: 100%; border-radius: var(--bm-radius); }
@media (max-width: 640px) {
  .bm-content { font-size: 17px; }
  .bm-content > p:first-of-type { font-size: 18px; }
  .bm-content h2 { font-size: 26px; }
  .bm-content h3 { font-size: 20px; }
  .bm-content blockquote { font-size: 21px; }
  .bm-quote { padding-left: 44px; margin: 3.4em 0 2.8em; }
  .bm-quote::before { font-size: 72px; top: -6px; }
}

/* Takeaways box (h2 Summary / Key takeaways + list) */
.bm-takeaways { margin: 0 0 2em; padding: 22px 26px 22px 22px; border-radius: var(--bm-radius-l); background: var(--bm-accent-soft); border: 1px solid var(--bm-accent-line); }
.bm-takeaways ul, .bm-takeaways ol { margin: 0; padding-left: 1.3em; font-size: 17px; }
.bm-takeaways li { margin-bottom: .7em; }
.bm-takeaways li:last-child { margin-bottom: 0; }
.bm-takeaways li::marker { color: var(--bm-accent); }

/* Callout: a paragraph the author made entirely bold */
.bm-content p.bm-callout { margin: 1.8em 0; padding: 16px 20px 16px 22px; border-left: 3px solid var(--bm-accent); border-radius: 0 var(--bm-radius) var(--bm-radius) 0; background: var(--bm-surface); font-size: 17px; line-height: 1.55; }
.bm-content p.bm-callout strong { font-weight: 600; }

/* FAQ */
.bm-faq { margin: 0 0 2em; border-top: 1px solid var(--bm-line); }
.bm-faq__item { padding: 20px 0 22px; border-bottom: 1px solid var(--bm-line); }
.bm-faq__item h3 { margin: 0 0 .5em; font-size: 19px; line-height: 1.35; }
.bm-faq__answer > :last-child { margin-bottom: 0; }
.bm-faq__answer p { font-size: 17px; }

/* Tables — the priority element */
.bm-table { margin: 2em 0; padding: 0; border: 1px solid var(--bm-line-strong); border-radius: var(--bm-radius); overflow: hidden; background: #fff; box-shadow: 0 1px 2px rgba(22,21,42,.04), 0 12px 32px -16px color-mix(in srgb, var(--bm-article-color) 35%, transparent); position: relative; }
.bm-table__scroll { overflow: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--bm-line-strong) transparent; position: relative; }
.bm-table__scroll:focus-visible { outline-offset: -2px; }
.bm-content table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 0; font-size: 15px; line-height: 1.45; font-variant-numeric: tabular-nums; }
.bm-content caption:not(.screen-reader-text) { caption-side: bottom; padding: 10px 20px; font-size: 13px; color: var(--bm-ink-3); text-align: left; }
.bm-content th, .bm-content td { padding: 14px 16px; text-align: left; vertical-align: top; border-top: 1px solid var(--bm-line); background: var(--row-bg, #fff); }
.bm-content thead th { border-top: 0; border-bottom: 1px solid var(--bm-line-strong); background: var(--bm-accent-soft); font-size: 13px; font-weight: 600; color: var(--bm-accent-text); white-space: nowrap; }
.bm-content tr > :first-child { padding-left: 20px; }
.bm-content tr > :last-child { padding-right: 20px; }
.bm-content tbody th[scope="row"] { font-weight: 600; color: var(--bm-ink); text-align: left; }
.bm-content tbody tr:nth-child(even) { --row-bg: var(--bm-surface); }
.bm-content tbody tr:hover { --row-bg: color-mix(in srgb, var(--bm-article-color) 6%, #fff); }
.bm-content td strong { font-weight: 600; }

/* Toolbar */
.bm-table__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px 8px 20px; border-bottom: 1px solid var(--bm-line); background: #fff; }
.bm-table__meta { font-size: 12px; color: var(--bm-ink-3); white-space: nowrap; }
.bm-table__tools { display: flex; align-items: center; gap: 6px; }
.bm-table__tool { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 1px solid var(--bm-line); border-radius: 8px; background: #fff; font-size: 12px; font-weight: 600; color: var(--bm-ink-2); cursor: pointer; }
.bm-table__tool:hover { border-color: var(--bm-line-strong); color: var(--bm-ink); }
.bm-table__tool svg { width: 13px; height: 13px; }
.bm-table__tool.is-done { color: var(--bm-purple); border-color: var(--bm-purple); }
.bm-table__filter { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 1px solid var(--bm-line); border-radius: 8px; background: #fff; }
.bm-table__filter:focus-within { border-color: var(--bm-accent); }
.bm-table__filter svg { width: 13px; height: 13px; color: var(--bm-ink-3); }
.bm-table__filter input { border: 0; outline: 0; background: transparent; font: inherit; font-size: 12px; width: 120px; color: var(--bm-ink); }
.bm-table__filter input::placeholder { color: var(--bm-ink-3); }

/* Sorting */
.bm-table--sortable th[data-bm-sort] { cursor: pointer; user-select: none; }
.bm-table--sortable th[data-bm-sort] .bm-th { display: inline-flex; align-items: center; gap: 4px; }
.bm-table--sortable th[data-bm-sort] .bm-th::after { content: ""; width: 12px; height: 12px; flex: none; opacity: 0; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M6 13l6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M6 13l6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat; transition: opacity .15s, transform .15s; }
.bm-table--sortable th[data-bm-sort]:hover .bm-th::after { opacity: .45; }
.bm-table--sortable th[aria-sort="ascending"] .bm-th::after { opacity: 1; transform: rotate(180deg); }
.bm-table--sortable th[aria-sort="descending"] .bm-th::after { opacity: 1; }
.bm-table--sortable th[aria-sort] { color: var(--bm-accent-deep); }

/* Numeric columns */
.bm-content .bm-num { text-align: right; font-variant-numeric: tabular-nums; }
.bm-content th.bm-num .bm-th { flex-direction: row-reverse; }

/* Filtering */
.bm-table tr.is-filtered { display: none; }
.bm-table__empty { padding: 20px; font-size: 14px; color: var(--bm-ink-3); text-align: center; display: none; }
.bm-table.is-empty .bm-table__empty { display: block; }

/* Wide (5+ cols): denser */
.bm-table--wide table { font-size: 14px; line-height: 1.4; }
.bm-table--wide th, .bm-table--wide td { padding: 11px 12px; }
.bm-table--wide tr > :first-child { padding-left: 16px; }
.bm-table--wide tr > :last-child { padding-right: 16px; }
.bm-table--wide th, .bm-table--wide td { min-width: 120px; }
.bm-table--wide tbody th[scope="row"] { min-width: 150px; }

/* XL (8+ cols): first column sticks while scrolling sideways; edge shadows hint at more content */
.bm-table--xl table { font-size: 13.5px; }
.bm-table--xl th, .bm-table--xl td { padding: 10px 12px; white-space: nowrap; min-width: 0; }
.bm-table--xl tr > :first-child { position: sticky; left: 0; z-index: 2; }
.bm-table--xl tr > :first-child::after { content: ""; position: absolute; top: 0; bottom: 0; right: -1px; width: 1px; background: var(--bm-line-strong); }
.bm-table--xl.is-scrolled-x tr > :first-child { box-shadow: 8px 0 12px -8px rgba(22,21,42,.22); }
.bm-table--xl::before, .bm-table--xl::after { content: ""; position: absolute; top: 0; bottom: 0; width: 28px; pointer-events: none; z-index: 3; opacity: 0; transition: opacity .2s; }
.bm-table--xl::after { right: 0; background: linear-gradient(to left, rgba(255,255,255,.95), rgba(255,255,255,0)); }
.bm-table--xl.has-more-right::after { opacity: 1; }

/* Tall (12+ rows): capped height, header stays visible */
.bm-table--tall .bm-table__scroll { max-height: 70vh; }
.bm-table--tall thead th { position: sticky; top: 0; z-index: 2; }
.bm-table--tall thead th:first-child { z-index: 4; }
.bm-content tbody th[scope="row"] { background: var(--row-bg, #fff); }

/* Expanded (full-screen dialog) */
.bm-table-dialog { width: min(96vw, 1600px); max-width: none; height: 92vh; max-height: none; padding: 0; border: 0; border-radius: var(--bm-radius-l); background: #fff; box-shadow: var(--bm-shadow-l); overflow: hidden; }
.bm-table-dialog::backdrop { background: rgba(20,19,31,.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.bm-table-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px 14px 24px; border-bottom: 1px solid var(--bm-line); }
.bm-table-dialog__title { margin: 0; font-family: var(--bm-display); font-size: 17px; font-weight: 700; }
.bm-table-dialog__body { height: calc(92vh - 61px); overflow: hidden; padding: 0 24px 24px; }
.bm-table-dialog .bm-table { margin: 20px 0 0; height: calc(100% - 20px); display: flex; flex-direction: column; }
.bm-table-dialog .bm-table__scroll { flex: 1; max-height: none !important; overflow: auto !important; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
html.bm-dialog-open, html.bm-dialog-open body { overflow: hidden !important; }
.bm-table-dialog .bm-table__bar .bm-table__expand { display: none; }
.bm-table-placeholder { display: none; }

@media (max-width: 640px) {
  .bm-content th, .bm-content td { padding: 12px 12px; font-size: 14px; }
  .bm-table--tall .bm-table__scroll { max-height: 60vh; }
  .bm-table__bar { flex-wrap: wrap; padding: 8px 12px; }
  .bm-table__filter input { width: 100px; }
  /* Stacked "card" rows: each row becomes a block, each cell shows its column label */
  .bm-table--stack thead { position: absolute; clip: rect(0 0 0 0); height: 1px; width: 1px; overflow: hidden; }
  .bm-table--stack table, .bm-table--stack tbody, .bm-table--stack tr { display: block; width: 100%; }
  .bm-table--stack tr { padding: 6px 0 10px; border-top: 1px solid var(--bm-line); background: var(--row-bg, #fff); }
  .bm-table--stack tbody tr:first-child { border-top: 0; }
  .bm-table--stack td, .bm-table--stack th[scope="row"] { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 5px 16px; border: 0; white-space: normal; min-width: 0; text-align: left; position: static; box-shadow: none; }
  .bm-table--stack th[scope="row"] { display: block; padding: 8px 16px 4px; font-size: 15px; }
  .bm-table--stack th[scope="row"]::after { display: none; }
  .bm-table--stack td { justify-content: flex-start; }
  .bm-table--stack td::before { content: attr(data-label); flex: 0 0 42%; font-size: 12px; font-weight: 600; color: var(--bm-ink-3); text-align: left; }
  .bm-table--stack td.bm-num { text-align: left; }
  .bm-table--stack .bm-table__scroll { max-height: none; overflow: visible; }
  .bm-table--stack.bm-table--xl::after { display: none; }
  .bm-table-dialog { width: 100vw; height: 100vh; border-radius: 0; }
  .bm-table-dialog__body { height: calc(100vh - 61px); padding: 0 12px 12px; }
}

@media print {
  .bm-nav, .bm-aside, .bm-inline-cta, .bm-footer, .bm-cookie, .bm-table__tools, .bm-progress { display: none !important; }
  .bm-article-layout { display: block; }
  .bm-table { box-shadow: none; break-inside: avoid; }
  .bm-table__scroll { max-height: none !important; overflow: visible !important; }
  .bm-table--xl th, .bm-table--xl td { white-space: normal; position: static; }
  .bm-content a { color: inherit; text-decoration: none; }
}

/* Inline product CTA (inserted mid-article) */
.bm-inline-cta { margin: 2.6em 0; padding: 28px 28px 28px 32px; border-radius: var(--bm-radius-l); background: linear-gradient(135deg, var(--bm-accent) 0%, var(--bm-accent-deep) 100%); color: #fff; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 24px; align-items: center; position: relative; overflow: hidden; }
.bm-inline-cta::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.16), transparent 70%); pointer-events: none; }
.bm-inline-cta__eyebrow { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.7); }
.bm-inline-cta__title { margin: 0 0 8px; font-family: var(--bm-display); font-size: 23px; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; color: #fff; }
.bm-inline-cta__text { margin: 0; font-size: 15px; line-height: 1.5; color: rgba(255,255,255,.82); }
.bm-inline-cta__actions { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.bm-content .bm-btn--primary, .bm-inline-cta .bm-btn--primary { color: #fff; box-shadow: 0 8px 20px -8px rgba(0,0,0,.45); } /* beats .bm-content a */
.bm-inline-cta .bm-btn--primary:hover { background: var(--bm-pink-bright); }
.bm-inline-cta__note { font-size: 12px; color: rgba(255,255,255,.65); text-align: center; }
.bm-inline-cta__secondary { font-size: 14px; font-weight: 500; color: rgba(255,255,255,.85); text-align: center; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.35); }
.bm-inline-cta__secondary:hover { color: #fff; }
.bm-inline-cta--end { margin-top: 3em; padding: 36px 36px 36px 40px; }
.bm-inline-cta--end .bm-inline-cta__title { font-size: 26px; }

/* Sticky CTA bar (phones only) */
.bm-mobile-cta { display: none; }
@media (max-width: 640px) {
  .bm-mobile-cta { position: fixed; left: 12px; right: 12px; bottom: calc(88px + env(safe-area-inset-bottom)); z-index: 60; display: flex; align-items: center; gap: 8px; width: auto; max-width: calc(100vw - 24px); padding: 9px 8px 9px 14px; border-radius: 14px; background: var(--bm-dark); color: #fff; box-shadow: var(--bm-shadow-l); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(16px); transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s; }
  .bm-mobile-cta[hidden] { display: flex; }
  .bm-mobile-cta.is-visible { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition-delay: 0s; }
  .bm-mobile-cta__text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
  .bm-mobile-cta__text strong { font-family: var(--bm-display); font-size: 15px; line-height: 1.2; letter-spacing: -.01em; }
  .bm-mobile-cta__text span { font-size: 12px; color: #a9a7c0; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bm-mobile-cta .bm-btn { height: 38px; padding: 0 12px; flex: none; }
  .bm-mobile-cta__close { width: 32px; height: 38px; padding: 0; border: 0; background: transparent; color: #a9a7c0; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; flex: none; }
  .bm-mobile-cta__close svg { width: 15px; height: 15px; }
  body.bm-mobile-cta-open .bm-cookie { bottom: calc(156px + env(safe-area-inset-bottom)); }
}
@media (max-width: 390px) {
  .bm-mobile-cta { gap: 6px; padding-left: 12px; }
  .bm-mobile-cta__text strong { font-size: 14px; }
  .bm-mobile-cta__text span { display: none; }
  .bm-mobile-cta .bm-btn { height: 36px; padding: 0 10px; font-size: 13px; }
  .bm-mobile-cta__close { width: 28px; height: 36px; }
}
@media (max-width: 640px) { .bm-inline-cta { grid-template-columns: 1fr; padding: 24px; } }

/* End-of-article */
.bm-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 40px 0 0; padding-top: 28px; border-top: 1px solid var(--bm-line); }
.bm-tags__label { font-size: 13px; color: var(--bm-ink-3); align-self: center; margin-right: 4px; }
.bm-tags a { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--bm-surface); border: 1px solid var(--bm-line); font-size: 13px; font-weight: 500; color: var(--bm-ink-2); }
.bm-tags a:hover { border-color: var(--bm-purple); color: var(--bm-purple); text-decoration: none; }

.bm-author { display: flex; gap: 20px; margin: 40px 0 0; padding: 24px; border-radius: var(--bm-radius-l); background: var(--bm-surface); border: 1px solid var(--bm-line); }
.bm-author img { width: 56px; height: 56px; border-radius: 50%; flex: none; }
.bm-author__label { margin: 0 0 2px; font-size: 13px; color: var(--bm-ink-3); }
.bm-author__name { margin: 0 0 6px; font-size: 17px; font-weight: 600; }
.bm-author__name a { color: var(--bm-ink); }
.bm-author__bio { margin: 0; font-size: 15px; line-height: 1.55; color: var(--bm-ink-2); }

/* ==========================================================================
   8. Post cards (home, archives, recommended)
   ========================================================================== */
.bm-section { padding: 56px 0 72px; }
.bm-section--surface { background: var(--bm-surface); border-top: 1px solid var(--bm-line); }
.bm-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.bm-section__title { margin: 0; font-family: var(--bm-display); font-size: 24px; font-weight: 700; letter-spacing: -.015em; white-space: nowrap; }
.bm-section__link { font-size: 14px; font-weight: 500; }
.bm-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
@media (max-width: 960px) { .bm-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 600px) { .bm-grid { grid-template-columns: 1fr; } }

.bm-card { display: flex; flex-direction: column; border-radius: var(--bm-radius-l); border: 1px solid var(--bm-line); background: #fff; overflow: hidden; color: var(--bm-ink); transition: border-color .15s, box-shadow .15s; }
.bm-card:hover { text-decoration: none; border-color: var(--bm-line-strong); box-shadow: var(--bm-shadow); color: var(--bm-ink); }
.bm-card__media { aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center; padding: 0; background: var(--bm-article-color); overflow: hidden; position: relative; }
.bm-card__media img { max-height: 76%; max-width: 68%; width: auto; height: auto; object-fit: contain; display: block; }
.bm-card__media .bm-vis { width: 62%; height: auto; transform: translateY(6%); }
.bm-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.bm-card__category { font-size: 13px; font-weight: 600; color: var(--bm-accent-text); }
.bm-card__title { margin: 0; font-family: var(--bm-display); font-size: 18px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; }
.bm-card__meta { margin-top: auto; padding-top: 6px; font-size: 13px; color: var(--bm-ink-3); display: flex; gap: 14px; }

/* Featured (first post on the home page) */
.bm-featured-wrap { background: var(--bm-article-color); color: #fff; }
.bm-featured { display: grid; grid-template-columns: minmax(0,1fr) 400px; gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 64px; }
.bm-featured__label { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.76); margin: 0 0 14px; }
.bm-featured__signal { color: rgba(255,255,255,.55); }
.bm-featured__title { margin: 0 0 14px; font-family: var(--bm-display); font-size: 42px; line-height: 1.08; font-weight: 700; letter-spacing: -.025em; }
.bm-featured__title a { color: #fff; }
.bm-featured__title a:hover { color: #fff; }
.bm-featured__excerpt { margin: 0 0 22px; font-size: 17px; line-height: 1.6; color: rgba(255,255,255,.82); max-width: 600px; }
.bm-featured .bm-btn--ghost { color: #fff; border-color: rgba(255,255,255,.45); }
.bm-featured .bm-btn--ghost:hover { color: #fff; border-color: rgba(255,255,255,.72); background: rgba(255,255,255,.12); }
.bm-featured__media { aspect-ratio: 1; border-radius: 24px; display: flex; align-items: center; justify-content: center; padding: 32px; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.20); overflow: hidden; }
.bm-featured__media img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; }
.bm-featured__media .bm-vis { width: 100%; height: 100%; }
@media (max-width: 960px) { .bm-featured { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 40px; } .bm-featured__media { max-width: 360px; } .bm-featured__title { font-size: 30px; } }

/* Archive header (category / author / search) */
.bm-archive-head { padding: 48px 0 40px; border-bottom: 1px solid var(--bm-line); }
.bm-archive-head__label { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--bm-ink-3); }
.bm-archive-head__title { margin: 0 0 8px; font-family: var(--bm-display); font-size: 40px; line-height: 1.08; font-weight: 700; letter-spacing: -.025em; }
.bm-archive-head__desc { margin: 0; font-size: 16px; color: var(--bm-ink-2); max-width: 640px; }
.bm-archive-head--author { display: flex; gap: 20px; align-items: center; }
.bm-archive-head--author img { width: 72px; height: 72px; border-radius: 50%; }

/* Pagination */
.bm-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 48px 0 0; }
.bm-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--bm-ink-2); border: 1px solid transparent; }
.bm-pagination .page-numbers:hover { background: var(--bm-surface-2); text-decoration: none; }
.bm-pagination .page-numbers.current { background: var(--bm-purple); color: #fff; }
.bm-pagination .prev, .bm-pagination .next { border-color: var(--bm-line); }
.bm-pagination img { display: none; }

/* Breadcrumb in the hero */
.bm-crumbs { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.7); }
.bm-crumbs a { color: rgba(255,255,255,.85); }
.bm-crumbs a:hover { color: #fff; }
.bm-crumbs span { opacity: .5; }

/* Static pages */
.bm-page__head { padding-top: 56px; padding-bottom: 8px; }
.bm-page__inner { max-width: calc(var(--bm-article) + 2 * var(--bm-gutter)); }
.bm-page__title { margin: 0; font-family: var(--bm-display); font-size: 44px; line-height: 1.08; font-weight: 700; letter-spacing: -.025em; }
.bm-page__body { padding-top: 24px; padding-bottom: 72px; }
@media (max-width: 640px) { .bm-page__head { padding-top: 36px; } .bm-page__title { font-size: 30px; } }

/* HTML sitemap */
.bm-sitemap__intro { margin: 0 0 18px; font-size: 17px; color: var(--bm-ink-2); }
.bm-sitemap__toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 36px; }
.bm-sitemap__toc a { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 6px 12px; border: 1px solid var(--bm-line); border-radius: 999px; background: var(--bm-surface, #f7f7fa); color: var(--bm-ink-2); font-size: 13px; font-weight: 600; line-height: 1; text-decoration: none; transition: border-color .2s ease, color .2s ease, background-color .2s ease; }
.bm-sitemap__toc a:hover { border-color: var(--bm-purple); background: var(--bm-purple-soft); color: var(--bm-purple); }
.bm-sitemap__toc a:focus-visible { outline: 2px solid var(--bm-purple); outline-offset: 2px; }
.bm-sitemap__toc span { color: var(--bm-ink-3); font-variant-numeric: tabular-nums; }
.bm-sitemap h2 { display: flex; align-items: baseline; gap: 10px; font-size: 22px; margin-top: 1.8em; }
.bm-sitemap h2 a { color: var(--bm-ink); text-decoration: none; }
.bm-sitemap h2 a:hover { color: var(--bm-purple); }
.bm-sitemap__count { font-size: 13px; font-weight: 500; color: var(--bm-ink-3); }
.bm-sitemap__list { list-style: none; padding: 0; margin: 0 0 1em; }
.bm-sitemap__list li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--bm-line); font-size: 16px; }
.bm-sitemap__list li::marker { content: none; }
.bm-sitemap__list a { text-decoration: none; color: var(--bm-ink); }
.bm-sitemap__list a:hover { color: var(--bm-purple); }
.bm-sitemap__list time { flex: none; font-size: 13px; color: var(--bm-ink-3); font-variant-numeric: tabular-nums; }

/* 404 */
.bm-404 { padding-top: 72px; padding-bottom: 64px; text-align: center; }
.bm-404__inner { max-width: 560px; }
.bm-404__code { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--bm-ink-3); letter-spacing: .04em; }
.bm-404__title { margin: 0 0 12px; font-family: var(--bm-display); font-size: 40px; line-height: 1.08; font-weight: 700; letter-spacing: -.025em; }
.bm-404__text { margin: 0 0 24px; font-size: 16px; color: var(--bm-ink-2); }

/* Search form (inline) */
.bm-searchform { display: flex; align-items: center; gap: 8px; max-width: 520px; padding: 6px 6px 6px 16px; border: 1px solid var(--bm-line-strong); border-radius: 999px; background: #fff; }
.bm-searchform:focus-within { border-color: var(--bm-purple); box-shadow: 0 0 0 3px var(--bm-purple-soft); }
.bm-searchform svg { width: 18px; height: 18px; color: var(--bm-ink-3); flex: none; }
.bm-searchform input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 15px; height: 36px; color: var(--bm-ink); }
.bm-404 .bm-searchform { margin: 0 auto; }
.bm-archive-head__search { margin-top: 20px; }

/* Empty state */
.bm-empty { padding: 48px 24px; text-align: center; border: 1px dashed var(--bm-line-strong); border-radius: var(--bm-radius-l); }
.bm-empty__title { margin: 0 0 6px; font-family: var(--bm-display); font-size: 22px; font-weight: 700; }
.bm-empty__text { margin: 0 0 18px; color: var(--bm-ink-2); }

/* Native comments (fallback when Disqus is off) */
.bm-comments { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--bm-line); }
.bm-comments__title { margin: 0 0 20px; font-size: 22px; font-weight: 600; }
.bm-comments__list, .bm-comments__list .children { list-style: none; margin: 0; padding: 0; }
.bm-comments__list .children { margin-left: 48px; }
.bm-comments .comment-body { padding: 16px 0; border-top: 1px solid var(--bm-line); font-size: 15px; }
.bm-comments .comment-author { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.bm-comments .comment-author .avatar { border-radius: 50%; }
.bm-comments .comment-metadata { font-size: 13px; color: var(--bm-ink-3); margin: 4px 0 8px; }
.bm-comments .comment-metadata a { color: inherit; }
.bm-comments .comment-content p { margin: 0 0 .8em; }
.bm-comments .reply a { font-size: 13px; font-weight: 600; }
.bm-comments__closed { color: var(--bm-ink-3); font-size: 14px; }
.bm-comments .comment-respond { margin-top: 32px; }
.bm-comments .comment-reply-title { margin: 0 0 12px; font-size: 18px; font-weight: 600; }
.bm-comments .comment-form label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--bm-ink-2); }
.bm-comments .comment-form input[type="text"], .bm-comments .comment-form input[type="email"], .bm-comments .comment-form input[type="url"], .bm-comments .comment-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--bm-line-strong); border-radius: 10px; font: inherit; font-size: 15px; background: #fff; }
.bm-comments .comment-form p { margin: 0 0 14px; }
.bm-comments .comment-form-cookies-consent { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--bm-ink-2); }
.bm-comments .comment-form-cookies-consent label { margin: 0; font-weight: 400; }

/* ==========================================================================
   9. Footer
   ========================================================================== */
.bm-footer { background: var(--bm-dark); color: #a9a7c0; font-size: 14px; }
.bm-footer__inner { display: grid; grid-template-columns: 2.4fr repeat(4, 1fr); column-gap: 24px; row-gap: 28px; padding: 56px 0 36px; }
.bm-footer__logo svg { width: 150px; height: 30px; display: block; }
.bm-footer__about { margin: 18px 0 0; line-height: 1.6; max-width: 440px; }
.bm-footer__conversion { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; }
.bm-footer .bm-social { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.bm-footer .bm-social li { margin: 0; }
.bm-social a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: #c9c7dd; transition: background-color .15s, color .15s, border-color .15s; }
.bm-social a:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.2); color: #fff; text-decoration: none; }
.bm-social__icon { width: 18px; height: 18px; }
.bm-footer__actions { display: flex; align-items: center; gap: 16px; }
.bm-footer .bm-btn--primary { color: #fff; background: var(--bm-pink); }
.bm-footer .bm-btn--primary:hover { background: var(--bm-pink-deep); color: #fff; }
.bm-footer__login { color: #c9c7dd; font-weight: 500; }
.bm-g2 { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; padding: 8px 12px 8px 10px; border-radius: 10px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04); color: #c9c7dd; font-size: 13px; }
.bm-footer__conversion .bm-g2 { margin: 0 0 0 auto; }
.bm-g2:hover { color: #fff; border-color: rgba(255,255,255,.22); text-decoration: none; }
.bm-g2__stars { display: inline-flex; gap: 1px; color: #ff492c; }
.bm-g2__stars svg { width: 14px; height: 14px; }
.bm-g2__score { font-weight: 600; color: #fff; }
.bm-g2--image { padding: 0; border: 0; background: none; }
.bm-g2--image img { display: block; width: 80px; height: auto; }
.bm-footer__login:hover { color: #fff; }
.bm-footer h6, .bm-footer__title { margin: 0 0 14px; font-size: 13px; font-weight: 600; color: #fff; }
.bm-footer ul { list-style: none; margin: 0; padding: 0; }
.bm-footer li { margin: 0 0 10px; }
.bm-footer a { color: #a9a7c0; }
.bm-footer__about a { text-decoration: underline; }
.bm-footer a:hover { color: #fff; text-decoration: none; }
.bm-footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 13px; color: #8f8da8; }
.bm-footer__bottom a { color: #8f8da8; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.25); }
.bm-footer__bottom a:hover { color: #fff; }
@media (max-width: 1080px) { .bm-footer__inner { grid-template-columns: 1fr 1fr 1fr; } .bm-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 640px) {
  .bm-footer__inner { grid-template-columns: 1fr 1fr; gap: 28px; padding: 48px 0 32px; }
  .bm-footer__conversion .bm-g2 { margin-left: 0; }
}

/* Toast (clipboard confirmations) */
.bm-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 120; transform: translate(-50%, 12px); padding: 12px 18px; border-radius: 999px; background: var(--bm-dark); color: #fff; font-size: 14px; font-weight: 500; box-shadow: var(--bm-shadow-l); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); text-align: center; }
.bm-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   10. Misc / WordPress bits
   ========================================================================== */
/* Hide the legacy cookie banner that can still be injected site-wide. */
.cookie-consent { display: none !important; }

/* Cookie notice: a small pill in the bottom-left corner, out of the reading column */
.bm-cookie { position: fixed; left: 16px; bottom: 16px; z-index: 90; max-width: calc(100vw - 32px); padding: 6px 6px 6px 14px; border-radius: 999px; background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid var(--bm-line); box-shadow: 0 8px 24px -12px rgba(22,21,42,.25); font-size: 12.5px; line-height: 1.3; color: var(--bm-ink-2); display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.bm-cookie p { margin: 0; }
.bm-cookie a { text-decoration: underline; text-underline-offset: 2px; color: var(--bm-ink-2); }
.bm-cookie .bm-btn { height: 28px; padding: 0 12px; font-size: 12px; flex: none; }
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.icon { display: inline-block; width: 1em; height: 1em; fill: currentColor; vertical-align: -.125em; }

/* ==========================================================================
   11. Mobile pass — touch targets ≥44px, no iOS zoom on inputs, safe areas
   ========================================================================== */
@media (max-width: 1080px) {
  /* Tools above the article: table of contents first, AI chips as one scrollable row, share moves to the end of the article */
  .bm-aside__sticky > .bm-toc, .bm-aside__sticky > nav { order: 1; }
  .bm-aside__sticky > .bm-ai { order: 2; }
  .bm-ai__links { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
  .bm-ai__links::-webkit-scrollbar { display: none; }
  .bm-ai__link { flex: 0 0 auto; }
  .bm-ai__copy { display: none; }
}
@media (max-width: 960px) {
  /* Keep the signature visual on phones as a light decoration behind the title */
  .bm-hero { padding: 36px 0 40px; }
  .bm-hero__signal { display: none; }            /* the signal line is a desktop gesture; on phones it collides with the visual */
  .bm-hero__inner { padding-top: 0; }
  .bm-hero__figure { display: block; position: absolute; right: -72px; top: -64px; width: 200px; opacity: .3; pointer-events: none; }
  .bm-hero__inner > div:first-child { position: relative; z-index: 1; }
  .bm-hero__title { font-size: clamp(26px, 7.6vw, 32px); }
  .bm-hero__lead { font-size: 16px; }
}
@media (max-width: 640px) {
  html { -webkit-tap-highlight-color: transparent; }
  .bm-hero__figure { display: block; right: -88px; top: -52px; width: 190px; opacity: .14; filter: saturate(.7) contrast(.85); }
  .bm-hero__title { position: relative; text-shadow: 0 2px 14px rgba(0,0,0,.55); }
  .bm-section__signal { display: none; }
  .bm-section__title { white-space: normal; }
  /* Touch targets */
  .bm-btn { height: 44px; }
  .bm-btn--icon { width: 44px; }
  .bm-nav__logo { min-height: 44px; }
  .bm-crumbs a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
  .bm-footer__logo { display: inline-flex; align-items: center; min-height: 44px; }
  .bm-footer__logo svg { margin-bottom: 0; }
  .bm-footer__about { margin-top: 12px; }
  .bm-meta__author, .bm-meta__item { min-height: 44px; }
  .bm-toc__list a { min-height: 44px; display: flex; align-items: center; }
  .bm-toc__summary { min-height: 44px; }
  .bm-ai__link { height: 44px; }
  .bm-tags a { height: 40px; padding: 0 14px; }
  .bm-table__tool, .bm-table__filter { height: 40px; }
  .bm-table__filter input { font-size: 16px; width: 140px; }
  .bm-card { min-height: 44px; }
  .bm-section__link, .bm-author__name a, .bm-author-card__name { display: inline-flex; align-items: center; min-height: 44px; }
  .bm-footer li { margin: 0; }
  .bm-footer .bm-social { margin-bottom: 0; }
  .bm-social a { width: 44px; height: 44px; }
  .bm-footer__actions { margin-bottom: 4px; }
  .bm-footer li a { display: inline-flex; align-items: center; min-height: 44px; }
  .bm-footer__bottom a { display: inline-flex; align-items: center; min-height: 44px; }
  .bm-pagination .page-numbers { min-width: 44px; height: 44px; }
  .bm-cookie .bm-btn { height: 32px; }
  /* No iOS zoom on focus */
  .bm-searchform input, .bm-search__form input, .bm-comments .comment-form input, .bm-comments .comment-form textarea { font-size: 16px; }
  .bm-searchform input { height: 44px; }
  .bm-searchform { padding: 4px 4px 4px 14px; }
  /* Safe areas and dynamic viewport */
  .bm-cookie { left: 12px; right: 12px; max-width: none; bottom: calc(88px + env(safe-area-inset-bottom)); padding: 8px 8px 8px 14px; border-radius: 14px; white-space: normal; }
  .bm-cookie p { flex: 1; min-width: 0; font-size: 12px; line-height: 1.35; }
  .bm-search { padding-top: max(24px, env(safe-area-inset-top)); }
  .bm-table-dialog { height: 100dvh; }
  .bm-table-dialog__body { height: calc(100dvh - 61px); }
  .bm-aside__sticky { max-height: none; }
  .bm-article-layout { padding-top: 24px; }
  .bm-section { padding: 40px 0 48px; }
  .bm-inline-cta__title { font-size: 20px; }
  .bm-featured__title { font-size: 26px; }
  .bm-archive-head__title { font-size: 28px; }
  .bm-footer__inner { gap: 24px; }
}
