@charset "UTF-8";
/* ══════════════════════════════════════════════════════════════════════════
   MEDBUS — BLOG (v3)

   Loads AFTER the parent site's medbus-home.css, which supplies every token,
   the header, the footer, the buttons, the chips and the contact dock. This
   file adds only what exists nowhere else on the site:

     01  Blog hero
     02  Lead article
     03  Post grid
     04  Filter rail + empty state
     05  Pagination
     06  Article head + byline
     07  Article body (.mbb-prose) — everything the editor can emit
     08  Tags, share, author, adjacent posts
     09  Sidebar
     10  Closing band
     11  Comments
     12  Responsive

   Namespaced `mbb-` so it can never collide with the shared `mb-` components
   or the page-suite's `mbp-`. Every colour, radius, shadow and easing is a
   var() from the parent stylesheet — there are no new palette values here.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── 01 · BLOG HERO ────────────────────────────────────────────────────── */
.mbb-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(2.25rem, 5vw, 4rem) clamp(2.5rem, 6vw, 4.5rem);
  background:
    radial-gradient(120% 80% at 78% 0%, #eaf3ff 0%, rgba(234, 243, 255, 0) 62%),
    linear-gradient(180deg, #f2f8ff 0%, #fbfdff 100%);
}
.mbb-hero--compact { padding-block: clamp(1.75rem, 4vw, 2.75rem) clamp(2rem, 4vw, 3rem); }

.mbb-hero__waves {
  position: absolute;
  inset: auto 0 -1px 0;
  z-index: -1;
  pointer-events: none;
  line-height: 0;
}
.mbb-hero__waves svg { width: 100%; height: clamp(90px, 14vw, 190px); }

.mbb-hero__title {
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.1rem);
  line-height: 1.12;
  margin-bottom: .875rem;
}

/* Search field on the index and the search results. */
.mbb-search {
  display: flex;
  align-items: center;
  gap: .5rem;
  position: relative;
  width: min(100%, 40rem);
  margin: clamp(1.5rem, 3vw, 2rem) auto 0;
}
.mbb-search__icon {
  position: absolute;
  left: 1rem;
  /* Pinned to the input's row by an explicit top, not left to its static
     position: once the form wraps on a phone, the static position is centred
     on the whole two-row block and the icon lands between input and button. */
  top: 26px;
  translate: 0 -50%;
  display: grid;
  place-items: center;
  color: var(--mb-muted);
  pointer-events: none;
}
.mbb-search__input {
  flex: 1;
  min-width: 0;
  min-height: 52px;
  padding: .75rem 1rem .75rem 3rem;
  border-radius: var(--mb-r-pill);
  border: 1px solid var(--mb-line);
  background: #fff;
  box-shadow: var(--mb-shadow-sm);
  font-family: var(--mb-font-body);
  font-size: .9375rem;
  color: var(--mb-ink);
  transition: border-color .2s var(--mb-ease), box-shadow .2s var(--mb-ease);
}
.mbb-search__input::placeholder { color: var(--mb-muted); }
.mbb-search__input:focus {
  outline: none;
  border-color: var(--mb-blue-400);
  box-shadow: 0 0 0 4px rgba(46, 139, 240, .14);
}
.mbb-search__input::-webkit-search-cancel-button { display: none; }
.mbb-search .mb-btn { flex: none; min-height: 52px; border-radius: var(--mb-r-pill); }

.mbb-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1rem, 4vw, 3rem);
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}
.mbb-stats li { text-align: center; }
.mbb-stats b {
  display: block;
  font-family: var(--mb-font-head);
  font-size: clamp(1.3rem, 1.1rem + .7vw, 1.75rem);
  font-weight: 700;
  color: var(--mb-ink);
  letter-spacing: -.02em;
}
.mbb-stats span { font-size: .8125rem; color: var(--mb-muted); }

