/* ==========================================================================
   JORNAL A VERDADE — Folha de estilo única (sem frameworks, sem webfonts)
   Identidade: vermelho combativo, preto sóbrio, papel jornal.
   Mobile-first, 0 requisições externas, foco em LCP/CLS.
   ========================================================================== */

:root {
  --red: #c4172b;
  --red-dark: #8c0d1c;
  --red-soft: #f6e7e8;
  --ink: #141414;
  --ink-2: #2b2b2b;
  --ink-3: #55524d;
  --paper: #fbf7f0;
  --paper-2: #f2ece1;
  --white: #ffffff;
  --line: rgba(20, 20, 20, 0.14);
  --line-strong: rgba(20, 20, 20, 0.85);
  /* Divisórias editoriais: o filete ENTRE blocos é o mais definido; a linha
     interna do comentário é deliberadamente mais leve que ele. */
  --divider-block: rgba(0, 0, 0, 0.18);
  --divider-soft: rgba(0, 0, 0, 0.08);
  /* Folga à direita do título para o botão flutuante Salvar nunca cobri-lo. */
  --card-save-clearance: 108px;

  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
    Georgia, "Times New Roman", serif;
  --font-body: Georgia, "Times New Roman", serif;
  --font-ui: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 2px;
  --shadow-1: 0 1px 0 rgba(20, 20, 20, 0.06);
  --shadow-2: 0 18px 40px -24px rgba(20, 20, 20, 0.45);
  --wrap: 1180px;
  --gap: clamp(14px, 3vw, 28px);
  --tap: 44px;

  /* Fundo do rodapé e folga da tabbar fixa. O rodapé absorve essa folga para
     que o preto chegue até a base do documento, sem faixa clara descolada. */
  --footer-bg: #0d0d0d;
  --tabbar-clearance: calc(78px + env(safe-area-inset-bottom));
}

/* ---------- reset enxuto ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

/* O canvas herda o preto do rodapé: em páginas curtas (abas Salvas,
   Notificações e Redação) a base da tela continua escura, sem faixa clara
   aparecendo por baixo do rodapé. O papel do jornal é pintado pelo body. */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--footer-bg); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* O atributo `hidden` vence qualquer display definido por componente. */
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
  border-radius: 2px;
}

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

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- barra utilitária ---------- */
.utility {
  background: var(--ink);
  color: #efe9de;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.utility__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 16px;
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.utility__date { color: #cfc8bb; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.utility__edition { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.utility .btn { padding: 8px 14px; font-size: 0.74rem; }
@media (max-width: 719px) {
  .utility__date, .utility__dot { display: none; }
  .utility__inner {
    flex-wrap: wrap;
    gap: 6px 8px;
    padding: 6px 10px;
    min-height: 52px;
  }
  .utility__actions {
    margin-left: 0;
    width: 100%;
    gap: 6px;
    justify-content: space-between;
  }
  .utility .btn { padding: 7px 10px; font-size: 0.66rem; }
  .utility .btn--entrar { padding-inline: 14px; }
  .label-full { display: none; }
}
@media (min-width: 720px) {
  .label-short { display: none; }
}
.utility__dot { width: 3px; height: 3px; background: var(--red); flex: 0 0 auto; }
.utility__edition { color: #cfc8bb; white-space: nowrap; }
.utility__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.utility__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d7f5e2;
  white-space: nowrap;
}
.utility__status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #37d67a;
  flex: 0 0 auto;
}
.utility__status[hidden] { display: none; }
@media (max-width: 719px) {
  .utility__status { font-size: 0.6rem; letter-spacing: 0.04em; }
}

/* ---------- botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn--entrar {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
  padding-inline: 22px;
}
.btn--entrar:hover { background: var(--red-dark); border-color: var(--red-dark); }
/* selo de assinante ativo na barra superior */
.btn--entrar[data-mode="active"] {
  background: transparent;
  color: #ffd9dd;
  border-color: var(--red);
}
.btn--solid {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn--solid:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--outline:hover { background: var(--ink); color: var(--paper); }
.btn--ghost {
  background: transparent;
  color: #efe9de;
  border-color: rgba(255, 255, 255, 0.28);
}
.btn--ghost:hover { border-color: #efe9de; }
.btn--block { width: 100%; }
.btn[hidden] { display: none; }

/* ---------- cabeçalho / logotipo oficial ---------- */
.masthead {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(22px, 4.5vw, 40px) 16px clamp(16px, 2.6vw, 26px);
  text-align: center;
}
.masthead__brand {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
}
.masthead__brand-link {
  display: inline-block;
  max-width: 100%;
  line-height: 0;
  border-radius: 0;
}
.masthead__brand-link:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 6px;
}
.masthead__logo {
  display: block;
  width: clamp(240px, 85vw, 640px);
  height: auto;
  aspect-ratio: 3840 / 769;
  border-radius: 0;
  object-fit: contain;
  box-shadow: none;
}
.masthead__tagline {
  margin-top: clamp(16px, 2.6vw, 22px);
  font-family: var(--font-ui);
  font-size: clamp(0.62rem, 1.5vw, 0.72rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.masthead__demand {
  margin: 14px auto 0;
  max-width: 620px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--ink-2);
}

/* ---------- editorias (sticky) ---------- */
.sections {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 247, 240, 0.96);
  backdrop-filter: blur(6px);
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--line-strong);
}
.sections__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 8px;
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  mask-image: linear-gradient(to right, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, #000 92%, transparent 100%);
}
.sections__inner::-webkit-scrollbar { display: none; }
.sections a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 14px;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}
.sections a:hover,
.sections a:focus-visible { color: var(--red); border-bottom-color: var(--red); }
.sections a.nav-eixo--highlight {
  color: var(--red);
  font-weight: 800;
}
.sections a.nav-eixo--highlight:hover,
.sections a.nav-eixo--highlight:focus-visible { color: var(--red-dark); }

/* ---------- estrutura ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }

/* Evita o flash de conteúdo protegido antes do boot do JavaScript. */
body.gate-closed > :not(.landing-gate):not(script):not(noscript) { visibility: hidden; }

/* ---------- manchete ---------- */
.lead {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
  padding-top: clamp(18px, 3vw, 30px);
  padding-bottom: var(--gap);
}
@media (max-width: 420px) {
  .masthead { padding-inline: 12px; }
  .masthead__logo { width: clamp(112px, 34vw, 140px); }
  .masthead__tagline { font-size: 0.6rem; letter-spacing: 0.1em; }
  .masthead__demand { font-size: 0.74rem; }
  .sections a { padding: 0 11px; font-size: 0.7rem; }
}

@media (min-width: 900px) {
  .lead { grid-template-columns: minmax(0, 2.05fr) minmax(280px, 1fr); }
}

