/* =========================================================================
   Blog — tema M4M News
   Claro por padrão: creme, preto e laranja; Barlow Condensed, Barlow e Lora.
   Cor de destaque e tema (claro/escuro) vêm das Configurações do painel.
   ========================================================================= */
:root {
  --accent: #e8622a;
  --accent-ink: #0a0a0a;
  --accent-text: #a7471e;
  --bg: #f7f3ee;
  --bg-2: #f0eae0;
  --surface: #ffffff;
  --surface-2: #f0eae0;
  --line: #e2dacd;
  --text: #3d3a35;
  --muted: #6b665f;
  --heading: #0a0a0a;
  --gold: #8a7440;
  --display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --sans: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --radius: 12px;
  --gutter: clamp(18px, 4vw, 40px);
  --feed: 720px;
  --cta-bg: #0a0a0a;
  --cta-fg: #f7f3ee;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
html[data-theme="dark"] {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --surface: #151515;
  --surface-2: #1d1d1d;
  --line: rgba(240, 234, 224, .14);
  --text: #d6d0c6;
  --muted: #9a948b;
  --heading: #f0eae0;
  --gold: #b8a16c;
  --accent-text: #e8622a;
  --cta-bg: #1d1d1d;
  --cta-fg: #f0eae0;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--line) var(--bg); }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; color: var(--heading); line-height: 1.02; letter-spacing: -.015em; text-transform: uppercase; text-wrap: balance; }
a { color: var(--accent-text); text-underline-offset: .2em; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.bx-skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--heading); color: var(--bg); font-weight: 600; text-decoration: none; border-radius: var(--radius); }
.bx-skip:focus { top: 16px; }
.bx-wrap { width: 100%; max-width: calc(var(--feed) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.bx-wrap--narrow { max-width: calc(680px + var(--gutter) * 2); }
.bx-wrap--wide { max-width: calc(1080px + var(--gutter) * 2); }

/* ---------- botões ---------- */
.bx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 26px;
  background: var(--heading); color: var(--bg); border: 0; border-radius: 999px;
  font-family: var(--sans); font-weight: 600; font-size: .9rem; line-height: 1.2; letter-spacing: .05em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, transform .16s var(--ease);
}
.bx-btn:active { transform: scale(.97); }
.bx-btn--sm { min-height: 40px; padding: 8px 18px; font-size: .8rem; }
@media (hover: hover) and (pointer: fine) {
  .bx-btn:hover { background: var(--accent); color: var(--accent-ink); }
}

/* ---------- cabeçalho ---------- */
.bx-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 90%, transparent); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
@supports (backdrop-filter: blur(8px)) { .bx-header { backdrop-filter: saturate(1.2) blur(14px); } }
.bx-header .bx-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.bx-brand, .bx-nav .bx-btn { white-space: nowrap; }
.bx-brand { display: inline-flex; align-items: center; font-family: var(--display); font-weight: 800; font-style: italic; font-size: 1.7rem; line-height: 1; letter-spacing: -.01em; text-transform: uppercase; color: var(--heading); text-decoration: none; }
/* logo M4M com a palavra "News" embaixo, espaçada na largura do logo */
.bx-brand { flex-direction: column; align-items: stretch; gap: 5px; }
.bx-brand img { height: 26px; max-height: 40px; width: auto; }
.bx-brand__tag { font-family: var(--sans); font-weight: 700; font-style: italic; font-size: .62rem; letter-spacing: .95em; margin-right: -.95em; line-height: 1; text-align: center; color: var(--heading); }
.bx-nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 26px); }
.bx-nav > a:not(.bx-btn) { color: var(--text); text-decoration: none; font-size: .84rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; padding: 10px 0; transition: color .2s; }
.bx-nav > a:not(.bx-btn):hover, .bx-nav > a[aria-current] { color: var(--accent-text); }
@media (max-width: 560px) {
  .bx-header .bx-wrap { min-height: 56px; }
  .bx-brand { font-size: 1.5rem; }
  .bx-brand img { height: 24px; }
  .bx-brand__tag { font-size: .58rem; }
  .bx-nav > a:not(.bx-btn) { display: none; }
  .bx-nav .bx-btn { min-height: 36px; padding: 6px 14px; font-size: .72rem; }
  .bx-nav { gap: 8px; }
  .bx-theme { width: 36px; height: 36px; }
}
@media (max-width: 400px) {
  .bx-header .bx-wrap { gap: 8px; }
  .bx-nav .bx-btn { padding: 6px 11px; font-size: .68rem; letter-spacing: .03em; }
}