/* ── 02 · LEAD ARTICLE ─────────────────────────────────────────────────── */
.mbb-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
  padding: clamp(1rem, 2vw, 1.5rem);
  border-radius: var(--mb-r-xl);
  background: var(--mb-surface);
  border: 1px solid var(--mb-line);
  box-shadow: var(--mb-shadow-md);
}
.mbb-lead__media {
  display: block;
  border-radius: var(--mb-r-lg);
  overflow: hidden;
  background: var(--mb-canvas);
}
.mbb-lead__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform .5s var(--mb-ease);
}
.mbb-lead:hover .mbb-lead__media img { transform: scale(1.03); }
.mbb-lead__body { padding-right: clamp(0rem, 1.5vw, 1rem); }
.mbb-lead__flags { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .875rem; }
.mbb-lead__title {
  font-size: clamp(1.35rem, 1.1rem + 1.1vw, 2rem);
  line-height: 1.2;
  margin-bottom: .75rem;
}
.mbb-lead__title a { transition: color .2s var(--mb-ease); }
.mbb-lead__title a:hover { color: var(--mb-blue); }
.mbb-lead .mb-btn { margin-top: 1.25rem; }

/* ── 03 · POST GRID ────────────────────────────────────────────────────── */
.mbb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

.mbb-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--mb-r-lg);
  background: var(--mb-surface);
  border: 1px solid var(--mb-line);
  box-shadow: var(--mb-shadow-sm);
  overflow: hidden;
  transition: transform .24s var(--mb-ease), box-shadow .24s var(--mb-ease),
              border-color .24s var(--mb-ease);
}
.mbb-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--mb-shadow-md);
  border-color: rgba(9, 106, 201, .28);
}
.mbb-card__media { display: block; background: var(--mb-canvas); overflow: hidden; }
.mbb-card__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform .5s var(--mb-ease);
}
.mbb-card:hover .mbb-card__media img { transform: scale(1.05); }

.mbb-card__body {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: clamp(1.1rem, 2vw, 1.4rem);
  flex: 1;
}
.mbb-card__title { font-size: 1.0625rem; line-height: 1.35; }
.mbb-card__title a { transition: color .2s var(--mb-ease); }
.mbb-card__title a:hover { color: var(--mb-blue); }
.mbb-card__excerpt { font-size: .875rem; line-height: 1.62; color: var(--mb-muted); }
.mbb-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  margin-top: auto;
  padding-top: .875rem;
  border-top: 1px solid var(--mb-line);
  font-size: .75rem;
  color: var(--mb-muted);
}