.story { text-decoration: none; display: block; }
.story[hidden] { display: none; }
.story__media,
.lead__media {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  aspect-ratio: 16 / 9;
  border-top: 4px solid var(--red);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
}
.story__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.story:hover .story__media img { transform: scale(1.025); }
.story__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}
.story__kicker::before { content: ""; width: 18px; height: 2px; background: var(--red); }
.story__title {
  margin-top: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 4.6vw, 2.9rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
}
.story:hover .story__title { color: var(--red); }
.story__dek {
  margin-top: 10px;
  font-size: clamp(0.98rem, 1.6vw, 1.08rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 62ch;
}
.story__meta {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--ink-3);
  letter-spacing: 0.03em;
}

/* ---------- seções ---------- */
.section { padding: clamp(22px, 4vw, 40px) 0; border-top: 1px solid var(--line); scroll-margin-top: 58px; }
#capa, #assine { scroll-margin-top: 58px; }
.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px 20px;
  margin-bottom: 18px;
}
.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.section__kicker {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
}
.section__link {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 2px solid var(--red);
  padding-bottom: 3px;
}
.section__link:hover { color: var(--red); }

/* ---------- cadernos editoriais: cartões de largura total ---------- */
/* A capa é uma edição impressa, não um mosaico de portal: cada matéria ocupa
   a largura do caderno, com respiro de jornal e leitura de fôlego. */
.grid {
  display: flex;
  flex-direction: column;
  gap: clamp(26px, 4.2vw, 46px);
}
.grid--2 { gap: clamp(22px, 3.4vw, 36px); }

.card { border-top: 2px solid var(--ink); padding-top: 12px; }
.card__link { display: block; text-decoration: none; }
.card__body { min-width: 0; }
/* Fotojornalismo: enquadramento 16:9 widescreen, recorte fotográfico,
   cantos arredondados e sombra suave em todos os cards. */
.card__media {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  margin-bottom: 10px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  isolation: isolate;
}
.card__media img,
.card__thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: saturate(1.02) contrast(1.02);
}
.card__link:hover .card__media img,
.card__link:hover .card__thumb { transform: scale(1.04); filter: saturate(1.06) contrast(1.04); }
/* Só a foto real de reportagem recebe o destaque editorial: filete vermelho
   e sombra mais profunda. Pôsteres e ilustrações ficam no ritmo padrão. */
.card--photo { border-top-color: var(--red); }
.card--photo .card__media { box-shadow: var(--shadow-2); }
/* Vídeo e podcast herdam o mesmo filete vermelho das matérias em texto:
   identidade visual única em todos os formatos do caderno. */
.card--media { border-top-color: var(--red); }
.card__kicker {
  font-family: var(--font-ui);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}
.card__title {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: clamp(1.32rem, 2.1vw, 1.62rem);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.card__link:hover .card__title { color: var(--red); }

/* selo de UF no feed regional — alto contraste, alinhado ao título */
.badge-uf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.1em;
  margin-right: 0.42em;
  padding: 0.08em 0.4em;
  border-radius: var(--radius);
  background: var(--red);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 0.62em;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
  vertical-align: 0.14em;
}
.card__excerpt {
  margin-top: 8px;
  font-size: 1rem;
  line-height: 1.58;
  color: var(--ink-2);
  max-width: 68ch;
}
.card__meta {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  font-family: var(--font-ui);
  font-size: 0.73rem;
  color: var(--ink-3);
  letter-spacing: 0.03em;
}

/* selo de UF/editoria */
.tag-special {
  display: inline-flex;
  padding: 2px 7px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.empty {
  padding: 26px 18px;
  border: 1px dashed var(--line-strong);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--ink-3);
  text-align: center;
}

/* ---------- edições ---------- */
.editions {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
}
.edition {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 0;
}
.edition.is-current { border-color: var(--red); box-shadow: var(--shadow-1); }
.edition__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.edition__link:hover .edition__title,
.edition__link:focus-visible .edition__title { color: var(--red-dark); }
.edition__link:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.edition .tag-current {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
}
.edition__cover {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 150px;
  padding: 16px;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}
.edition__cover::after {
  content: "";
  position: absolute;
  inset: auto -30% -60% 40%;
  height: 220px;
  background: radial-gradient(circle at center, rgba(196, 23, 43, 0.55), transparent 62%);
  pointer-events: none;
}
.edition__number {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.03em;
}
.edition__number small {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #b9b2a6;
  margin-bottom: 4px;
}
.edition__body { padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.edition__title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; line-height: 1.2; }
.edition__note { font-size: 0.85rem; color: var(--ink-3); line-height: 1.45; }
.edition__meta {
  margin-top: auto;
  padding-top: 8px;
  font-family: var(--font-ui);
  font-size: 0.73rem;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
}

/* ---------- manifesto ---------- */
.manifesto {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(34px, 6vw, 64px) 16px;
  position: relative;
  overflow: hidden;
}
.manifesto::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: var(--red);
}
.manifesto__inner { max-width: 780px; margin: 0 auto; text-align: center; }
.manifesto__kicker {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ff8b98;
}
@media (max-width: 420px) { .manifesto__kicker { font-size: 0.64rem; letter-spacing: 0.1em; } }
.manifesto h2 {
  margin: 14px 0 16px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4.4vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
}
.manifesto h2 em { font-style: normal; color: #ff8b98; }
.manifesto p {
  max-width: 62ch;
  margin: 0 auto 22px;
  font-size: 1rem;
  line-height: 1.6;
  color: #d9d2c6;
}
.manifesto .btn { min-height: 50px; padding-inline: 28px; }
.manifesto p.manifesto__note {
  margin: 14px auto 0;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: #9d968a;
}

/* ---------- rodapé ---------- */
.footer {
  background: var(--footer-bg);
  color: #a9a296;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  /* O padding inferior inclui a folga da tabbar e a margem negativa consome a
     mesma folga do body: o fundo escuro se estende até a base do documento e
     a tabbar flutua sobre ele, sem linha/faixa branca no rodapé. */
  padding: 36px 16px calc(28px + var(--tabbar-clearance));
  margin-bottom: calc(-1 * var(--tabbar-clearance));
}
.footer__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  gap: 24px;
  /* TICKET-JAV-39: quatro colunas (marca, eixos, JAV na rede e movimentos
     sociais). O auto-fit empilha sozinho no celular e deixa 2 colunas no
     tablet; no desktop as quatro colunas ficam lado a lado. */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}