.bx-logo--dark, html[data-theme="dark"] .bx-logo--light { display: none; }
html[data-theme="dark"] .bx-logo--dark { display: block; }
.bx-theme { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; padding: 0; background: none; border: 1px solid var(--line); border-radius: 50%; color: var(--heading); cursor: pointer; transition: border-color .2s, color .2s, transform .16s var(--ease); }
.bx-theme:active { transform: scale(.94); }
.bx-theme__sun, html[data-theme="dark"] .bx-theme__moon { display: none; }
html[data-theme="dark"] .bx-theme__sun { display: block; }
@media (hover: hover) and (pointer: fine) { .bx-theme:hover { border-color: var(--heading); color: var(--accent-text); } }
html { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }

/* ---------- topo da lista ---------- */
.bx-hero { padding: clamp(28px, 5vw, 56px) 0 clamp(8px, 2vw, 16px); }
.bx-hero h1 { font-size: clamp(2.6rem, 9vw, 4.4rem); }
.bx-lead { margin-top: 14px; max-width: 38em; font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.5; color: var(--text); text-wrap: pretty; }

/* ---------- lista de posts ---------- */
.bx-section { padding: clamp(16px, 3vw, 28px) 0 clamp(64px, 8vw, 112px); }
.bx-filter { display: flex; gap: 8px; margin: 0 calc(var(--gutter) * -1) 8px; padding: 4px var(--gutter) 12px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.bx-filter::-webkit-scrollbar { display: none; }
.bx-filter a { flex: none; scroll-snap-align: start; padding: 9px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font-size: .8rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; text-decoration: none; transition: border-color .2s, color .2s, background-color .2s; }
.bx-filter a:hover { border-color: var(--heading); color: var(--heading); }
.bx-filter a.is-active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.bx-filter__tag { margin: 8px 0 4px; color: var(--muted); font-size: .95rem; }

.bx-grid { display: flex; flex-direction: column; }
.bx-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 6px clamp(14px, 3vw, 28px); padding: clamp(20px, 3vw, 28px) 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.bx-card__img { order: 2; display: block; width: clamp(96px, 24vw, 168px); aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); background: var(--surface-2); }
.bx-card__img:empty { display: none; }
.bx-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.bx-card__body { order: 1; display: flex; flex-direction: column; min-width: 0; }
.bx-card__cat { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.bx-card__title { display: block; margin-top: 6px; font-family: var(--display); font-weight: 800; font-size: clamp(1.45rem, 4.6vw, 1.9rem); line-height: 1.04; letter-spacing: -.01em; text-transform: uppercase; color: var(--heading); text-wrap: balance; transition: color .2s; }
.bx-card__lead { display: -webkit-box; margin-top: 8px; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-family: var(--serif); font-size: .98rem; line-height: 1.5; color: var(--text); }
.bx-card__meta { display: block; margin-top: 12px; font-size: .78rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--gold); }

/* primeiro post em destaque: imagem larga em cima */
.bx-grid:not(.is-filtered) > .bx-card:first-child, .bx-card.is-lead { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-top: 8px; }
.bx-grid:not(.is-filtered) > .bx-card:first-child .bx-card__img, .bx-card.is-lead .bx-card__img { order: 0; width: 100%; aspect-ratio: 16 / 9; }
.bx-grid:not(.is-filtered) > .bx-card:first-child .bx-card__title, .bx-card.is-lead .bx-card__title { font-size: clamp(2rem, 7vw, 3rem); line-height: 1; }
.bx-grid:not(.is-filtered) > .bx-card:first-child .bx-card__lead, .bx-card.is-lead .bx-card__lead { -webkit-line-clamp: 3; font-size: 1.08rem; }

@media (hover: hover) and (pointer: fine) {
  .bx-card:hover .bx-card__title { color: var(--accent-text); }
  .bx-card:hover .bx-card__img img { transform: scale(1.04); }
}
.bx-empty { padding: 48px 24px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }

/* blocos de "últimos posts" na página inicial de outro site */
.bx-grid--cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

/* ---------- post ---------- */
.bx-post-head { padding: clamp(20px, 4vw, 44px) 0 0; }
.bx-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: .8rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.bx-back:hover { color: var(--heading); }
.bx-cats { display: block; margin-top: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.bx-cats a { color: var(--accent-text); text-decoration: none; }
.bx-cats a:hover { text-decoration: underline; }
.bx-post-head h1 { margin-top: 10px; font-size: clamp(2.3rem, 8.4vw, 3.9rem); line-height: .98; }
.bx-post-head .bx-lead { margin-top: 16px; font-size: clamp(1.12rem, 2.4vw, 1.3rem); color: var(--muted); }
.bx-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 22px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .78rem; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--gold); }
.bx-meta > * + *::before { content: "·"; margin-right: 14px; color: var(--line); }