/* Category / tag pill. */
.mbb-tag {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: .3rem .7rem;
  border-radius: var(--mb-r-pill);
  background: var(--mb-a-blue);
  color: var(--mb-a-blue-fg);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .01em;
  transition: background-color .2s var(--mb-ease), color .2s var(--mb-ease);
}
a.mbb-tag:hover { background: var(--mb-blue); color: #fff; }
.mbb-tag--solid { background: var(--mb-blue); color: #fff; }
a.mbb-tag--solid:hover { background: var(--mb-blue-700); }

/* ── 04 · FILTER RAIL + EMPTY STATE ────────────────────────────────────── */
.mbb-rail {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  margin-top: clamp(1.25rem, 2.5vw, 1.75rem);
}
/* .mbp-pill lives in the page suite, which the blog does not load, so the
   pill is defined here in full rather than half-inherited. */
.mbb-pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .55rem 1.05rem;
  border-radius: var(--mb-r-pill);
  border: 1px solid var(--mb-line);
  background: #fff;
  font-family: var(--mb-font-body);
  font-size: .8125rem;
  font-weight: 600;
  color: var(--mb-ink-soft);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s var(--mb-ease), color .2s var(--mb-ease),
              border-color .2s var(--mb-ease), transform .2s var(--mb-ease);
}
.mbb-pill:hover { border-color: var(--mb-blue-400); color: var(--mb-blue); transform: translateY(-1px); }
/* aria-pressed is the single source of truth for the selection, so the visible
   state and the announced one cannot disagree. */
.mbb-pill[aria-pressed="true"] {
  background: var(--mb-blue);
  border-color: var(--mb-blue);
  color: #fff;
  box-shadow: var(--mb-shadow-sm);
}
.mbb-pill__n {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding-inline: .3rem;
  border-radius: var(--mb-r-pill);
  background: var(--mb-blue-100);
  color: var(--mb-blue);
  font-size: .75rem;
  font-weight: 700;
}
.mbb-pill[aria-pressed="true"] .mbb-pill__n { background: rgba(255, 255, 255, .22); color: #fff; }

.mbb-empty {
  display: grid;
  justify-items: center;
  gap: .75rem;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  padding: clamp(2.5rem, 6vw, 4rem);
  border-radius: var(--mb-r-xl);
  background: var(--mb-surface);
  border: 1px dashed var(--mb-line);
  text-align: center;
  color: var(--mb-muted);
}
.mbb-empty p { font-size: .9375rem; }
.mbp-hide { display: none !important; }

/* ── 05 · PAGINATION ───────────────────────────────────────────────────── */
.mbb-pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
}
.mbb-pager__link {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  min-height: 42px;
  padding-inline: .9rem;
  border-radius: var(--mb-r-btn);
  border: 1px solid var(--mb-line);
  background: #fff;
  font-family: var(--mb-font-head);
  font-size: .875rem;
  font-weight: 600;
  color: var(--mb-ink-soft);
  transition: background-color .2s var(--mb-ease), color .2s var(--mb-ease),
              border-color .2s var(--mb-ease);
}
a.mbb-pager__link:hover { border-color: var(--mb-blue-400); color: var(--mb-blue); }
.mbb-pager__link.current {
  background: var(--mb-blue);
  border-color: var(--mb-blue);
  color: #fff;
}
.mbb-pager__link.dots { border-color: transparent; background: transparent; }

/* ── 06 · ARTICLE HEAD ─────────────────────────────────────────────────── */
.mbb-posthead {
  padding-block: clamp(1.75rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.25rem);
  background: linear-gradient(180deg, #f2f8ff 0%, #fbfdff 100%);
}
.mbb-posthead .mb-shell { max-width: var(--mbb-post-w); }
/* The head sits over the article column, so its left edge lines up with the
   body text below rather than floating in a narrower centred box. */
.mbb-posthead .mb-shell > * { max-width: 48rem; }
.mbb-posthead .mb-crumbs { margin-bottom: 1.25rem; }
.mbb-posthead__title {
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.85rem);
  line-height: 1.15;
  margin: .875rem 0;
}
/* margin-inline 0: the site-wide intro-paragraph rule centres .mb-lede, which
   indented this one relative to the title above it. */
.mbb-posthead .mbb-posthead__lede { max-width: 46rem; margin-inline: 0; }

.mbb-byline {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: 1.5rem;
}
/* A background on the avatar, not just a border-radius: Gravatar is an
   external request, and a broken <img alt=""> collapses to nothing and takes
   the row alignment with it. The tinted disc keeps the shape either way. */
.mbb-byline img,
.mbb-author img {
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  background: var(--mb-blue-50);
}
.mbb-byline img { width: 44px; height: 44px; }
.mbb-byline b { display: block; font-size: .875rem; font-weight: 700; color: var(--mb-ink); }
/* Direct child only. Unqualified, this also hits the inline separator span
   inside, which then breaks onto a line of its own. */
.mbb-byline > p > span { display: block; font-size: .75rem; color: var(--mb-muted); }

/* ── 07 · ARTICLE BODY ─────────────────────────────────────────────────── */
/* One centred container for the head and the body: a 48rem reading column,
   the gap and the 20rem sidebar — so on wide screens the post sits in the
   middle of the page instead of stretching to the edges. */
.mbb-posthead, .mbb-layout { --mbb-post-w: calc(71rem + 2 * var(--mb-gutter, 1.5rem)); }
.mbb-layout {
  max-width: var(--mbb-post-w);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 20rem);
  gap: clamp(1.75rem, 3.5vw, 3rem);
  align-items: start;
  padding-top: clamp(1.75rem, 3vw, 2.5rem);
}
.mbb-article { min-width: 0; }