@media (min-width: 980px) {
  .footer__inner { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.footer__movimentos li a { overflow-wrap: break-word; }
.footer h2 {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #efe9de;
  margin-bottom: 10px;
}
.footer a { text-decoration: none; }
.footer a:hover { color: var(--white); text-decoration: underline; }
.footer li { margin-bottom: 2px; }
.footer li a { display: inline-block; padding: 7px 0; }
.section__link { display: inline-block; padding: 8px 0; }
.footer__brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: #efe9de;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.footer__bottom {
  max-width: var(--wrap);
  margin: 26px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.7rem;
  color: #7d776d;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

/* ---------- leitor (matéria) ---------- */
dialog { padding: 0; border: 0; }

.reader {
  position: fixed;
  inset: 0;
  /* Fica acima das editorias fixas (40) e ABAIXO da tabbar (60): a navegação
     inferior continua visível e clicável durante a leitura da matéria. */
  z-index: 50;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
}
.reader::backdrop { background: rgba(10, 10, 10, 0.72); }
.reader__bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  min-height: 54px;
  background: var(--ink);
  color: var(--paper);
}
.reader__home {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border-radius: 2px;
}
.reader__home img {
  display: block;
  height: 32px;
  width: auto;
}
.reader__home:hover { opacity: 0.9; }
.reader__home:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}
.reader__close {
  margin-left: auto;
  width: var(--tap);
  height: var(--tap);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--paper);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}
.reader__close:hover { background: var(--red); border-color: var(--red); }
.reader__scroll {
  height: calc(100% - 54px);
  overflow-y: auto;
  overscroll-behavior: contain;
  /* A tabbar flutua sobre a base do leitor: o respiro final garante que o
     último parágrafo nunca termine encoberto pela barra vermelha. */
  padding: 22px 18px calc(28px + var(--tabbar-clearance));
}
.reader__article { max-width: 720px; margin: 0 auto; }
.reader__kicker {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  padding-bottom: 6px;
  border-bottom: 2px solid var(--red);
}
.reader__title {
  margin: 12px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.reader__dek {
  font-size: clamp(1rem, 2.2vw, 1.14rem);
  line-height: 1.5;
  color: var(--ink-2);
}
.reader__meta {
  margin: 14px 0 0;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: var(--ink-3);
  letter-spacing: 0.03em;
}
.reader__figure { margin: 18px 0; }
.reader__figure img { width: 100%; border-top: 4px solid var(--red); }
.reader__figure figcaption {
  margin-top: 6px;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  color: var(--ink-3);
}
.reader__body { font-size: 1.08rem; line-height: 1.72; }
.reader__body p { margin: 0 0 1em; }
.reader__body h2, .reader__body h3 {
  margin: 1.4em 0 0.5em;
  font-family: var(--font-display);
  line-height: 1.2;
}
.reader__body blockquote {
  margin: 1.2em 0;
  padding: 12px 18px;
  border-left: 4px solid var(--red);
  background: var(--paper-2);
  font-style: italic;
}
.reader__body a { color: var(--red); }
.reader__body ul, .reader__body ol { margin: 0 0 1em 1.2em; list-style: disc; }
.reader__body ol { list-style: decimal; }

/* Íntegra sob demanda (TICKET-JAV-54): o feed abre na hora e o corpo chega
   depois; o leitor mostra um carregamento suave e, em falha de rede, uma
   mensagem com nova tentativa — nunca um bloco vazio. */
.reader__body .article-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-3);
  font-family: var(--font-ui);
  font-size: 0.82rem;
}
.reader__body .article-loading::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  border: 2px solid var(--line);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: reader-spin 0.8s linear infinite;
}
@keyframes reader-spin { to { transform: rotate(360deg); } }
.reader__body .article-error {
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--paper-2);
}
.reader__body .article-error__text { margin: 0 0 10px; color: var(--ink-2); }
.reader__body .article-error__retry { min-height: 40px; }
@media (prefers-reduced-motion: reduce) {
  .reader__body .article-loading::before { animation: none; }
}

.reader__end {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--ink-3);
  line-height: 1.6;
}

/* ---------- Landing Gate (newsletter fechada) ---------- */
.landing-gate {
  width: min(520px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  border-top: 6px solid var(--red);
  box-shadow: var(--shadow-2);
  overflow-y: auto;
}
.landing-gate::backdrop { background: rgba(10, 10, 10, 0.82); backdrop-filter: blur(2px); }
.landing-gate__inner {
  padding: clamp(28px, 6vw, 44px) clamp(22px, 5vw, 36px);
  text-align: center;
}
.landing-gate__logo {
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
  display: block;
  border-radius: 0;
  object-fit: contain;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}
.landing-gate__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 5vw, 2.05rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.landing-gate__subtitle {
  margin: 8px auto 0;
  max-width: 42ch;
  font-family: var(--font-ui);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--red);
}
.landing-gate__info {
  margin: 18px auto 0;
  max-width: 46ch;
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--ink-2);
  text-wrap: pretty;
}
.landing-gate__actions {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

/* ---------- multimídia (vídeo, YouTube e podcast) ---------- */
.media-intro {
  margin-top: 10px;
  max-width: 62ch;
  font-size: 0.95rem;
  color: var(--ink-2);
}
.media-grid {
  display: grid;
  gap: var(--gap);
  margin-top: 18px;
}
.media-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  overflow: hidden;
}
.media-card__video,
.media-card__iframe,
.video-facade {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #111111;
}
.media-card__video { object-fit: cover; height: auto; }
.video-facade {
  position: relative;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
}
.video-facade__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.02);
  transition: transform 0.3s ease, filter 0.3s ease;
}
.video-facade:hover .video-facade__thumb,
.video-facade:focus-visible .video-facade__thumb {
  transform: scale(1.03);
  filter: saturate(1.05) contrast(1.05);
}
.video-facade__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.video-facade__play::before {
  content: "";
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.8);
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.video-facade__play::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  margin-left: 5px;
  border-left: 18px solid var(--white);
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
}
.video-facade:hover .video-facade__play::before { transform: scale(1.08); background: var(--red-dark); }
.video-facade__label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 10px;
  background: rgba(20, 20, 20, 0.86);
  color: var(--paper);
  font-family: var(--font-ui);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.media-card__caption {
  display: grid;
  gap: 3px;
  padding: 12px 14px 14px;
}
.media-card__title {
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.3;
}
.media-card__desc {
  font-family: var(--font-ui);
  font-size: 0.74rem;
  line-height: 1.5;
  color: var(--ink-3);
}
.media-card--audio { padding-top: 10px; }
.media-card--audio .media-card__kicker {
  padding: 0 14px 8px;
  font-family: var(--font-ui);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}
.media-card--error { border-top-color: var(--ink-3); }
.media-empty {
  padding: 18px;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--ink-3);
}

/* ---------- card de vídeo intercalado no feed (TV A Verdade) ---------- */
/* Ocupa a linha inteira da grade: quebra o ritmo de parede de texto e dá
   respiro editorial ao audiovisual a cada bloco de 3 matérias. */