.bx-article { padding: clamp(24px, 4vw, 40px) 0 clamp(64px, 8vw, 112px); }
.bx-figure { margin-bottom: clamp(24px, 4vw, 40px); }
.bx-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); background: var(--surface-2); }
@media (max-width: 560px) { .bx-figure { margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); } .bx-figure img { border-radius: 0; } .bx-figure figcaption { padding: 0 var(--gutter); } }
.bx-figure figcaption, .post-figure figcaption { margin-top: 10px; font-size: .84rem; color: var(--muted); text-align: center; }
.bx-prose { font-family: var(--serif); font-size: clamp(1.125rem, 2.6vw, 1.22rem); line-height: 1.72; color: var(--text); overflow-wrap: anywhere; }
.bx-prose > * + * { margin-top: 1.15em; }
.bx-prose h2 { font-size: clamp(1.8rem, 5.6vw, 2.35rem); margin-top: 1.7em; }
.bx-prose h3 { font-size: clamp(1.4rem, 4.2vw, 1.7rem); margin-top: 1.6em; }
.bx-prose h2 + *, .bx-prose h3 + * { margin-top: .7em; }
.bx-prose strong { color: var(--heading); font-weight: 600; }
.bx-prose ul, .bx-prose ol { padding-left: 1.3em; }
.bx-prose ul { list-style: none; padding-left: 0; }
.bx-prose ul li { position: relative; padding-left: 24px; }
.bx-prose ul li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.bx-prose ol li::marker { font-family: var(--sans); font-weight: 700; color: var(--accent-text); }
.bx-prose li + li { margin-top: .5em; }
.bx-prose blockquote { padding: 2px 0 2px 20px; border-left: 3px solid var(--accent); font-size: 1.14em; line-height: 1.5; font-style: italic; color: var(--heading); }
.bx-prose hr { width: 72px; margin: 2.2em auto; border: 0; border-top: 3px solid var(--accent); }
.post-figure { margin: 1.8em 0; }
.post-figure img { width: 100%; border-radius: var(--radius); background: var(--surface-2); }
.post-cta { font-family: var(--sans); }
.post-cta a { color: var(--bg); }
.bx-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; padding: 24px 0 0; border-top: 1px solid var(--line); }
.bx-tags a { display: inline-block; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; transition: border-color .2s, color .2s; }
.bx-tags a:hover { border-color: var(--heading); color: var(--heading); }
.bx-cta { margin-top: 48px; padding: clamp(24px, 5vw, 40px); border-radius: calc(var(--radius) + 4px); background: var(--cta-bg); color: var(--cta-fg); }
.bx-cta h2 { font-size: clamp(1.7rem, 5vw, 2.3rem); color: var(--cta-fg); }
.bx-cta p { margin-top: 12px; color: color-mix(in srgb, var(--cta-fg) 82%, transparent); }
.bx-cta .bx-btn { margin-top: 22px; background: var(--accent); color: var(--accent-ink); }
.bx-cta > :first-child { margin-top: 0; }
@media (hover: hover) and (pointer: fine) { .bx-cta .bx-btn:hover { background: var(--cta-fg); color: var(--cta-bg); } }

/* ---------- rodapé ---------- */
.bx-footer { margin-top: auto; padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font-size: .84rem; color: var(--muted); }
.bx-footer .bx-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.bx-footer a { color: var(--muted); }

@media (max-width: 760px) { .bx-grid--cols { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bx-card__img img, .bx-card__title, .bx-btn { transition: none; }
}

/* ---------- app (PWA): convite de instalação e página offline ---------- */
.bx-btn--ghost { background: transparent; color: var(--heading); box-shadow: inset 0 0 0 1px var(--line); }
.bx-install { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px 14px; max-width: 520px; margin: 0 auto; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); box-shadow: 0 18px 40px -18px rgba(10, 10, 10, .45); animation: bx-rise .35s var(--ease); }
.bx-install img { width: 44px; height: 44px; border-radius: 10px; }
.bx-install__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: .88rem; line-height: 1.35; color: var(--text); }
.bx-install__body strong { font-family: var(--display); font-weight: 800; font-size: 1.2rem; line-height: 1.05; text-transform: uppercase; color: var(--heading); }
.bx-install__actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.bx-install__close { min-height: 40px; padding: 8px 14px; background: none; border: 0; border-radius: 999px; font: inherit; font-size: .8rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); cursor: pointer; }
.bx-install__close:hover { color: var(--heading); }
@keyframes bx-rise { from { opacity: 0; transform: translateY(16px); } }
.bx-offline { padding: clamp(48px, 12vw, 120px) 0; }
.bx-offline h1 { font-size: clamp(2.3rem, 8.4vw, 3.6rem); line-height: .98; }
.bx-offline__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
@media (prefers-reduced-motion: reduce) { .bx-install { animation: none; } }