/* A static page carries no sidebar, so its body is one centred column on the
   same 60rem measure .mbb-posthead already uses, not the two-column grid. */
.mbb-page { max-width: 60rem; padding-top: clamp(1.75rem, 3vw, 2.5rem); }
.mbb-page .mbb-article { max-width: none; }

.mbb-article__hero {
  margin: 0 0 clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--mb-r-xl);
  overflow: hidden;
  box-shadow: var(--mb-shadow-md);
}
.mbb-article__hero img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

/* Everything the editor can emit. The element selectors are scoped to
   .mbb-prose so they cannot reach the chrome around the article. */
.mbb-prose { font-size: 1.0625rem; line-height: 1.78; color: var(--mb-ink-soft); }
.mbb-prose > * + * { margin-top: 1.25rem; }

.mbb-prose h2 {
  font-size: clamp(1.35rem, 1.15rem + .8vw, 1.7rem);
  line-height: 1.25;
  margin-top: 2.5rem;
  /* Scroll-margin so an in-page anchor clears the sticky header. */
  scroll-margin-top: 90px;
}
.mbb-prose h3 { font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem); margin-top: 2rem; scroll-margin-top: 90px; }
.mbb-prose h4 { font-size: 1.0625rem; margin-top: 1.75rem; scroll-margin-top: 90px; }
.mbb-prose h2 + *, .mbb-prose h3 + *, .mbb-prose h4 + * { margin-top: .75rem; }

.mbb-prose a {
  color: var(--mb-blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.mbb-prose a:hover { color: var(--mb-blue-700); }
.mbb-prose strong { color: var(--mb-ink); font-weight: 700; }

.mbb-prose ul, .mbb-prose ol { padding-left: 1.35rem; }
.mbb-prose ul { list-style: disc; }
.mbb-prose ol { list-style: decimal; }
.mbb-prose li { margin-top: .5rem; }
.mbb-prose li::marker { color: var(--mb-blue); }

.mbb-prose img,
.mbb-prose figure img,
.mbb-prose video {
  width: 100%;
  height: auto;
  border-radius: var(--mb-r-lg);
  box-shadow: var(--mb-shadow-sm);
}
.mbb-prose figure { margin: 2rem 0; }
.mbb-prose figcaption {
  margin-top: .625rem;
  font-size: .8125rem;
  color: var(--mb-muted);
  text-align: center;
}

.mbb-prose blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--mb-blue);
  border-radius: 0 var(--mb-r-md) var(--mb-r-md) 0;
  background: var(--mb-blue-50);
  font-size: 1.0625rem;
  color: var(--mb-ink);
}
.mbb-prose blockquote p + p { margin-top: .75rem; }
.mbb-prose blockquote cite { display: block; margin-top: .75rem; font-size: .8125rem; font-style: normal; color: var(--mb-muted); }

.mbb-prose code {
  padding: .15em .4em;
  border-radius: 6px;
  background: var(--mb-blue-50);
  border: 1px solid var(--mb-line);
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, monospace;
  font-size: .875em;
  color: var(--mb-blue-700);
}
.mbb-prose pre {
  /* Its own scroll container, so a long line never makes the page scroll. */
  overflow-x: auto;
  padding: 1.1rem 1.25rem;
  border-radius: var(--mb-r-md);
  background: var(--mb-ink);
  color: #e6eef8;
  font-size: .875rem;
  line-height: 1.65;
}
.mbb-prose pre code { padding: 0; border: 0; background: none; color: inherit; font-size: inherit; }

/* Tables scroll inside a wrapper the script adds, for the same reason. */
.mbb-tablewrap {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: var(--mb-r-md);
  border: 1px solid var(--mb-line);
  -webkit-overflow-scrolling: touch;
}
.mbb-prose table { width: 100%; min-width: 32rem; border-collapse: collapse; font-size: .9375rem; }
.mbb-prose th, .mbb-prose td { padding: .75rem 1rem; text-align: left; }
.mbb-prose thead th { background: var(--mb-blue-50); font-family: var(--mb-font-head); font-size: .875rem; color: var(--mb-ink); }
.mbb-prose tbody tr + tr th, .mbb-prose tbody tr + tr td { border-top: 1px solid var(--mb-line); }