.card--video {
  grid-column: 1 / -1;
  padding: 0;
  border-top: 4px solid var(--red);
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-2);
}
.feed-video__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  padding: 12px 16px 10px;
  border-bottom: 1px solid rgba(251, 247, 240, 0.16);
}
.feed-video__kicker {
  font-family: var(--font-ui);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
}
.feed-video__kicker::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--red);
  vertical-align: 1px;
}
.feed-video__duration {
  font-family: var(--font-ui);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(251, 247, 240, 0.72);
}
.card--video .media-card {
  border: 0;
  background: transparent;
}
.card--video .media-card__caption { padding: 14px 16px 18px; }
.card--video .media-card__title {
  color: var(--paper);
  font-size: clamp(1.1rem, 2.6vw, 1.45rem);
}
.card--video .media-card__desc { color: rgba(251, 247, 240, 0.74); }
.card--video .media-card__video { background: #000000; }

/* Em telas largas o audiovisual vira bloco de duas colunas: player à
   esquerda, título e descrição à direita. */
@media (min-width: 720px) {
  .card--video .media-card {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    align-items: stretch;
  }
  .card--video .media-card__caption {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid rgba(251, 247, 240, 0.14);
  }
}

/* ---------- barra de áudio/podcast ---------- */
/* O player de podcast se integra ao card: sem caixa escura retangular nem
   filete lateral pesado. Só o botão de play permanece como acento vermelho. */
.audio-player {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  background: transparent;
  color: var(--ink);
}
.audio-player__toggle {
  flex: 0 0 auto;
  width: var(--tap);
  height: var(--tap);
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  cursor: pointer;
}
.audio-player__toggle:hover { background: var(--red-dark); }
.audio-player__toggle:disabled { background: var(--ink-3); cursor: not-allowed; }
.audio-player__icon {
  display: block;
  width: 0;
  height: 0;
  margin-left: 4px;
  border-left: 13px solid var(--white);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}
.audio-player.is-playing .audio-player__icon {
  width: 13px;
  height: 15px;
  margin-left: 0;
  border: 0;
  background: linear-gradient(
    to right,
    var(--white) 0 34%,
    transparent 34% 66%,
    var(--white) 66% 100%
  );
}
.audio-player__body { flex: 1 1 auto; min-width: 0; }
.audio-player__title {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}
.audio-player__track {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}
.audio-player__range {
  flex: 1 1 auto;
  min-width: 0;
  height: 24px;
  margin: 0;
  accent-color: var(--red);
  cursor: pointer;
}
.audio-player__time {
  flex: 0 0 auto;
  font-family: var(--font-ui);
  font-size: 0.66rem;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.audio-player__element { display: none; }
.audio-player--error { opacity: 0.72; }
.media-grid .audio-player { margin: 0 14px; }

/* ---------- comentários da classe trabalhadora ---------- */
.comments {
  margin-top: 38px;
  padding-top: 22px;
  border-top: 3px solid var(--ink);
}
.comments__kicker {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
}
.comments__title {
  margin: 6px 0 6px;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  line-height: 1.2;
}
.comments__hint {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--ink-3);
}
.comments__status {
  margin-top: 14px;
  min-height: 1.4em;
  padding: 8px 10px;
  border-left: 3px solid var(--line);
  background: var(--paper-2);
  font-family: var(--font-ui);
  font-size: 0.74rem;
  line-height: 1.45;
  color: var(--ink-3);
}
.comments__status[data-tone="offline"] {
  border-left-color: #b57517;
  background: #fbf1e3;
  color: #6b4a10;
}
.comments__status[data-tone="success"] {
  border-left-color: #1d6b3a;
  background: #e9f4ec;
  color: #14522b;
}
.comments__status[data-tone="error"] {
  border-left-color: var(--red);
  background: var(--red-soft);
  color: var(--red-dark);
}
.comments__list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}
.comment {
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
}
.comment__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
}
.comment__author {
  font-family: var(--font-ui);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.comment__date {
  font-family: var(--font-ui);
  font-size: 0.66rem;
  color: var(--ink-3);
}
.comment__badge {
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--red-soft);
  color: var(--red-dark);
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.comment__text {
  margin-top: 6px;
  font-size: 0.98rem;
  line-height: 1.58;
  overflow-wrap: anywhere;
}
.comment__audio {
  width: 100%;
  height: 38px;
  margin-top: 10px;
  accent-color: var(--red);
}
.comment__audio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.comment__transcribe {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink-2);
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.comment__transcribe:hover,
.comment__transcribe:focus-visible {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.comment__transcribe[disabled] {
  opacity: 0.6;
  cursor: progress;
}
.comment__transcription {
  margin-top: 8px;
  padding: 10px 12px;
  background: var(--paper-2);
  border-left: 3px solid var(--ink);
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--ink-2);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.comment__transcription[data-tone="error"] {
  background: var(--red-soft);
  border-left-color: var(--red);
  color: var(--red-dark);
}
.comment--audio-error .comment__audio { opacity: 0.5; }
.comments__empty {
  padding: 14px;
  border: 1px dashed var(--line);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--ink-3);
}
.comments__empty--comment {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 132px;
  gap: 4px;
  border-left: 3px solid var(--red);
  background: transparent;
}
.comments__empty-title {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}
.comments__empty-text {
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-3);
}
.comment-form {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  padding: 16px;
  background: var(--paper-2);
  border: 1px solid var(--line);
}
.comment-form__field { display: grid; gap: 6px; }
/* A identificação manual do comentarista não é exibida: o autor é atribuído
   automaticamente pela sessão ativa do assinante. */
.comment-form__field[hidden],
.comment-form__field[hidden] * { display: none !important; }
.comment-form__label {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.comment-form__input,
.comment-form__textarea {
  width: 100%;
  min-height: var(--tap);
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  line-height: 1.5;
}
.comment-form__textarea { min-height: 108px; resize: vertical; }
.comment-form__input:focus-visible,
.comment-form__textarea:focus-visible { outline: 3px solid var(--red); outline-offset: 1px; }
.comment-form__error {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  color: #a3141f;
}
.comment-form__voice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.comment-form .btn--ghost {
  color: var(--ink);
  border-color: var(--line-strong);
}
.comment-form .btn--ghost:hover { background: var(--ink); color: var(--paper); }
.comment-form__record-status {
  flex: 1 1 160px;
  min-height: 1.2em;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--ink-3);
}
.comment-form__record-status[data-tone="recording"] {
  color: var(--red-dark);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.comment-form__record-status[data-tone="success"] { color: #14522b; font-weight: 700; }
.comment-form__record-status[data-tone="error"] { color: #a3141f; font-weight: 700; }
#comment-record.is-recording {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  animation: record-pulse 1.4s ease-in-out infinite;
}
@keyframes record-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(196, 23, 43, 0.35); }
  50% { box-shadow: 0 0 0 8px rgba(196, 23, 43, 0); }
}
.comment-form__preview {
  display: grid;
  gap: 8px;
  padding: 10px;
  background: var(--white);
  border: 1px dashed var(--red);
}
.comment-form__preview-label {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red-dark);
}
.comment-form__preview audio { width: 100%; height: 38px; accent-color: var(--red); }

