/* ==========================================================================
   Belas Mensagens 2026 — Componentes (consomem tokens.css)
   ========================================================================== */

/* ====================== Reset & base ====================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--c-text);
  background: var(--c-paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: calc(56px + var(--sp-4));
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--c-rose-700); text-decoration: none; }
a:hover { color: var(--c-rose-600); }

h1, h2, h3 { font-family: var(--font-display); line-height: var(--lh-tight); color: var(--c-text); }

.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ====================== Acessibilidade: skip-link + focus ====================== */
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus {
  left: var(--sp-2); top: var(--sp-2); z-index: var(--z-toast);
  background: var(--c-surface); padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-sm); box-shadow: var(--sh-2);
}
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* ====================== Botões / Chips / Inputs ====================== */
.btn {
  font-family: var(--font-ui); font-weight: 600; font-size: var(--fs-sm);
  min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: 0 var(--sp-4);
  border-radius: var(--r-pill); cursor: pointer;
  border: 1px solid transparent; text-decoration: none;
  transition: background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur-fast) var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--c-rose-500); color: var(--c-on-rose); }
.btn--primary:hover { background: var(--c-rose-600); color: var(--c-on-rose); }
.btn--cta { background: var(--c-coral-500); color: #fff; }
.btn--cta:hover { background: var(--c-coral-600); color: #fff; }
.btn--ghost { background: var(--c-surface-2); color: var(--c-text); border-color: var(--c-border); }
.btn--ghost:hover { background: var(--c-surface); color: var(--c-text); box-shadow: var(--sh-1); }
.btn--whatsapp { background: var(--c-whatsapp); color: #fff; }
.btn--whatsapp:hover { background: #1ebe5a; color: #fff; }
.btn--block { width: 100%; }
.btn:active,
.bm-action:active,
.bm-header__menu-btn:active,
.bm-header__search-toggle:active,
.bm-header__favorites:active {
  transform: scale(.97);
}

.chip {
  font-family: var(--font-ui); font-size: var(--fs-sm); font-weight: 500;
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4); border-radius: var(--r-pill);
  background: var(--c-surface-2); border: 1px solid var(--c-border);
  min-height: 40px; color: var(--c-text);
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.chip:hover { background: var(--c-surface); border-color: var(--tema-accent); color: var(--c-text); }

.input {
  font-family: var(--font-ui); font-size: var(--fs-base);
  min-height: 48px; padding: 0 var(--sp-4); width: 100%;
  border: 1px solid var(--c-border-strong); border-radius: var(--r-md);
  background: var(--c-surface); color: var(--c-text);
}
.input::placeholder { color: var(--c-muted); }
.input:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 1px; }

/* ====================== Header (sticky) ====================== */
.bm-header {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  position: sticky; top: 0; z-index: var(--z-header);
  box-shadow: var(--sh-1);
  height: var(--header-h);
  max-height: var(--header-h);
}
.bm-header__inner {
  max-width: var(--w-content); margin: 0 auto;
  height: var(--header-h);
  padding: 0 var(--sp-3);
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px 44px;
  gap: var(--sp-2); align-items: center;
  position: relative;
}
.bm-header__logo {
  grid-column: 2;
  justify-self: center;
  max-width: 100%;
  min-width: 0;
}
.bm-header__logo img {
  width: auto;
  height: clamp(26px, 5vw, 28px);
  max-height: 28px;
  object-fit: contain;
}
.bm-header__menu-btn {
  grid-column: 1; width: 44px; height: 44px;
  border: none; background: var(--c-surface-2);
  border-radius: var(--r-md); cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: var(--c-text);
}
.bm-header__menu-btn:hover { background: var(--c-border); }
.bm-header__menu-icon,
.bm-header__menu-icon::before,
.bm-header__menu-icon::after {
  display: block; width: 20px; height: 2px; background: var(--c-text);
  border-radius: 2px; position: relative;
}
.bm-header__menu-icon::before,
.bm-header__menu-icon::after { content: ""; position: absolute; left: 0; }
.bm-header__menu-icon::before { top: -6px; }
.bm-header__menu-icon::after { top: 6px; }

.bm-header__search-toggle {
  grid-column: 3;
  width: 44px;
  height: 44px;
  border: 1px solid var(--c-border);
  background: var(--c-surface-2);
  border-radius: var(--r-md);
  color: var(--c-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bm-header__search-toggle:hover { background: var(--c-surface); border-color: var(--c-rose-300); }

.bm-header__search {
  position: absolute;
  top: calc(100% + var(--sp-2));
  left: var(--sp-3);
  right: var(--sp-3);
  z-index: var(--z-dropdown);
  display: flex;
  background: var(--c-surface-2); border-radius: var(--r-pill);
  overflow: hidden; border: 1px solid var(--c-border);
  box-shadow: var(--sh-2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  visibility: hidden;
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), visibility var(--dur-fast) var(--ease);
}
.bm-header__search.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}
.bm-header__search input {
  flex: 1; border: none; background: transparent;
  padding: 0 var(--sp-4); font-size: var(--fs-base); min-width: 0;
  min-height: 44px;
  font-family: var(--font-ui); color: var(--c-text);
}
.bm-header__search button {
  border: none; background: var(--c-rose-500); color: #fff;
  padding: 0 var(--sp-4); cursor: pointer; min-width: 44px; min-height: 44px;
  display: flex; align-items: center; justify-content: center;
}
.bm-header__search button:hover { background: var(--c-rose-600); }

.bm-header__favorites {
  grid-column: 4;
  justify-self: end;
  position: relative;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
  background: var(--c-surface-2);
  color: var(--c-text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0 var(--sp-3);
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur-fast) var(--ease);
}
.bm-header__favorites:hover { background: var(--c-surface); border-color: var(--c-rose-300); }
.bm-header__favorites svg { width: 18px; height: 18px; }
.bm-header__favorites > span:not(.bm-favorites-count) { display: none; }
.bm-favorites-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--r-pill);
  background: var(--c-rose-500);
  color: var(--c-on-rose);
  font-size: 11px;
  line-height: 18px;
  font-weight: 700;
}

@media (min-width: 768px) {
  .bm-header__inner {
    grid-template-columns: 44px auto minmax(220px, 1fr) auto;
    padding: 0 var(--sp-4);
    gap: var(--sp-3);
  }
  .bm-header__logo { grid-column: 2; justify-self: start; }
  .bm-header__logo img { width: auto; height: 28px; max-height: 28px; }
  .bm-header__search-toggle { display: none; }
  .bm-header__search {
    grid-column: 3;
    position: static;
    width: min(340px, 100%);
    justify-self: end;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    visibility: visible;
  }
  .bm-header__search input,
  .bm-header__search button {
    min-height: 40px;
  }
  .bm-header__favorites { grid-column: 4; min-width: 0; }
  .bm-header__favorites > span:not(.bm-favorites-count) { display: inline; font-size: var(--fs-sm); font-weight: 700; }
}

/* ====================== Nav drawer ====================== */
.bm-nav[hidden] { display: none; }
.bm-nav { position: fixed; inset: 0; z-index: var(--z-drawer); }
.bm-nav__backdrop { position: absolute; inset: 0; background: rgba(42, 34, 48, .45); }
.bm-nav__panel {
  position: absolute; top: 0; left: 0; bottom: 0;
  width: min(320px, 85vw); background: var(--c-surface);
  overflow-y: auto; padding: var(--sp-5);
  box-shadow: var(--sh-3);
}
.bm-nav__close {
  border: none; background: var(--c-surface-2); cursor: pointer; float: right;
  width: 44px; height: 44px; line-height: 1; color: var(--c-text);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
}
.bm-nav__close svg { width: 20px; height: 20px; }
.bm-nav__section { margin-top: var(--sp-5); clear: both; }
.bm-nav__heading {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-ui); font-weight: 700; margin-bottom: var(--sp-2);
}
.bm-nav__see-all { font-size: var(--fs-sm); color: var(--c-muted); font-weight: 500; }
.bm-nav__list { list-style: none; padding: 0; margin: 0; }
.bm-nav__list a {
  display: flex; align-items: center; padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--c-border); min-height: 44px; color: var(--c-text-soft);
}
.bm-nav__heading-link {
  display: flex; align-items: center; font-weight: 700;
  padding: var(--sp-3) 0; min-height: 44px; color: var(--c-text);
}