.mbb-prose hr { margin: 2.5rem 0; border: 0; border-top: 1px solid var(--mb-line); }

/* ── 08 · TAGS, SHARE, AUTHOR, ADJACENT ────────────────────────────────── */
.mbb-tags,
.mbb-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-top: clamp(1.75rem, 3vw, 2.25rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--mb-line);
}
.mbb-tags > span:first-child,
.mbb-share > span:first-child {
  margin-right: .35rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mb-muted);
}
.mbb-share__btn {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border: 1px solid var(--mb-line);
  border-radius: 50%;
  background: #fff;
  color: var(--mb-ink-soft);
  cursor: pointer;
  transition: background-color .2s var(--mb-ease), color .2s var(--mb-ease),
              border-color .2s var(--mb-ease), transform .2s var(--mb-ease);
}
.mbb-share__btn:hover {
  background: var(--mb-blue);
  border-color: var(--mb-blue);
  color: #fff;
  transform: translateY(-2px);
}
.mbb-share__done { font-size: .75rem; font-weight: 600; color: var(--mb-a-green-fg); }

.mbb-author {
  display: flex;
  gap: 1rem;
  margin-top: clamp(1.75rem, 3vw, 2.25rem);
  padding: clamp(1.25rem, 2.4vw, 1.65rem);
  border-radius: var(--mb-r-lg);
  background: var(--mb-blue-50);
  border: 1px solid var(--mb-line);
}
.mbb-author img { width: 60px; height: 60px; }
.mbb-author p { margin-top: .35rem; font-size: .875rem; line-height: 1.65; color: var(--mb-muted); }

.mbb-adjacent {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1rem;
  margin-top: clamp(1.75rem, 3vw, 2.25rem);
}
.mbb-adjacent__link {
  display: grid;
  gap: .35rem;
  padding: 1rem 1.15rem;
  border-radius: var(--mb-r-md);
  border: 1px solid var(--mb-line);
  background: var(--mb-surface);
  box-shadow: var(--mb-shadow-xs);
  transition: border-color .2s var(--mb-ease), transform .2s var(--mb-ease);
}
.mbb-adjacent__link:hover { border-color: var(--mb-blue-400); transform: translateY(-2px); }
.mbb-adjacent__link span { font-size: .75rem; font-weight: 600; color: var(--mb-blue); }
.mbb-adjacent__link b { font-family: var(--mb-font-head); font-size: .9375rem; color: var(--mb-ink); line-height: 1.4; }
.mbb-adjacent__link--next { text-align: right; }

/* ── 09 · SIDEBAR ──────────────────────────────────────────────────────── */
.mbb-side { display: grid; gap: 1rem; position: sticky; top: 90px; }