/* ---------- conta do leitor: botão do cabeçalho, barra inferior e botão Salvar ---------- */
.bx-acct { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 16px 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--heading); font-size: .8rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; text-decoration: none; white-space: nowrap; transition: border-color .2s, color .2s; }
.bx-acct svg { width: 18px; height: 18px; }
.bx-acct.is-in { background: var(--surface); }
@media (hover: hover) and (pointer: fine) { .bx-acct:hover { border-color: var(--heading); color: var(--accent-text); } }

.bx-tabs { display: none; }
@media (max-width: 720px) {
  .bx-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 92%, transparent); border-top: 1px solid var(--line); }
  @supports (backdrop-filter: blur(8px)) { .bx-tabs { backdrop-filter: saturate(1.2) blur(14px); } }
  .bx-tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 50px; border-radius: 10px; color: var(--muted); font-size: .64rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
  .bx-tabs a[aria-current] { color: var(--heading); }
  .bx-tabs a[aria-current] svg { color: var(--accent); }
  .bx-tabs a:active { background: var(--surface-2); }
  .bx-has-tabs { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
  .bx-has-tabs .bx-install { bottom: calc(74px + env(safe-area-inset-bottom)); }
  /* no celular a barra inferior leva para a plataforma e para a conta: o cabeçalho fica só com logo e tema */
  .bx-has-tabs .bx-nav .bx-btn, .bx-has-tabs .bx-acct { display: none; }
}

.bx-save { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; margin-left: auto; padding: 6px 14px 6px 10px; background: none; border: 1px solid var(--line); border-radius: 999px; color: var(--heading); font: inherit; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; cursor: pointer; transition: border-color .2s, color .2s, background-color .2s; }
.bx-save svg { width: 18px; height: 18px; }
.bx-meta > .bx-save::before { content: none; }
.bx-save[aria-pressed="true"] { background: var(--heading); border-color: var(--heading); color: var(--bg); }
.bx-save[aria-pressed="true"] svg path { fill: currentColor; }
.bx-save:disabled { opacity: .6; cursor: default; }
@media (hover: hover) and (pointer: fine) { .bx-save:hover { border-color: var(--heading); } }