.comment-form__contact {
  display: grid;
  gap: 8px;
  padding-top: 4px;
}
.comment-form__contact-title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}
.comment-form__contact-lead {
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-3);
}
.comment-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ink-2);
  cursor: pointer;
}
.comment-form__consent input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  accent-color: var(--red);
  cursor: pointer;
}
.comment-form__consent:focus-within {
  outline: 3px solid var(--red);
  outline-offset: 1px;
}
.comment-form__contact-field { margin-top: 2px; }
.comment-form__hint {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  line-height: 1.45;
  color: var(--ink-3);
}

.reader__media {
  display: grid;
  gap: 14px;
  margin: 18px 0 6px;
}
.reader__media .media-card { border-top-width: 4px; }

@media (min-width: 720px) {
  .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .comment-form { padding: 20px; }
}
@media (min-width: 1040px) {
  .media-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 400px) {
  .audio-player { gap: 9px; padding: 10px; }
  .audio-player__time { display: none; }
}

/* ---------- toast / aviso flutuante ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translate(-50%, 20px);
  z-index: 80;
  max-width: min(92vw, 460px);
  padding: 12px 16px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  line-height: 1.4;
  box-shadow: var(--shadow-2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast[data-open="true"] { opacity: 1; transform: translate(-50%, 0); }

/* ---------- esqueleto de carregamento ---------- */
.skeleton {
  background: linear-gradient(90deg, var(--paper-2) 25%, #e9e2d5 50%, var(--paper-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }
.skeleton--lead { aspect-ratio: 16 / 9; width: 100%; }
.skeleton--line { height: 14px; margin-top: 10px; }
.skeleton--line.short { width: 62%; }

/* ==========================================================================
   EDIÇÃO IMERSIVA — cadernos, voz da classe e leitor (TICKET-JAV-13)
   ========================================================================== */

/* Cadernos: cabeçalho de jornal com filete duplo e numeração editorial. */
.section--caderno { padding-top: clamp(28px, 5vw, 52px); }
.section--caderno .section__head {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-strong);
}
.section--caderno .section__kicker {
  font-size: 0.66rem;
  letter-spacing: 0.22em;
}
.section--caderno .section__title {
  font-size: clamp(1.55rem, 3.6vw, 2.35rem);
  letter-spacing: -0.018em;
}

/* Cartão amplo: no desktop a foto abre a coluna da esquerda e o texto
   respira na direita, como a diagramação de uma página de jornal. */
/* Duas diagramações equilibradas no desktop:
   - lateral: foto e coluna de texto/comentário com a MESMA altura; a imagem
     ocupa a célula inteira com object-fit: cover, sem sobra branca abaixo.
   - below: foto + resumo no bloco superior e o comentário em largura total
     abaixo, ideal para títulos longos ou fotos panorâmicas. */
@media (min-width: 880px) {
  .card--layout-lateral .card__link {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    column-gap: clamp(22px, 3.4vw, 46px);
    align-items: stretch;
  }
  .card--layout-lateral .card__media {
    grid-column: 1;
    grid-row: 1;
    position: relative;
    height: 100%;
    min-height: 0;
    margin-bottom: 0;
    aspect-ratio: auto;
  }
  .card--layout-lateral .card__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  .card--layout-lateral .card__body {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
  }
  .card--layout-lateral .card__title { margin-top: 8px; }
  .card--layout-lateral .reader-comment-rotation,
  .card--layout-lateral .reader-comment--empty { margin-top: auto; }
  .card--layout-lateral .card__meta { margin-top: 10px; }

  /* Variante B: foto + resumo em duas colunas (cabe na viewport) e o
     comentário em largura total logo abaixo do bloco. */
  .card--layout-below .card__link {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    column-gap: clamp(22px, 3.4vw, 46px);
    align-items: stretch;
  }
  .card--layout-below .card__media {
    grid-column: 1;
    grid-row: 1;
    position: relative;
    height: 100%;
    min-height: 0;
    margin-bottom: 0;
    aspect-ratio: auto;
  }
  .card--layout-below .card__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  .card--layout-below .card__body {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
  }
  .card--layout-below .reader-comment-rotation,
  .card--layout-below .reader-comment--empty,
  .card--layout-below .reader-comment { width: 100%; }
  .card--layout-below .reader-comment-rotation,
  .card--layout-below .reader-comment--empty {
    margin-top: 16px;
    /* O layout below não reserva slot fixo: o card cresce pelo conteúdo. */
    min-height: auto;
  }

  /* O botão Salvar flutua fixo no topo direito do card. No desktop o título
     da coluna de texto começa nessa mesma faixa: reserva a largura do botão
     para que títulos longos quebrem ANTES dele, sem sobreposição. */
  .card--layout-lateral:not(.card--media) .card__kicker,
  .card--layout-lateral:not(.card--media) .card__title,
  .card--layout-below:not(.card--media) .card__kicker,
  .card--layout-below:not(.card--media) .card__title {
    padding-right: var(--card-save-clearance);
  }
}

/* ---------- comentário de leitor em destaque ---------- */
/* Voz do leitor integrada ao papel do jornal: sem caixa branca dura.
   Avatar, identidade e balão de fala com separador suave. */
.reader-comment {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 18px;
  padding: 14px 0 2px;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--divider-soft);
  border-radius: 0;
  box-shadow: none;
}

/* Debate vivo: as vozes ocupam a MESMA célula do grid, com fade CSS limpo.
   A célula assume a altura da maior fala, então a troca não pula o layout. */
.reader-comment-rotation {
  display: grid;
  margin-top: 18px;
  min-height: 196px;
}
.reader-comment-rotation > .reader-comment {
  grid-area: 1 / 1;
  margin-top: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}
.reader-comment-rotation > .reader-comment.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
@media (prefers-reduced-motion: reduce) {
  .reader-comment-rotation > .reader-comment { transition: none; }
}

/* Estado vazio: ocupa o mesmo slot do debate para não abrir buraco. */
.reader-comment--empty {
  min-height: 196px;
  justify-content: flex-start;
}
/* No layout below não existe slot fixo: elimina o vazio vertical de 196px
   tanto nas matérias de texto quanto nos eixos multimídia. */
.card--layout-below .reader-comment-rotation,
.card--layout-below .reader-comment--empty { min-height: auto; }
.reader-comment--empty .reader-comment__bubble {
  background: transparent;
  border-style: dashed;
}
.reader-comment__empty-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}
.reader-comment__empty-text {
  margin-top: 6px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-3);
}