.mbb-side__card {
  padding: clamp(1.25rem, 2.4vw, 1.6rem);
  border-radius: var(--mb-r-lg);
  border: 1px solid var(--mb-line);
  background: var(--mb-surface);
  box-shadow: var(--mb-shadow-sm);
}
.mbb-side__card--tint { background: linear-gradient(160deg, var(--mb-blue-50) 0%, #eaf3ff 100%); }
.mbb-side__card p { margin-top: .5rem; font-size: .8125rem; line-height: 1.6; color: var(--mb-muted); }
.mbb-side__card .mb-btn { margin-top: 1rem; }
.mbb-side__note { text-align: center; font-size: .6875rem !important; margin-top: .75rem !important; }

.mbb-side__cats { display: grid; gap: .4rem; margin-top: .875rem; }
.mbb-side__cats a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .6rem .8rem;
  border-radius: var(--mb-r-md);
  border: 1px solid var(--mb-line);
  font-size: .8125rem;
  font-weight: 600;
  color: var(--mb-ink-soft);
  transition: border-color .2s var(--mb-ease), color .2s var(--mb-ease), transform .2s var(--mb-ease);
}
.mbb-side__cats a:hover { border-color: var(--mb-blue-400); color: var(--mb-blue); transform: translateX(3px); }
.mbb-side__cats a > span {
  display: inline-grid;
  place-items: center;
  min-width: 22px; height: 22px;
  border-radius: var(--mb-r-pill);
  background: var(--mb-blue-50);
  color: var(--mb-blue);
  font-size: .75rem;
  font-weight: 700;
}

.mbb-side__recent { display: grid; gap: .75rem; margin-top: .875rem; }
.mbb-side__recent > a { display: flex; gap: .7rem; align-items: center; }
.mbb-side__recent img {
  width: 72px; height: 45px;
  flex: none;
  border-radius: 8px;
  object-fit: cover;
  background: var(--mb-canvas);
}
.mbb-side__recent b {
  display: block;
  font-family: var(--mb-font-head);
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--mb-ink);
  transition: color .2s var(--mb-ease);
}
.mbb-side__recent > a:hover b { color: var(--mb-blue); }
.mbb-side__recent span span { display: block; margin-top: .2rem; font-size: .75rem; color: var(--mb-muted); }

/* ── 10 · CLOSING BAND ─────────────────────────────────────────────────── */
.mbb-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(1.75rem, 4vw, 3rem);
  border-radius: var(--mb-r-xl);
  background: linear-gradient(135deg, var(--mb-blue) 0%, var(--mb-blue-700) 100%);
  color: #fff;
}
.mbb-band__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .3fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
}
.mbb-band h2 { color: #fff; font-size: clamp(1.35rem, 1.1rem + 1.3vw, 2rem); margin-bottom: .6rem; }
.mbb-band p { color: rgba(255, 255, 255, .85); font-size: .9375rem; line-height: 1.68; max-width: 44rem; }
.mbb-band .mb-eyebrow { color: rgba(255, 255, 255, .72); }
.mbb-band__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.mbb-band__meta { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; margin-top: 1.25rem; }
.mbb-band__meta li { display: flex; align-items: center; gap: .45rem; font-size: .8125rem; color: rgba(255, 255, 255, .9); }
.mbb-band__meta svg { flex: none; }
.mbb-band__wash {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .22;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .55) 1px, transparent 0);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(120% 90% at 70% 40%, #000 0%, transparent 72%);
          mask-image: radial-gradient(120% 90% at 70% 40%, #000 0%, transparent 72%);
}
.mbb-band__figure { align-self: end; }
.mbb-band__figure img {
  /* A definite height, not max-height: the image is lazy-loaded, so a
     max-height would leave it 0px tall until it lands and the band would jump
     taller the moment it did. */
  height: clamp(240px, 24vw, 330px);
  width: auto;
  max-width: 100%;
  display: block;
  margin-inline: auto;
  -webkit-mask-image: linear-gradient(to bottom, #000 90%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 90%, transparent 100%);
}

/* Ghost button on the blue band. .mb-btn--ghost fills solid white, which
   would be white text on a white fill here. */
.mb-btn--wire {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .5);
  box-shadow: none;
}
.mb-btn--wire:hover { background: rgba(255, 255, 255, .14); border-color: #fff; color: #fff; }

/* ── 11 · COMMENTS ─────────────────────────────────────────────────────── */
.mbb-comments { margin-top: clamp(2rem, 4vw, 3rem); }
.mbb-comments ol { list-style: none; padding: 0; }
.mbb-comments .comment-body {
  padding: 1.15rem 1.35rem;
  margin-top: 1rem;
  border-radius: var(--mb-r-md);
  border: 1px solid var(--mb-line);
  background: var(--mb-surface);
}
.mbb-comments .children { padding-left: clamp(1rem, 3vw, 2rem); }
.mbb-comments .comment-author img { border-radius: 50%; vertical-align: middle; margin-right: .5rem; }
.mbb-comments .comment-meta { font-size: .75rem; color: var(--mb-muted); }
.mbb-comments input[type="text"],
.mbb-comments input[type="email"],
.mbb-comments input[type="url"],
.mbb-comments textarea {
  width: 100%;
  min-height: 46px;
  padding: .65rem .85rem;
  margin-top: .35rem;
  border-radius: var(--mb-r-btn);
  border: 1px solid var(--mb-line);
  background: var(--mb-canvas);
  font-family: var(--mb-font-body);
  font-size: .875rem;
  color: var(--mb-ink);
}
.mbb-comments textarea { min-height: 120px; resize: vertical; }
.mbb-comments input:focus, .mbb-comments textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--mb-blue-400);
  box-shadow: 0 0 0 4px rgba(46, 139, 240, .13);
}
.mbb-comments .submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding-inline: 1.35rem;
  border: 0;
  border-radius: var(--mb-r-btn);
  background: var(--mb-blue);
  color: #fff;
  font-family: var(--mb-font-head);
  font-size: .9375rem;
  font-weight: 600;
  cursor: pointer;
}
.mbb-comments .submit:hover { background: var(--mb-blue-600); }