/* ====================== Layout ====================== */
.bm-main { min-height: 60vh; }
.bm-container {
  max-width: var(--w-content); margin: 0 auto;
  padding: var(--sp-5) var(--sp-4) var(--sp-7);
}
.bm-container--narrow { max-width: var(--w-prose); }

.bm-page-header { margin-bottom: var(--sp-6); }
.bm-page-header__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--fs-2xl); line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--c-text); margin: 0 0 var(--sp-4);
}
.bm-page-header__desc { color: var(--c-muted); font-size: var(--fs-md); }

/* ====================== Hero editorial / hubs ====================== */
.bm-hero {
  position: relative;
  margin: var(--sp-4) 0 var(--sp-6);
  padding: clamp(var(--sp-5), 4vw, var(--sp-7));
  border-radius: var(--r-lg);
  background:
    radial-gradient(circle at 100% 0, var(--tema-bg, var(--c-rose-50)), transparent 28%),
    linear-gradient(135deg, var(--c-surface), var(--c-surface-2));
  border: 1px solid var(--c-border);
  box-shadow: var(--sh-1);
  overflow: hidden;
}
.bm-hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: var(--tema-accent, var(--c-rose-500));
}
.bm-hero--compact {
  margin: var(--sp-3) 0 var(--sp-5);
  padding: clamp(var(--sp-4), 3vw, var(--sp-6));
}
.bm-hero__content { max-width: 760px; position: relative; }
.bm-hero__eyebrow {
  margin: 0 0 var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.bm-hero__title {
  margin: 0;
  font-size: var(--fs-3xl);
  letter-spacing: var(--tracking-tight);
}
.bm-hero--compact .bm-hero__title { font-size: clamp(1.75rem, 4.6vw, 2.35rem); }
.bm-hero--compact .bm-hero__eyebrow { margin-bottom: var(--sp-1); }
.bm-hero__desc {
  max-width: 68ch;
  margin-top: var(--sp-4);
  color: var(--c-text-soft);
  font-size: var(--fs-md);
}
.bm-hero__desc p { margin: 0 0 var(--sp-3); }
.bm-hero--compact .bm-hero__desc {
  max-width: 52ch;
  margin-top: var(--sp-2);
  font-size: var(--fs-base);
  line-height: var(--lh-snug);
}
.bm-hero--compact .bm-hero__desc p { margin-bottom: 0; }
.bm-hero__search {
  display: grid;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
  max-width: 640px;
}
.bm-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-5);
}
@media (min-width: 700px) {
  .bm-hero__search { grid-template-columns: 1fr auto; }
}
@media (min-width: 760px) {
  .bm-hero--compact .bm-hero__content {
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, .86fr);
    column-gap: var(--sp-6);
    align-items: end;
  }
  .bm-hero--compact .bm-hero__eyebrow,
  .bm-hero--compact .bm-hero__title,
  .bm-hero--compact .bm-hero__desc {
    grid-column: 1;
  }
  .bm-hero--compact .bm-hero__search,
  .bm-hero--compact .bm-hero__chips {
    grid-column: 2;
  }
  .bm-hero--compact .bm-hero__search {
    margin-top: 0;
    max-width: none;
  }
  .bm-hero--compact .bm-hero__chips { margin-top: var(--sp-3); }
}
@media (max-width: 480px) {
  .bm-hero--compact {
    margin-top: var(--sp-2);
    padding: var(--sp-4);
  }
  .bm-hero--compact .bm-hero__desc,
  .bm-hero--compact .bm-hero__search,
  .bm-hero--compact .bm-hero__chips {
    margin-top: var(--sp-3);
  }
}