/* Convite ativo e evidente para o leitor entrar no debate. Ele vive no
   cabeçalho do comentário, à direita da autoria — sem linha pontilhada. */
.card__debate-invite {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  font-family: var(--font-ui);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.35;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: var(--red);
}
.card__debate-invite::after {
  content: "→";
  flex: 0 0 auto;
  font-size: 1rem;
  line-height: 1;
}
.card__debate-invite:hover,
.card__debate-invite:focus-visible {
  color: var(--red-dark);
  text-decoration: underline;
}
.reader-comment__avatar {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 50%;
  border: 2px solid var(--red-soft);
  background: var(--paper-2);
}
.reader-comment__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.reader-comment__body {
  flex: 1 1 auto;
  min-width: 0;
}
.reader-comment__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 10px;
}
.reader-comment__identity {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  line-height: 1.3;
  color: var(--ink-3);
  min-width: 0;
}
.reader-comment__name {
  color: var(--ink);
  font-weight: 800;
}
.reader-comment__meta {
  color: var(--ink-3);
}
.reader-comment__bubble {
  position: relative;
  margin-top: 9px;
  padding: 11px 14px 12px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 2px 12px 12px 12px;
}
.reader-comment__bubble::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -8px;
  width: 8px;
  height: 12px;
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  clip-path: polygon(100% 0, 100% 100%, 0 0);
}
.reader-comment__text {
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-style: normal;
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
}
@media (max-width: 460px) {
  .reader-comment { gap: 10px; padding: 12px 0 2px; }
  .reader-comment__avatar { width: 36px; height: 36px; }
}

/* ---------- identificação automática do comentarista ---------- */
.comment-form__subscriber-badge {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 16px;
  padding: 12px 14px;
  background: var(--paper-2);
  border-left: 4px solid var(--ink);
}
.subscriber-badge__tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.subscriber-badge__name {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--ink-2);
}
.subscriber-badge__name strong { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   EDIÇÃO PERIÓDICA — faixa, eixos temáticos e mídias intercaladas (JAV-14)
   ========================================================================== */

/* Faixa da edição: tipografia sóbria de jornal impresso, logo acima da
   primeira matéria. O número só aparece quando há edição real publicada. */
.edition-banner {
  margin: clamp(16px, 3vw, 28px) 0 0;
  background: var(--ink);
  color: var(--paper);
  border-top: 4px solid var(--red);
  border-bottom: 1px solid rgba(251, 247, 240, 0.18);
  box-shadow: var(--shadow-2);
}
.edition-banner__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  padding: clamp(16px, 3vw, 26px) 16px;
  text-align: center;
}
.edition-banner__number {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3vw, 1.65rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.2;
}
.edition-banner__rule {
  width: 44px;
  height: 2px;
  flex: 0 0 auto;
  background: var(--red);
}
.edition-banner__date {
  font-family: var(--font-ui);
  font-size: clamp(0.68rem, 1.6vw, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(251, 247, 240, 0.78);
}

/* Fluxo vertical dos eixos: um caderno por eixo, sem mosaico de portal.
   A divisória entre blocos é a mais definida da página, em texto e mídia. */
.thematic-feed { display: flex; flex-direction: column; }
.eixo { border-top: 1px solid var(--divider-block); }
.eixo:first-child { border-top: 0; }
.eixo__description {
  margin-top: 6px;
  max-width: 62ch;
  font-family: var(--font-ui);
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--ink-3);
}
.eixo__lead-body { display: block; }
.eixo--lead { padding-top: clamp(12px, 2vw, 18px); }
.eixo--lead .card--featured { border-top-width: 4px; }
.eixo--lead .card--featured .card__title {
  font-size: clamp(1.75rem, 4.6vw, 2.85rem);
  line-height: 1.07;
}
.eixo--lead .card--featured .card__excerpt {
  font-size: clamp(1rem, 1.8vw, 1.12rem);
}
.eixo__empty {
  padding: 18px 0;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--ink-3);
}

/* Multimídia NATIVA nos eixos: o player real substitui a capa estática.
   O bloco de mídia fica fora do <a> para que play/range/iframe funcionem. */
.card--media .card__link { display: block; }

.card--media .card__media {
  position: static;
  height: auto;
  aspect-ratio: 16 / 9;
  margin-bottom: 12px;
}

.card--media .card__media .media-card {
  height: 100%;
  margin: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.card--media .card__media .media-card--video,
.card--media .card__media .media-card__video,
.card--media .card__media .media-card__iframe,
.card--media .card__media .video-facade { height: 100%; }

.card--media .card__media img {
  position: static;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Eixo de podcast: painel de áudio com respiro, sem caixa 16:9 vazia. */
.card--media-audio .card__media {
  aspect-ratio: auto;
  padding: 12px 0 6px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
}

.card--media-audio .card__media .media-card { height: auto; }

.card--media-audio .card__media .audio-player { margin: 0 14px; }

.card--media-audio .card__media .media-card__kicker {
  margin: 0 14px 6px;
}

/* Fim da edição: comunicado fraterno + chamado político à UP. */
.edition-closing {
  margin: clamp(32px, 5vw, 56px) 0 12px;
  background: var(--ink);
  color: var(--paper);
  border-top: 5px solid var(--red);
  border-bottom: 1px solid rgba(251, 247, 240, 0.18);
}
.edition-closing__inner {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(28px, 4.6vw, 50px) clamp(18px, 4vw, 28px);
  text-align: center;
}
.edition-closing__kicker {
  display: inline-block;
  color: #f0b3bd;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.edition-closing__title {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.2vw, 2.7rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.01em;
}
.edition-closing__text,
.edition-closing__call {
  margin-top: 14px;
  font-size: 1.02rem;
  line-height: 1.62;
  color: rgba(251, 247, 240, 0.86);
  text-wrap: pretty;
}
.edition-closing__call {
  color: var(--paper);
  font-weight: 600;
}
.edition-closing__cta {
  margin-top: 22px;
  min-height: 50px;
  padding-inline: 26px;
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}
.edition-closing__cta:hover,
.edition-closing__cta:focus-visible {
  background: var(--white);
  border-color: var(--white);
  color: var(--ink);
}
.edition-closing__note {
  margin-top: 14px;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: rgba(251, 247, 240, 0.62);
}


/* ==========================================================================
   TABBAR, SALVAS OFFLINE, NOTIFICAÇÕES E CANAL COM A REDAÇÃO (JAV-19)
   ========================================================================== */

/* Folga da tabbar fixa. O rodapé consome a mesma medida (--tabbar-clearance)
   em padding + margem negativa, levando o preto até a base do documento. */
body { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }

.tab-panel[hidden] { display: none !important; }
.tab-panel.is-active { animation: panel-in 0.28s ease both; }
@keyframes panel-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tab-panel.is-active { animation: none; }
}

body[data-tab="salvas"] .sections,
body[data-tab="notificacoes"] .sections,
body[data-tab="redacao"] .sections { display: none; }

/* Barra inferior fixa, tátil e acessível. */
.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 5px max(8px, env(safe-area-inset-left)) calc(5px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-right));
  background: rgba(20, 20, 20, 0.97);
  border-top: 2px solid var(--red);
  box-shadow: 0 -8px 24px rgba(20, 20, 20, 0.22);
  backdrop-filter: blur(10px);
}
.tabbar__inner {
  max-width: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
}
.tabbar__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 54px;
  padding: 4px 2px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(251, 247, 240, 0.62);
  font-family: var(--font-ui);
  font-size: 0.59rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.18s ease, background-color 0.18s ease;
}
.tabbar__item:hover,
.tabbar__item:focus-visible {
  color: var(--paper);
  background: rgba(255, 255, 255, 0.07);
  outline: none;
}
.tabbar__item.is-active { color: var(--white); }
.tabbar__item.is-active .tabbar__icon { color: var(--red); }
.tabbar__icon { display: inline-flex; }
.tabbar__icon svg { display: block; width: 22px; height: 22px; }
.tabbar__label { line-height: 1.1; }
.tabbar__badge {
  position: absolute;
  top: 3px;
  left: calc(50% + 8px);
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  border: 1px solid rgba(20, 20, 20, 0.8);
}