/* ── 12 · RESPONSIVE ───────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .mbb-layout { grid-template-columns: minmax(0, 1fr); }
  .mbb-article { max-width: none; }
  .mbb-side {
    position: static;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  }
}

@media (max-width: 900px) {
  .mbb-lead { grid-template-columns: minmax(0, 1fr); }
  .mbb-lead__body { padding: 0 .35rem .35rem; }
  .mbb-band__grid { grid-template-columns: minmax(0, 1fr); }
  .mbb-band__figure { display: none; }
}

@media (max-width: 620px) {
  .mbb-search { flex-wrap: wrap; }
  .mbb-search__input { flex: 1 1 100%; }
  .mbb-search .mb-btn { flex: 1 1 100%; }
  .mbb-adjacent__link--next { text-align: left; }
  .mbb-stats { gap: 1rem 1.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .mbb-card:hover,
  .mbb-adjacent__link:hover,
  .mbb-share__btn:hover { transform: none; }
  .mbb-card__media img,
  .mbb-lead__media img { transition: none; }
  .mbb-card:hover .mbb-card__media img,
  .mbb-lead:hover .mbb-lead__media img { transform: none; }
}

/* ── 12 · ARTICLE COMPONENTS ───────────────────────────────────────────────
   Used inside post content: a key-takeaways summary at the top, a demo
   call-to-action mid-article and FAQ accordions at the end. Plain HTML
   classes, so they survive the WordPress importer and the block editor's
   "Custom HTML" block alike. */
.mbb-prose .mbb-takeaways {
  margin: 0 0 2rem;
  padding: 1.25rem 1.4rem 1.3rem;
  border-radius: var(--mb-r-md, 14px);
  background: var(--mb-blue-50, #f0f6fd);
  border: 1px solid #d6e7fa;
  border-left: 4px solid var(--mb-blue);
}
.mbb-prose .mbb-takeaways > p:first-child {
  margin: 0 0 .5rem;
  font-family: var(--mb-font-head);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mb-blue);
}
.mbb-prose .mbb-takeaways ul { margin: 0; }
.mbb-prose .mbb-takeaways li { margin-top: .4rem; font-size: 1rem; }