/* ====================== Breadcrumbs ====================== */
.bm-breadcrumbs {
  font-family: var(--font-ui); font-size: var(--fs-sm); color: var(--c-muted);
  margin-bottom: var(--sp-4);
}
.bm-breadcrumbs ol {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2);
}
.bm-breadcrumbs li { display: inline-flex; align-items: center; gap: var(--sp-2); }
.bm-breadcrumbs a { color: var(--c-muted); }
.bm-breadcrumbs a:hover { color: var(--c-rose-600); }
.bm-breadcrumbs svg { width: 14px; height: 14px; color: var(--c-border-strong); }
.bm-breadcrumbs [aria-current="page"] { color: var(--c-text-soft); font-weight: 600; }

/* ====================== Intro / outro editorial ====================== */
.bm-intro, .bm-outro { max-width: 68ch; margin-bottom: var(--sp-6); color: var(--c-text-soft); }
.bm-intro p, .bm-outro p { font-size: var(--fs-md); line-height: var(--lh-body); }
.bm-section-desc { max-width: 68ch; margin-bottom: var(--sp-5); color: var(--c-text-soft); }
.bm-section-title {
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-xl);
  color: var(--c-text); margin: var(--sp-7) 0 var(--sp-4);
}

/* ====================== Grids ====================== */
.bm-grid { display: grid; gap: var(--sp-5); }
.bm-grid--cards { grid-template-columns: 1fr; }
@media (min-width: 600px) { .bm-grid--cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .bm-grid--cards { grid-template-columns: repeat(3, 1fr); } }