@media (min-width: 720px) {
  .tabbar {
    left: 50%;
    right: auto;
    width: min(620px, calc(100% - 32px));
    transform: translateX(-50%);
    border: 2px solid var(--red);
    border-bottom: 0;
    border-radius: 16px 16px 0 0;
  }
}

/* Painéis das abas */
.tab-panel__wrap { padding-top: clamp(22px, 3.4vw, 38px); padding-bottom: clamp(30px, 5vw, 56px); }
.panel-head { margin-bottom: clamp(18px, 3vw, 28px); }
.panel-head__lead {
  margin-top: 8px;
  max-width: 62ch;
  font-family: var(--font-ui);
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--ink-3);
}
.panel-head__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* Botão de salvar no card e no leitor */
.card { position: relative; }
.card__save {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.78);
  color: var(--paper);
  font-family: var(--font-ui);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(5px);
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.card__save svg { width: 16px; height: 16px; }
.card__save:hover,
.card__save:focus-visible { background: var(--red); border-color: var(--red); color: var(--white); }
.card__save.is-saved { background: var(--red); border-color: var(--red); color: var(--white); }

/* No mobile o botão Salvar desce em relação ao topo do card: ganha respiro
   vertical sobre a foto e deixa de disputar o filete superior. O desktop
   (>= 880px) mantém a ancoragem original em `top: 10px`. */
@media (max-width: 879px) {
  .card__save { top: 26px; }
}

.reader__save {
  margin-left: auto;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: var(--paper);
  font-family: var(--font-ui);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.reader__save:hover,
.reader__save:focus-visible { background: var(--red); border-color: var(--red); }
.reader__save.is-saved { background: var(--red); border-color: var(--red); }
.reader__close { margin-left: 0; }

/* Salvas */
.saved-list { display: flex; flex-direction: column; }
.saved-item {
  display: grid;
  grid-template-columns: minmax(0, 150px) minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.saved-item__media {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink);
  box-shadow: var(--shadow-1);
}
.saved-item__media img { display: block; width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.saved-item__kicker {
  font-family: var(--font-ui);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
}
.saved-item__title {
  margin-top: 5px;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  line-height: 1.12;
}
.saved-item__excerpt {
  margin-top: 7px;
  font-size: 0.94rem;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 70ch;
}
.saved-item__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
@media (max-width: 560px) {
  .saved-item { grid-template-columns: 92px minmax(0, 1fr); gap: 11px; }
  .saved-item__title { font-size: 1.08rem; }
  .saved-item__excerpt { display: none; }
}

/* Notificações */
.notifications-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-left: 3px solid transparent;
  background: transparent;
}
.notification-item.is-unread { border-left-color: var(--red); background: var(--paper-2); }
.notification-item__main {
  flex: 1 1 auto;
  display: block;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.notification-item__title {
  display: block;
  font-family: var(--font-body);
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}
.notification-item__meta {
  display: block;
  margin-top: 3px;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  color: var(--ink-3);
}
.notification-item__excerpt {
  display: block;
  margin-top: 5px;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--ink-3);
}
.notification-item__dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--red);
}