/* ---------- conta do leitor: páginas de entrar, cadastrar, perfil e salvos ---------- */
.bx-account { padding: clamp(24px, 6vw, 64px) 0 clamp(48px, 8vw, 96px); }
.bx-wrap--form { max-width: calc(460px + var(--gutter) * 2); }
.bx-wrap--feed { max-width: calc(var(--feed) + var(--gutter) * 2); }
.bx-account h1 { font-size: clamp(2.2rem, 8vw, 3rem); line-height: 1; }
.bx-account__head { margin-bottom: 24px; }
.bx-account__head .bx-lead { margin-top: 8px; color: var(--muted); }
.bx-card-box { padding: clamp(22px, 5vw, 36px); background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); }
.bx-card-box > h1 + p { margin-top: 10px; color: var(--muted); }
.bx-form { display: grid; gap: 16px; margin-top: 22px; }
.bx-field { display: block; }
.bx-field > span { display: block; margin-bottom: 6px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--heading); }
.bx-field input { width: 100%; min-height: 50px; padding: 12px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); color: var(--heading); font: inherit; font-size: 1rem; caret-color: var(--accent); }
.bx-field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.bx-field small { display: block; margin-top: 6px; font-size: .84rem; color: var(--muted); }
.bx-check { display: flex; align-items: flex-start; gap: 10px; font-size: .92rem; line-height: 1.4; color: var(--text); }
.bx-check input { flex: none; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--accent); }
.bx-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bx-btn--block { width: 100%; }
.bx-btn--danger { background: #b3261e; color: #ffffff; }
.bx-form__links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-top: 20px; font-size: .92rem; }
.bx-form__links a { font-weight: 600; }
.bx-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; }
.bx-inline { display: inline; margin: 0; }
.bx-linkbtn { padding: 0; background: none; border: 0; font: inherit; font-weight: 600; color: var(--accent-text); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.bx-alert { margin: 0 0 18px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-size: .95rem; line-height: 1.45; color: var(--heading); overflow-wrap: anywhere; }
.bx-alert form { margin-top: 8px; }
.bx-card-box .bx-alert { margin: 18px 0 0; }
.bx-alert--ok { border-color: color-mix(in srgb, #1f7a4d 45%, var(--line)); background: color-mix(in srgb, #1f7a4d 10%, var(--surface)); }
.bx-alert--err { border-color: color-mix(in srgb, #b3261e 50%, var(--line)); background: color-mix(in srgb, #b3261e 9%, var(--surface)); }
.bx-alert--info { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); background: color-mix(in srgb, var(--accent) 9%, var(--surface)); }
.bx-panel { margin-top: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.bx-panel > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 54px; padding: 0 18px; font-weight: 700; font-size: .84rem; letter-spacing: .06em; text-transform: uppercase; color: var(--heading); cursor: pointer; }
.bx-panel > summary::-webkit-details-marker { display: none; }
.bx-panel > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
.bx-panel[open] > summary::after { transform: rotate(-135deg); }
.bx-panel .bx-form { margin: 0; padding: 4px 18px 20px; }
.bx-panel .bx-form .bx-btn { justify-self: start; }
.bx-panel .bx-form > p { font-size: .95rem; color: var(--text); }

/* ---------- curtidas e comentários ---------- */
.bx-engage { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-family: var(--sans); }
.bx-tags + .bx-engage { margin-top: 24px; }
.bx-engage__bar { display: flex; align-items: center; gap: 10px; }
.bx-like { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 8px 18px 8px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; color: var(--heading); font: inherit; font-size: .84rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; cursor: pointer; transition: border-color .2s, color .2s, transform .16s var(--ease); }
.bx-like b { font-weight: 700; color: var(--muted); }
.bx-like b:empty { display: none; }
.bx-like:active { transform: scale(.96); }
.bx-like[aria-pressed="true"] { border-color: var(--accent); color: var(--accent-text); }
.bx-like[aria-pressed="true"] svg path { fill: var(--accent); stroke: var(--accent); }
.bx-like[aria-pressed="true"] b { color: inherit; }
.bx-like:disabled { cursor: default; }
@media (hover: hover) and (pointer: fine) { .bx-like:hover { border-color: var(--heading); } }
.bx-engage__title { margin-top: 32px; font-size: clamp(1.6rem, 5vw, 2rem); }
.bx-engage__title span { color: var(--muted); }
.bx-engage__form { margin-top: 16px; }
.bx-comment-form { display: grid; gap: 12px; }
.bx-comment-form .bx-btn { justify-self: start; }
.bx-comment-form .bx-alert { margin: 0; }
.bx-field textarea { display: block; width: 100%; min-height: 96px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--heading); font: inherit; font-size: 1rem; line-height: 1.5; resize: vertical; caret-color: var(--accent); }
.bx-field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.bx-comments { list-style: none; margin: 24px 0 0; padding: 0; }
.bx-comment { padding: 18px 0; border-top: 1px solid var(--line); }
.bx-comment__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.bx-comment__head strong { font-weight: 700; color: var(--heading); }
.bx-comment__head time { font-size: .76rem; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--gold); }
.bx-comment__body { margin-top: 6px; font-family: var(--serif); font-size: 1.04rem; line-height: 1.6; color: var(--text); white-space: pre-line; overflow-wrap: anywhere; }
.bx-comment__del { margin-top: 8px; padding: 0; background: none; border: 0; font: inherit; font-size: .76rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); cursor: pointer; }
.bx-comment__del:hover { color: #b3261e; }
.bx-engage__empty { margin-top: 20px; color: var(--muted); }

/* ---------- login com Google e Facebook ---------- */
.bx-socials { display: grid; gap: 10px; margin-top: 22px; }
.bx-social { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 50px; padding: 10px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; color: var(--heading); font-weight: 600; font-size: .98rem; text-decoration: none; transition: border-color .2s, background-color .2s, transform .16s var(--ease); }
.bx-social:active { transform: scale(.98); }
.bx-social svg { flex: none; }
@media (hover: hover) and (pointer: fine) { .bx-social:hover { border-color: var(--heading); } }
.bx-or { display: flex; align-items: center; gap: 12px; margin: 22px 0 -6px; font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.bx-or::before, .bx-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