.bm-section-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: var(--sp-5); gap: var(--sp-4);
}
.bm-section-header__title {
  font-family: var(--font-display); font-size: var(--fs-xl); margin: 0; color: var(--c-text);
}
.bm-section-header__link {
  font-family: var(--font-ui); font-size: var(--fs-sm); font-weight: 600;
  padding: var(--sp-2) var(--sp-4); background: var(--c-surface-2);
  border-radius: var(--r-pill); border: 1px solid var(--c-border); color: var(--c-text);
}
.bm-home-section { margin-bottom: var(--sp-7); }

/* ====================== List cards ====================== */
.bm-list-card {
  background: var(--c-surface); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--sh-2);
  border: 1px solid var(--c-border);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.bm-list-card:hover { transform: translateY(-2px); box-shadow: var(--sh-3); }
.bm-list-card__link { display: block; color: inherit; }
.bm-list-card__img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.bm-list-card__placeholder {
  aspect-ratio: 16/9; background: linear-gradient(135deg, var(--c-surface-2), var(--c-rose-100));
}
.bm-list-card__body { padding: var(--sp-4); }
.bm-list-card__meta {
  margin: 0 0 var(--sp-2);
  color: var(--tema-accent, var(--c-rose-600));
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.bm-list-card__title {
  font-family: var(--font-display); font-weight: 600;
  margin: 0; font-size: var(--fs-md); line-height: var(--lh-snug);
}
.bm-list-card__excerpt {
  margin: var(--sp-3) 0 0;
  color: var(--c-muted);
  font-size: var(--fs-sm);
  line-height: var(--lh-body);
}
.bm-list-card__cta {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-top: var(--sp-3);
  color: var(--c-rose-700);
  font-size: var(--fs-sm);
  font-weight: 700;
}

/* ====================== Quote card (estilo Pensador) ====================== */
.bm-quotes-grid { display: flex; flex-direction: column; gap: var(--sp-5); }

.bm-quote-card {
  background: var(--tema-bg, var(--c-surface));
  border-radius: var(--r-lg);
  box-shadow: var(--sh-2);
  border: 1px solid var(--c-border);
  border-left: 4px solid var(--tema-accent, var(--c-rose-500));
  padding: var(--sp-5);
  position: relative;
}
.bm-quote-card__media { border-radius: var(--r-md); margin-bottom: var(--sp-4); width: 100%; overflow: hidden; }
.bm-quote-card__media img { width: 100%; border-radius: var(--r-md); }

.bm-quote-card__text { margin: 0; border: none; padding: 0; }
.bm-quote-card__text p {
  font-family: var(--font-display); font-weight: 500;
  font-size: var(--fs-lg); line-height: var(--lh-quote);
  color: var(--c-text); margin: 0 0 var(--sp-2);
}
.bm-quote-card__author {
  font-family: var(--font-ui); font-size: var(--fs-sm); font-weight: 600;
  color: var(--c-muted); font-style: normal; margin-top: var(--sp-3);
}
.bm-quote-card__author::before { content: "— "; }

/* Linha de ações do card */
.bm-quote-card__actions {
  display: flex; flex-wrap: wrap; gap: var(--sp-2);
  margin-top: var(--sp-4); padding-top: var(--sp-4);
  border-top: 1px solid var(--c-border);
}
.bm-action {
  font-family: var(--font-ui); font-weight: 600; font-size: var(--fs-sm);
  min-height: 44px;
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: 0 var(--sp-3); border-radius: var(--r-pill);
  background: var(--c-surface); color: var(--c-text);
  border: 1px solid var(--c-border); cursor: pointer; text-decoration: none;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur-fast) var(--ease);
}
.bm-action svg { width: 18px; height: 18px; flex: none; }
.bm-action:hover { background: var(--c-surface-2); border-color: var(--tema-accent); }
.bm-action--whatsapp { background: var(--c-whatsapp); color: #fff; border-color: transparent; }
.bm-action--whatsapp:hover { background: #1ebe5a; color: #fff; }
.bm-action--ai { background: var(--c-coral-500); color: #fff; border-color: transparent; }
.bm-action--ai:hover { background: var(--c-coral-600); color: #fff; }
.bm-action.is-copied { background: #DCF6E6; border-color: var(--c-success); color: var(--c-success); }
.bm-action.is-saved { color: var(--c-rose-600); border-color: var(--c-rose-300); }
.bm-action.is-saved svg { fill: var(--c-rose-500); }

.bm-quote-card__meta {
  display: flex; align-items: center; gap: var(--sp-2);
  margin-top: var(--sp-3); font-size: var(--fs-sm); color: var(--c-muted);
}
.bm-quote-card__meta svg { width: 16px; height: 16px; }
.bm-image-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
}
.bm-image-actions .btn { flex: 1 1 180px; }

/* Personalização IA inline */
.bm-ai-panel { margin-top: var(--sp-4); padding-top: var(--sp-4); border-top: 1px dashed var(--c-border); }
.bm-ai-panel[hidden] { display: none; }
.bm-ai-panel__label { font-family: var(--font-ui); font-weight: 600; font-size: var(--fs-sm); display: block; margin-bottom: var(--sp-2); }
.bm-ai-panel__row { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.bm-ai-panel__row .input { flex: 1; min-width: 180px; }
.bm-ai-panel__result { margin-top: var(--sp-3); }
.bm-ai-panel__result:empty { display: none; }
.bm-ai-note { font-size: var(--fs-xs); color: var(--c-muted); margin-top: var(--sp-2); }

/* ====================== Share bar (página/lista) ====================== */
.bm-share-bar {
  display: flex; flex-wrap: wrap; gap: var(--sp-2);
  margin-top: var(--sp-4);
}

/* ====================== FAQ accordion ====================== */
.bm-faq {
  background: var(--c-surface); border-radius: var(--r-lg);
  padding: var(--sp-5); margin: var(--sp-7) 0;
  box-shadow: var(--sh-1); border: 1px solid var(--c-border);
}
.bm-faq__title { margin: 0 0 var(--sp-4); font-size: var(--fs-xl); color: var(--c-text); }
.bm-faq__item { border-bottom: 1px solid var(--c-border); }
.bm-faq__question {
  font-family: var(--font-ui); cursor: pointer; font-weight: 600; font-size: var(--fs-md);
  padding: var(--sp-4) 0; list-style: none; min-height: 44px;
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
  color: var(--c-text);
}
.bm-faq__question::-webkit-details-marker { display: none; }
.bm-faq__question::after {
  content: ""; width: 18px; height: 18px; flex: none;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B6577' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  transition: transform var(--dur) var(--ease);
}
.bm-faq__item[open] .bm-faq__question::after { transform: rotate(180deg); }
.bm-faq__answer { color: var(--c-text-soft); padding-bottom: var(--sp-4); line-height: var(--lh-body); }

/* ====================== Relacionados ("Veja também") ====================== */
.bm-related { margin: var(--sp-7) 0; }
.bm-related__title { font-size: var(--fs-xl); margin: 0 0 var(--sp-4); color: var(--c-text); }
.bm-related__cloud { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

/* ====================== Newsletter / WhatsApp CTA ====================== */
.bm-cta {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-lg); padding: var(--sp-6); margin: var(--sp-7) 0;
  box-shadow: var(--sh-1); text-align: center;
}
.bm-cta__title { font-size: var(--fs-xl); margin: 0 0 var(--sp-2); }
.bm-cta__desc { color: var(--c-muted); margin: 0 0 var(--sp-4); }
.bm-cta__links { display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: center; }

/* ====================== Ads ====================== */
.bm-ad { text-align: center; margin: var(--sp-4) auto; min-height: 100px; }
.bm-ad--header { display: none; }
@media (min-width: 768px) { .bm-ad--header { display: block; } }
.bm-ad-sticky {
  position: fixed; bottom: 0; left: 0; right: 0;
  min-height: 56px; background: var(--c-surface);
  z-index: var(--z-sticky); border-top: 1px solid var(--c-border);
}
@media (min-width: 768px) { .bm-ad-sticky { display: none; } body { padding-bottom: 0; } }

/* ====================== Paginação ====================== */
.bm-pagination ul {
  display: flex; flex-wrap: wrap; gap: var(--sp-2);
  list-style: none; padding: 0; justify-content: center; margin-top: var(--sp-6);
}
.bm-pagination a, .bm-pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 0 var(--sp-3);
  border-radius: var(--r-sm); background: var(--c-surface);
  border: 1px solid var(--c-border); color: var(--c-text);
}
.bm-pagination .current { background: var(--c-rose-500); color: #fff; border-color: var(--c-rose-500); }

/* ====================== Tags ====================== */
.bm-tag-cloud { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

/* ====================== Autor / conteúdo longo ====================== */
.bm-author-card {
  display: grid;
  gap: var(--sp-5);
  align-items: center;
  margin: var(--sp-5) 0 var(--sp-7);
  padding: var(--sp-6);
  border-radius: var(--r-xl);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  box-shadow: var(--sh-2);
}
.bm-author-card__avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--r-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-rose-100);
  color: var(--c-rose-700);
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 700;
}
.bm-author-card__eyebrow {
  margin: 0 0 var(--sp-1);
  color: var(--c-muted);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.bm-author-card__title { margin: 0; font-size: var(--fs-2xl); }
.bm-author-card__desc { color: var(--c-text-soft); max-width: 68ch; }
.bm-author-card__desc p { margin: var(--sp-2) 0 0; }
.bm-author-card__meta { margin: var(--sp-3) 0 0; color: var(--c-muted); font-size: var(--fs-sm); }
@media (min-width: 700px) {
  .bm-author-card { grid-template-columns: auto 1fr; }
}

.bm-prose,
.bm-single__content,
.bm-page__content,
.bm-historia {
  color: var(--c-text-soft);
}
.bm-prose > *,
.bm-single__content > *,
.bm-page__content > *,
.bm-historia > * {
  max-width: 68ch;
}
.bm-prose p,
.bm-single__content p,
.bm-page__content p,
.bm-historia p {
  font-size: var(--fs-md);
  line-height: var(--lh-body);
}
.bm-single__hero {
  border-radius: var(--r-lg);
  box-shadow: var(--sh-2);
  margin-bottom: var(--sp-5);
  width: 100%;
}
.bm-single__author {
  padding: var(--sp-4);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-surface-2);
}

/* ====================== Post nav / busca / 404 ====================== */
.bm-post-nav {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--sp-4); margin-top: var(--sp-7); text-align: center;
}
.bm-post-nav a { display: block; padding: var(--sp-3); border: 1px solid var(--c-border); border-radius: var(--r-md); background: var(--c-surface); }
.bm-empty { text-align: center; color: var(--c-muted); padding: var(--sp-7) 0; }
.bm-empty-state {
  text-align: center;
  padding: var(--sp-7) var(--sp-5);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-1);
}
.bm-empty-state__title { margin: 0 0 var(--sp-2); font-size: var(--fs-xl); }
.bm-empty-state__desc { margin: 0 auto var(--sp-5); max-width: 56ch; color: var(--c-muted); }
.bm-empty-state__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-2);
  margin-top: var(--sp-5);
}
.bm-search-item {
  background: var(--c-surface); padding: var(--sp-5);
  border-radius: var(--r-lg); margin-bottom: var(--sp-3);
  box-shadow: var(--sh-1); border: 1px solid var(--c-border);
}
.bm-search-item h2 { margin: 0 0 var(--sp-2); font-size: var(--fs-md); }
.bm-404 { text-align: center; padding-top: var(--sp-7); }
.bm-search-form {
  display: grid;
  gap: var(--sp-2);
  max-width: 520px;
  margin: var(--sp-5) auto;
}
@media (min-width: 560px) {
  .bm-search-form { grid-template-columns: 1fr auto; }
}