.mbb-prose .mbb-cta {
  margin: 2.5rem 0;
  padding: 1.5rem 1.6rem;
  border-radius: var(--mb-r-md, 14px);
  background: linear-gradient(135deg, var(--mb-blue) 0%, #0b4f96 100%);
  color: #fff;
}
.mbb-prose .mbb-cta p { color: rgba(255, 255, 255, .88); margin: 0; }
.mbb-prose .mbb-cta p:first-child {
  margin-bottom: .4rem;
  font-family: var(--mb-font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}
.mbb-prose .mbb-cta p + p { margin-top: .6rem; }
.mbb-prose .mbb-cta a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: .9rem;
  padding: .65rem 1.15rem;
  border-radius: 10px;
  background: #fff;
  color: var(--mb-blue);
  font-weight: 700;
  text-decoration: none;
}
.mbb-prose .mbb-cta a:hover { background: var(--mb-blue-50, #f0f6fd); color: var(--mb-blue-700, #0b4f96); }

.mbb-prose .mbb-faq { margin-top: 1rem; display: grid; gap: .75rem; }
.mbb-prose .mbb-faq details {
  border-radius: 12px;
  border: 1px solid var(--mb-line);
  background: #fff;
}
.mbb-prose .mbb-faq details[open] { border-color: #cfe3fa; box-shadow: 0 6px 18px rgba(9, 106, 201, .08); }
.mbb-prose .mbb-faq summary {
  padding: .9rem 1.1rem;
  font-family: var(--mb-font-head);
  font-weight: 600;
  color: var(--mb-ink);
  cursor: pointer;
}
.mbb-prose .mbb-faq summary::marker { color: var(--mb-blue); }
.mbb-prose .mbb-faq details > p { margin: 0; padding: 0 1.1rem 1rem; }

/* ── 13 · READING AIDS ─────────────────────────────────────────────────────
   Progress bar, "On this page" contents and the Explore Medbus row. */

/* A 3px bar pinned under the sticky header, filled as the article scrolls. */
.mbb-progress {
  position: fixed;
  z-index: 60;
  top: 0; left: 0; right: 0;
  height: 3px;
  pointer-events: none;
}
.mbb-progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--mb-blue) 0%, var(--mb-blue-400, #2e8bf0) 100%);
  transform: scaleX(var(--mbb-read, 0));
  transform-origin: 0 50%;
}

/* The rail stays in view but never runs taller than the screen. */
/* Only the contents list scrolls, and only on a short screen — the demo card
   below it is always fully visible. (Scrolling the whole rail hid the demo
   button inside a scroll box readers could not see.) */
.mbb-toc ol { max-height: calc(100vh - 400px); min-height: 8rem; overflow-y: auto; scrollbar-width: thin; }

.mbb-toc__title {
  margin-bottom: .75rem;
  font-family: var(--mb-font-head);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mb-blue);
}
.mbb-toc ol { display: grid; gap: .125rem; list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.mbb-toc li { counter-increment: toc; }
.mbb-toc a {
  display: grid;
  grid-template-columns: 1.6rem minmax(0, 1fr);
  align-items: baseline;
  padding: .35rem .5rem .35rem .25rem;
  border-left: 2px solid transparent;
  border-radius: 0 8px 8px 0;
  font-size: .8125rem;
  line-height: 1.4;
  color: var(--mb-ink-soft);
  text-decoration: none;
  transition: color .2s var(--mb-ease), background-color .2s var(--mb-ease), border-color .2s var(--mb-ease);
}
.mbb-toc a::before {
  content: counter(toc, decimal-leading-zero);
  padding-left: .5rem;
  font-size: .75rem;
  font-weight: 600;
  color: var(--mb-muted);
}
.mbb-toc a:hover { color: var(--mb-blue); background: var(--mb-blue-50); }
.mbb-toc a[aria-current="true"] {
  border-left-color: var(--mb-blue);
  background: var(--mb-blue-50);
  color: var(--mb-blue);
  font-weight: 600;
}
.mbb-toc a[aria-current="true"]::before { color: var(--mb-blue); }

.mbb-explore {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--mb-line);
}
.mbb-explore > span { margin-right: .25rem; font-size: .8125rem; font-weight: 700; color: var(--mb-ink); }

/* Single column below 1024px: the rail drops under the article, so the
   contents list would arrive after the reader has finished — hide it there
   and keep only the demo card. */
@media (max-width: 1024px) {
  .mbb-toc { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .mbb-toc a { transition: none; }
}

/* The editorial-team avatar is the Medbus mark, not a photo — show the whole
   mark inside the circle instead of cropping it like a face. */
.mbb-byline img[src*="MED_LOGO"],
.mbb-author img[src*="MED_LOGO"] {
  object-fit: contain;
  padding: 5px;
  background: #fff;
  border: 1px solid var(--mb-line);
}