/* Chat / DM com a Redação (TICKET-JAV-26) */
.chat {
  display: flex;
  flex-direction: column;
  max-width: 820px;
  min-height: min(72vh, 720px);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  border-radius: var(--radius);
  overflow: hidden;
}
.chat__header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.chat__avatar {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 12px;
  overflow: hidden;
  background: var(--red);
}
.chat__avatar img { display: block; width: 100%; height: 100%; }
.chat__identity { min-width: 0; }
.chat__title {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  line-height: 1.2;
}
.chat__status { margin-top: 4px; font-size: 0.82rem; line-height: 1.45; color: var(--ink-3); }
.chat__log {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  max-height: 52vh;
  overflow-y: auto;
  background: var(--paper-2);
}
.chat__msg { display: flex; gap: 8px; align-items: flex-end; max-width: 86%; }
.chat__msg--reader { align-self: flex-end; flex-direction: row-reverse; }
.chat__msg--newsroom { align-self: flex-start; }
.chat__msg-avatar {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 10px;
  overflow: hidden;
  background: var(--red);
}
.chat__msg-avatar img { display: block; width: 100%; height: 100%; }
.chat__bubble {
  padding: 10px 13px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 2px 14px 14px 14px;
  box-shadow: var(--shadow-1);
}
.chat__msg--reader .chat__bubble {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  border-radius: 14px 2px 14px 14px;
}
.chat__text {
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.5;
  color: inherit;
  text-wrap: pretty;
  overflow-wrap: anywhere;
}
.chat__photo { display: block; max-width: 100%; max-height: 220px; margin-top: 8px; border-radius: 8px; }
.chat__audio { display: block; width: 100%; margin-top: 8px; }
.chat__attachment {
  display: inline-block;
  margin-top: 6px;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: inherit;
  text-decoration: underline;
}
.chat__time {
  margin-top: 6px;
  font-family: var(--font-ui);
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  text-align: right;
}
.chat__msg--reader .chat__time { color: rgba(251, 247, 240, 0.68); }
.chat__state--error { color: #ffd0d0; font-weight: 800; }
.chat__composer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.chat__settings { font-family: var(--font-ui); font-size: 0.72rem; color: var(--ink-3); }
.chat__settings summary {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  cursor: pointer;
}
.chat__settings-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  padding: 8px 0 4px;
}
.chat__settings select.comment-form__input { appearance: auto; background: var(--white); }
.chat__attachments { display: flex; flex-wrap: wrap; gap: 8px; }
.chat__row { display: flex; align-items: flex-end; gap: 6px; }
.chat__input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  max-height: 140px;
  padding: 10px 12px;
  resize: none;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--ink);
}
.chat__input:focus-visible { outline: 3px solid var(--red); outline-offset: 1px; }
.chat__icon,
.chat__send {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--ink);
  cursor: pointer;
}
.chat__icon svg,
.chat__send svg { width: 20px; height: 20px; }
.chat__icon:hover,
.chat__icon:focus-visible { border-color: var(--red); color: var(--red-dark); }
.chat__icon.is-recording {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  animation: chat-rec 1s infinite alternate;
}
.chat__send { background: var(--red); border-color: var(--red); color: var(--white); }
.chat__send:hover,
.chat__send:focus-visible { background: var(--red-dark); }
.chat__send:disabled { opacity: 0.55; cursor: not-allowed; }
.chat__feedback:empty { display: none; }
.chat__attachment-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  font-family: var(--font-ui);
  font-size: 0.72rem;
}
.chat__attachment-chip img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; }
.chat__attachment-chip audio { width: 160px; height: 32px; }
.chat__attachment-remove {
  border: 0;
  background: transparent;
  color: var(--red-dark);
  font-family: var(--font-ui);
  font-size: 0.66rem;
  font-weight: 800;
  cursor: pointer;
}
@keyframes chat-rec {
  from { box-shadow: 0 0 0 0 rgba(196, 23, 43, 0.5); }
  to { box-shadow: 0 0 0 8px rgba(196, 23, 43, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .chat__icon.is-recording { animation: none; }
}
@media (max-width: 560px) {
  .chat { min-height: calc(100vh - 210px); border-radius: 0; }
  .chat__log { max-height: none; }
  .chat__msg { max-width: 94%; }
  .chat__icon,
  .chat__send { width: 42px; height: 42px; }
}
.comment-form__status {
  font-family: var(--font-ui);
  font-size: 0.74rem;
  line-height: 1.45;
  color: var(--ink-3);
}
.comment-form__status[data-tone="success"] { color: #1f6b3a; font-weight: 700; }
.comment-form__status[data-tone="error"] { color: var(--red-dark); font-weight: 700; }

/* O toast flutua acima da tabbar para não cobrir a navegação. */
.toast { bottom: calc(86px + env(safe-area-inset-bottom)); }

/* ---------- impressão ---------- */
@media print {
  .utility, .sections, .tabbar, .footer, .toast,
  .reader__bar, .paywall, .manifesto__note, .comment-form, .media-grid,
  .reader__media { display: none !important; }
  .edition-banner { background: #fff; color: #000; border-color: #000; box-shadow: none; }
  .edition-banner__date { color: #333; }
  html, body { background: #fff; color: #000; font-size: 11pt; }
  .story__title, .card__title { color: #000; }
  a { text-decoration: none; }
}

/* ---------- debate das mídias (vídeos da TV A Verdade e podcasts) ---------- */
.media-debate {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--divider-soft);
}

.media-debate__button {
  min-height: var(--tap);
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.media-debate__button:hover,
.media-debate__button:focus-visible {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  outline: none;
}

.media-debate__hint {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--ink-3);
}

/* ---------- modal de comentários da mídia ---------- */
.comments-modal {
  width: min(720px, calc(100vw - 24px));
  max-height: min(88vh, 900px);
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}

.comments-modal::backdrop { background: rgba(10, 10, 10, 0.72); }

.comments-modal__inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: min(88vh, 900px);
  overflow-y: auto;
  padding: clamp(18px, 4vw, 30px);
  overscroll-behavior: contain;
}

.comments-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
}

.comments-modal__heading { display: grid; gap: 4px; min-width: 0; }

.comments-modal__target {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--ink-2);
}

.comments-modal__close {
  flex: 0 0 auto;
  width: var(--tap);
  height: var(--tap);
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.comments-modal__close:hover,
.comments-modal__close:focus-visible { background: var(--ink); color: var(--paper); outline: none; }

.comments-modal .comments__list { max-height: none; }

/* Comentários de vídeo/podcast: balões operários com o papel do jornal,
   tipografia de leitura e contraste alto (TICKET-JAV-24). */
.comments-modal .comment {
  padding: 14px 16px 16px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  border-radius: 2px 12px 12px 12px;
  box-shadow: none;
}

.comments-modal .comment__head {
  gap: 4px 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.comments-modal .comment__author {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--ink);
}

.comments-modal .comment__date { color: var(--ink-3); }

.comments-modal .comment__badge {
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink-2);
}

.comments-modal .comment__body { margin-top: 10px; }

.comments-modal .comment__text {
  margin-top: 0;
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.62;
  color: var(--ink-2);
  text-wrap: pretty;
  overflow-wrap: anywhere;
}

.comments-modal .comment__audio { margin-top: 12px; }

.comments-modal .comment__transcription {
  background: var(--paper);
  border-left-color: var(--red);
  color: var(--ink-2);
}

@media (max-width: 480px) {
  .comments-modal { width: calc(100vw - 12px); }
  .comments-modal__inner { padding: 16px; gap: 12px; }
  .media-debate { flex-direction: column; align-items: stretch; }
  .media-debate__button { width: 100%; }
}

/* ---------- destaque regional geolocalizado (TICKET-JAV-22) ---------- */
.regional-highlight {
  margin: clamp(18px, 3vw, 30px) 0;
  padding: clamp(16px, 3vw, 28px);
  border: 1px solid var(--line-strong);
  border-left: 6px solid var(--red);
  background: var(--paper-2);
  box-shadow: var(--shadow-1);
  scroll-margin-top: 58px;
}

.regional-highlight__head {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

.regional-highlight__kicker {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
}

.regional-highlight__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.6vw, 1.6rem);
  line-height: 1.2;
  color: var(--ink);
}

.regional-highlight__hint {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--ink-3);
}

/* O card interno herda o papel do bloco (sem fundo branco bruto). */
/* Seletor explícito de UF: o fuso de Brasília cobre todo o Sudeste e não
   distingue RJ de SP — a escolha manual vence a estimativa. */
.regional-highlight__uf {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.regional-highlight__uf-label {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.regional-highlight__uf-select {
  min-height: var(--tap);
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  cursor: pointer;
}

.regional-highlight__uf-select:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 1px;
}

@media (max-width: 480px) {
  .regional-highlight { padding: 14px; border-left-width: 4px; }
}