/* ====================== Comments ====================== */
.bm-comments { margin-top: var(--sp-7); }
.bm-comments h2 { font-size: var(--fs-xl); }

/* ====================== Footer ====================== */
.bm-footer {
  background: var(--c-surface); border-top: 1px solid var(--c-border);
  padding: var(--sp-7) var(--sp-4); margin-top: var(--sp-7);
}
.bm-footer__inner {
  max-width: var(--w-content); margin: 0 auto;
  display: grid; gap: var(--sp-6);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .bm-footer__inner { grid-template-columns: 2fr 1fr 1fr; } }
.bm-footer__col-title { font-family: var(--font-ui); font-weight: 700; font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .04em; color: var(--c-muted); margin: 0 0 var(--sp-3); }
.bm-footer__list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); }
.bm-footer__list a { color: var(--c-text-soft); font-size: var(--fs-sm); }
.bm-footer__list a:hover { color: var(--c-rose-600); }
.bm-footer__brand { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-md); margin: 0 0 var(--sp-2); }
.bm-footer__about { color: var(--c-muted); font-size: var(--fs-sm); margin: 0; max-width: 42ch; }
.bm-footer__bottom { max-width: var(--w-content); margin: var(--sp-6) auto 0; padding-top: var(--sp-4); border-top: 1px solid var(--c-border); color: var(--c-muted); font-size: var(--fs-xs); }

/* ====================== Minhas frases / Toast ====================== */
body.has-bm-drawer { overflow: hidden; }
.bm-favorites-drawer[hidden],
.bm-toast[hidden] { display: none; }
.bm-favorites-drawer {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
}
.bm-favorites-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(42, 34, 48, .48);
}
.bm-favorites-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 92vw);
  overflow-y: auto;
  background: var(--c-surface);
  border-left: 1px solid var(--c-border);
  box-shadow: var(--sh-3);
  padding: var(--sp-5);
}
.bm-favorites-drawer__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
}
.bm-favorites-drawer__eyebrow {
  margin: 0 0 var(--sp-1);
  color: var(--c-muted);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.bm-favorites-drawer__title {
  margin: 0;
  font-size: var(--fs-xl);
}
.bm-favorites-drawer__desc,
.bm-favorites-drawer__empty {
  margin: var(--sp-2) 0 0;
  color: var(--c-muted);
  font-size: var(--fs-sm);
}
.bm-favorites-drawer__close {
  width: 44px;
  height: 44px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-surface-2);
  color: var(--c-text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.bm-favorites-drawer__close svg { width: 20px; height: 20px; }
.bm-favorites-drawer__list {
  display: grid;
  gap: var(--sp-3);
}
.bm-favorite-item {
  padding: var(--sp-4);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  background: var(--tema-bg, var(--c-surface-2));
}
.bm-favorite-item__text {
  margin: 0 0 var(--sp-3);
  font-family: var(--font-display);
  font-size: var(--fs-md);
  line-height: var(--lh-quote);
  color: var(--c-text);
}
.bm-favorite-item__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.bm-favorite-item__actions .btn { flex: 1 1 120px; }
.bm-toast {
  position: fixed;
  left: 50%;
  bottom: calc(72px + var(--sp-4));
  z-index: var(--z-toast);
  transform: translateX(-50%);
  width: min(420px, calc(100vw - var(--sp-5)));
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-pill);
  background: var(--c-text);
  color: var(--c-surface);
  box-shadow: var(--sh-3);
  text-align: center;
  font-size: var(--fs-sm);
  font-weight: 700;
}
.bm-toast[data-type="success"] { background: var(--c-success); }
.bm-toast[data-type="error"] { background: var(--c-danger); }
@media (min-width: 768px) {
  .bm-toast { bottom: var(--sp-5); }
}
