/* ============================================================
   SINGLE POST — Layout Editorial Agressivo
   ============================================================ */

/* 1. RESET NEVE — Limpa layout padrão */
.single .nv-page-title-wrap {
  display: none !important;
}

/* Esconde sidebar se houver */
.single .nv-sidebar-wrap {
  display: none !important;
}

/* Container do post — full-width como o blog */
.single .single-post-container {
  max-width: none !important;
  padding: 0 !important;
}

.single .nv-single-post-wrap {
  width: 95vw !important;
  max-width: 95vw !important;
  margin: 0 auto;
  padding: 0 2.5%;
}

/* ============================================================
   2. HEADER EDITORIAL (valores idênticos ao .ot-page-header)
   ============================================================ */
.single .entry-header {
  max-width: 95vw;
  margin: 140px auto 60px;
  text-align: left;
  border-bottom: 2px solid var(--ot-text-strong);
  padding-bottom: 40px;
}

/* O Neve aplica `.nv-single-post-wrap > div:first-child { margin-top: 60px }`,
   mais específico que a regra acima — sem isso o título fica colado no header fixo. */
@media (min-width: 769px) {
  .single .nv-single-post-wrap > .entry-header {
    margin-top: 140px;
  }
}

/* Categoria — idêntico ao .ot-page-category */
.ot-single-category {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ot-accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 25px;
  display: none;
}

/* Título — forçado sobre Neve (.title.entry-title) */
.single h1.title.entry-title {
  font-family: 'Inter Tight', sans-serif !important;
  font-size: clamp(3rem, 7vw, 6.5rem) !important;
  font-weight: 800 !important;
  color: var(--ot-text-strong) !important;
  line-height: 0.95 !important;
  letter-spacing: -2px !important;
  text-transform: uppercase !important;
  margin: 0 0 20px 0 !important;
}

/* Meta — idêntico ao .ot-page-meta */
.single .nv-meta-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ot-text);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.single .nv-meta-list a {
  color: var(--ot-accent);
  text-decoration: none;
  transition: color 0.2s;
}

.single .nv-meta-list a:hover {
  color: var(--ot-text-strong);
}

/* ============================================================
   3. FEATURED IMAGE
   ============================================================ */
.single .nv-thumb-wrap {
  margin: 40px 0;
  border-radius: 12px;
  overflow: hidden;
}

.single .nv-thumb-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   4. BLOG COLUMN — coluna de leitura centralizada (inspiração Medium)
   ============================================================ */

/* Tudo abaixo do header fica numa coluna de leitura */
.single .nv-content-wrap.entry-content,
.single .nv-tags-list,
.single .nv-post-navigation,
.single .comments-area {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.wp-block-media-text {
  grid-template-columns: 0 !important;
}

/* ============================================================
   5. CONTEÚDO DO POST
   ============================================================ */
.single .nv-content-wrap.entry-content {
  font-family: 'Inter Tight', sans-serif;
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--ot-text);
  margin-bottom: 40px;
}

/* Parágrafos e listas: fonte e cor sempre do tema, tamanho pode ser customizado */
.single .entry-content p,
.single .entry-content li {
  font-family: 'Inter Tight', sans-serif !important;
  color: var(--ot-text) !important;
}

/* Parágrafos e listas respeitam a coluna */
.single .entry-content > p,
.single .entry-content > ul,
.single .entry-content > ol {
  max-width: 100%;
}

/* Blocos Gutenberg podem ocupar a largura toda da coluna */
.single .entry-content > .wp-block-columns,
.single .entry-content > .wp-block-image,
.single .entry-content > .wp-block-group,
.single .entry-content > .ot-pdf-carousel {
  max-width: 100%;
}

.single .entry-content p {
  margin-bottom: 1.5em;
}

/* Headings: tipografia editorial sempre prevalece sobre inline styles colados */
.single .entry-content h2,
.single .entry-content h3,
.single .entry-content h4 {
  font-family: 'Inter Tight', sans-serif !important;
  font-weight: 800 !important;
  color: var(--ot-text-strong) !important;
  text-transform: uppercase !important;
  letter-spacing: -1px !important;
  line-height: 1 !important;
  margin-top: 2.5em;
  margin-bottom: 0.8em;
}

.single .entry-content h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.single .entry-content h3 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
}

.single .entry-content h4 {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
}

.single .entry-content a {
  color: var(--ot-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.single .entry-content a:hover {
  color: var(--ot-text-strong);
}

.single .entry-content blockquote {
  border-left: 4px solid var(--ot-vermelho);
  margin: 2em 0;
  padding: 1em 1.5em;
  font-style: italic;
  color: #6A7B8C;
  background: rgb(var(--ot-ink-rgb) / 0.03);
  border-radius: 0 8px 8px 0;
}

.single .entry-content img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-left: auto;
  margin-right: auto;
}

/* Remove o width/height fixo em px que o WordPress coloca como atributo HTML */
.single .entry-content img:not(.alignleft):not(.alignright) {
  width: auto !important;
  max-width: 100% !important;
}

/* Imagens com alinhamento inseridas pelo editor clássico */
.single .entry-content .aligncenter,
.single .entry-content figure.aligncenter {
  display: block;
  margin: 2em auto;
  text-align: center;
}

.single .entry-content .alignleft,
.single .entry-content figure.alignleft {
  float: left;
  margin: 0.5em 2em 1.5em 0;
  max-width: 50%;
}

.single .entry-content .alignright,
.single .entry-content figure.alignright {
  float: right;
  margin: 0.5em 0 1.5em 2em;
  max-width: 50%;
}

.single .entry-content .alignnone {
  display: block;
  margin: 2em 0;
}

/* Limpa o float após imagens alinhadas */
.single .entry-content > *:not(.alignleft):not(.alignright) {
  clear: both;
}

/* figure e legenda de imagem (wp-caption) */
.single .entry-content figure,
.single .entry-content .wp-caption {
  max-width: 100%;
  height: auto;
  margin: 2em auto;
}

.single .entry-content .wp-caption img {
  width: 100%;
  height: auto;
}

.single .entry-content .wp-caption-text,
.single .entry-content figcaption {
  font-size: 0.85rem;
  color: #888;
  text-align: center;
  margin-top: 0.5em;
  font-style: italic;
}

/* Tamanhos padrão do WordPress (thumbnail, medium, large, full) */
.single .entry-content img.size-thumbnail { max-width: 300px; }
.single .entry-content img.size-medium    { max-width: 640px; }
.single .entry-content img.size-large     { max-width: 100%; }
.single .entry-content img.size-full      { max-width: 100%; }

/* Centraliza imagens de tamanho medium para baixo quando sozinhas */
.single .entry-content .wp-caption.aligncenter,
.single .entry-content figure.aligncenter img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   5. TAGS
   ============================================================ */
.single .nv-tags-list {
  margin: 30px 0;
  padding-top: 20px;
  border-top: 1px solid rgb(var(--ot-ink-rgb) / 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.single .nv-tags-list > span {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ot-text);
}

.single .nv-tags-list a {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ot-text);
  border: 1px solid rgb(var(--ot-ink-rgb) / 0.25);
  border-radius: 3px;
  padding: 5px 12px;
  text-decoration: none;
  transition: all 0.2s;
}

.single .nv-tags-list a:hover {
  background: var(--ot-vermelho);
  border-color: var(--ot-vermelho);
  color: var(--ot-branco);
}

/* ============================================================
   6. POST NAVIGATION
   ============================================================ */
.single .nv-post-navigation {
  font-family: 'Inter Tight', sans-serif;
  margin: 20px 0;
  padding: 20px 0;
  border-top: 1px solid rgb(var(--ot-ink-rgb) / 0.1);
}

.single .nv-post-navigation a {
  color: var(--ot-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.single .nv-post-navigation a:hover {
  color: var(--ot-accent);
}

/* ============================================================
   7. CARROSSEL PDF — Clean com shadow
   ============================================================ */
.ot-pdf-carousel {
  background: var(--ot-bg);
  border-radius: 12px;
  overflow: hidden;
  max-width: 800px;
  margin: 50px auto;
  font-family: 'Inter Tight', sans-serif;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04); /* Sombra um pouco mais premium */
}

.ot-pdf-header {
  padding: 16px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgb(var(--ot-ink-rgb) / 0.05);
}

.ot-pdf-header-info {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 0;
  overflow: hidden;
}

.ot-pdf-title {
  color: var(--ot-text-strong);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ot-pdf-pages {
  color: #9aa5b1;
  margin-left: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Botão fechar — visível apenas em fullscreen */
.ot-pdf-close {
  display: none;
  background: transparent;
  border: none;
  color: var(--ot-text);
  cursor: pointer;
  padding: 6px;
  line-height: 0;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}

.ot-pdf-close:hover {
  background: rgb(var(--ot-ink-rgb) / 0.06);
  color: var(--ot-accent);
}

.ot-pdf-fullscreen-active .ot-pdf-close {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ot-pdf-viewer {
  position: relative; /* Fundamental para as setas flutuantes */
  background: #f8f9fa; /* Fundo levemente cinza para destacar o papel do PDF */
  padding: 24px 0;
  border-top: 1px solid rgb(var(--ot-ink-rgb) / 0.03);
  border-bottom: 1px solid rgb(var(--ot-ink-rgb) / 0.03);
  display: block; /* Removemos o flex */
}

.ot-pdf-canvas-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.ot-pdf-canvas {
  display: block;
  width: auto;
  max-width: 90%; /* Deixa um respiro nas laterais */
  height: auto;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* Sombreado na folha do PDF */
}

.ot-pdf-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ot-bg);
  border: 1px solid rgb(var(--ot-ink-rgb) / 0.05);
  color: var(--ot-text-strong);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  padding: 0;
  line-height: 0;
}

.ot-pdf-prev { left: 16px; }
.ot-pdf-next { right: 16px; }

.ot-pdf-nav:hover:not(:disabled) {
  background: var(--ot-vermelho);
  color: var(--ot-branco);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(-50%) scale(1.1); /* Leve aumento ao passar o mouse */
}

/* Quando desativado (ex: página 1) */
.ot-pdf-nav:disabled {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.ot-pdf-footer {
  text-align: center;
  padding: 8px 24px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #9aa5b1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

/* Botão fullscreen */
.ot-pdf-fullscreen {
  background: transparent;
  border: none;
  color: #c0c5cc;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.2s;
}

.ot-pdf-fullscreen:hover {
  color: var(--ot-accent);
}

/* Proteção contra right-click + hint de clique */
.ot-pdf-canvas-wrapper {
  -webkit-user-select: none;
  user-select: none;
  position: relative;
  cursor: zoom-in;
}

.ot-pdf-fullscreen-active .ot-pdf-canvas-wrapper {
  cursor: default;
}

.ot-pdf-canvas {
  pointer-events: none;
}

.ot-pdf-canvas-wrapper::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1;
}

/* Hint "Tela cheia" aparece no hover, some no fullscreen */
.ot-pdf-expand-hint {
  display: none;
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 2;
  background: rgba(5, 31, 52, 0.75);
  color: #fff;
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 5px 10px;
  border-radius: 20px;
  gap: 5px;
  align-items: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}

.ot-pdf-expand-hint--ready {
  display: flex;
}

.ot-pdf-canvas-wrapper:hover .ot-pdf-expand-hint--ready {
  opacity: 1;
}

.ot-pdf-fullscreen-active .ot-pdf-expand-hint {
  display: none !important;
}

/* Skeleton loading do PDF */
.ot-pdf-skeleton {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  padding: 40px;
}

.ot-pdf-skeleton-inner {
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ot-pdf-skeleton-line {
  height: 14px;
  background: linear-gradient(90deg, #e8e8e8 25%, #f5f5f5 50%, #e8e8e8 75%);
  background-size: 200% 100%;
  animation: ot-skeleton-shimmer 1.5s infinite;
  border-radius: 4px;
}

.ot-pdf-skeleton-line:nth-child(1) { width: 70%; }
.ot-pdf-skeleton-line:nth-child(2) { width: 100%; }
.ot-pdf-skeleton-line:nth-child(3) { width: 85%; }
.ot-pdf-skeleton-line:nth-child(4) { width: 60%; height: 180px; border-radius: 8px; }
.ot-pdf-skeleton-line:nth-child(5) { width: 45%; }

@keyframes ot-skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================================
   FULLSCREEN MODE — leitura clara
   ============================================================ */

/* Trava o body e esconde a navbar do Neve */
body.ot-pdf-reading-mode {
  overflow: hidden;
}
body.ot-pdf-reading-mode header,
body.ot-pdf-reading-mode .nv-header-wrap,
body.ot-pdf-reading-mode #masthead {
  display: none !important;
}

/* Container */
.ot-pdf-carousel.ot-pdf-fullscreen-active {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  max-width: none;
  margin: 0;
  border-radius: 0;
  z-index: 99990;
  background: var(--ot-surface);
  box-shadow: none;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

/* Header: branco, sticky */
.ot-pdf-fullscreen-active .ot-pdf-header {
  background: var(--ot-card);
  border-bottom: 1px solid rgb(var(--ot-ink-rgb) / 0.07);
  padding: 0 24px;
  height: 56px;
  min-height: 56px;
  position: sticky;
  top: 0;
  z-index: 10;
  flex-shrink: 0;
  gap: 12px;
}

/* Título sempre centralizado, independente dos botões nas laterais */
.ot-pdf-fullscreen-active .ot-pdf-header-info {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  max-width: 60%;
}

/* Botão Voltar */
.ot-pdf-back {
  display: none;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: #5a6472;
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 10px 6px 4px;
  border-radius: 8px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.15s, background 0.15s;
}
.ot-pdf-back:hover {
  color: var(--ot-accent);
  background: rgb(var(--ot-ink-rgb) / 0.04);
}
.ot-pdf-fullscreen-active .ot-pdf-back {
  display: flex;
}

/* Título e páginas em fullscreen */
.ot-pdf-fullscreen-active .ot-pdf-title {
  color: var(--ot-text-strong);
}
.ot-pdf-fullscreen-active .ot-pdf-pages {
  color: #9aa5b1;
}

/* Botão X (fechar / sair) */
.ot-pdf-fullscreen-active .ot-pdf-close {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9aa5b1;
}
.ot-pdf-fullscreen-active .ot-pdf-close:hover {
  color: var(--ot-accent);
  background: rgb(var(--ot-ink-rgb) / 0.05);
}

/* Área de leitura */
.ot-pdf-fullscreen-active .ot-pdf-viewer {
  min-height: calc(100vh - 96px); /* header 56px + footer 40px */
  padding: 48px 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ot-surface);
  border: none;
}

/* Canvas: papel limpo com sombra suave */
.ot-pdf-fullscreen-active .ot-pdf-canvas {
  max-height: calc(100vh - 140px);
  width: auto;
  max-width: 100%;
  box-shadow:
    0 2px 8px rgba(0,0,0,0.08),
    0 12px 40px rgba(0,0,0,0.12);
  border-radius: 2px;
}

.ot-pdf-fullscreen-active .ot-pdf-canvas-wrapper {
  align-items: center;
  justify-content: center;
}

/* Botões de navegação */
.ot-pdf-fullscreen-active .ot-pdf-nav {
  width: 52px;
  height: 52px;
  left: 20px;
  background: var(--ot-card);
  border: 1px solid rgb(var(--ot-ink-rgb) / 0.09);
  color: var(--ot-text-strong);
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
}
.ot-pdf-fullscreen-active .ot-pdf-nav:hover:not(:disabled) {
  background: var(--ot-vermelho);
  color: white;
  border-color: var(--ot-vermelho);
}
.ot-pdf-fullscreen-active .ot-pdf-next {
  left: auto;
  right: 20px;
}

/* Footer */
.ot-pdf-fullscreen-active .ot-pdf-footer {
  position: relative;
  background: var(--ot-surface);
  padding: 10px 24px;
  flex-shrink: 0;
  justify-content: center;
}
.ot-pdf-fullscreen-active .ot-pdf-page-counter {
  font-size: 0.9rem;
  font-weight: 700;
  color: #000000;
}
.ot-pdf-fullscreen-active .ot-pdf-footer::after {
  content: '← → navegar · Esc voltar';
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.7rem;
  color: #000000;
  letter-spacing: 0.5px;
  position: absolute;
  right: 24px;
}

/* ── Comentários dentro do fullscreen ── */
.ot-pdf-fullscreen-active .comments-area {
  background: var(--ot-card);
  max-width: 740px;
  width: calc(100% - 80px);
  margin: 0 auto 80px;
  padding: 48px 56px;
  border-radius: 20px;
  color: #2d2d2d;
  border-top: none;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

/* ============================================================
   SCROLL VIEW — mobile (páginas empilhadas)
   ============================================================ */
.ot-pdf-scroll-view {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  background: var(--ot-surface);
  padding: 20px 0 0;
  gap: 0;
}

.ot-pdf-scroll-page {
  width: 100%;
  position: relative;
  padding: 0 16px 20px;
}

/* Skeleton enquanto a página ainda não renderizou */
.ot-pdf-scroll-canvas {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: 0 1px 4px rgba(0,0,0,0.10), 0 6px 20px rgba(0,0,0,0.09);
  border-radius: 2px;
}

/* placeholder A4 com shimmer antes de renderizar */
.ot-pdf-scroll-page:not([data-rendered]) .ot-pdf-scroll-canvas {
  background: linear-gradient(90deg, #e4dfd7 25%, #d4cfc8 50%, #e4dfd7 75%);
  background-size: 200% 100%;
  animation: skeleton-shine 1.4s ease-in-out infinite;
}

/* ============================================================
   MOBILE — fullscreen PDF
   ============================================================ */
@media (max-width: 768px) {
  .ot-pdf-fullscreen-active .ot-pdf-header {
    padding: 0 16px;
    gap: 8px;
  }
  .ot-pdf-back span { display: none; } /* só o ícone no mobile */
  .ot-pdf-fullscreen-active .ot-pdf-title {
    font-size: 0.8rem;
  }
  .ot-pdf-fullscreen-active .ot-pdf-pages {
    display: none;
  }

  /* No scroll mode, o viewer do carousel fica oculto via JS.
     O footer fica sticky no fundo como indicador de página. */
  .ot-pdf-fullscreen-active .ot-pdf-footer {
    position: sticky;
    bottom: 0;
    z-index: 10;
  }
  .ot-pdf-fullscreen-active .ot-pdf-footer::after {
    display: none;
  }

  .ot-pdf-fullscreen-active .comments-area {
    width: 100%;
    border-radius: 16px 16px 0 0;
    padding: 32px 20px 48px;
    margin: 0;
    box-shadow: none;
  }

  /* Formulário de comentário no mobile */
  .ot-pdf-fullscreen-active .comment-form-author,
  .ot-pdf-fullscreen-active .comment-form-email,
  .ot-pdf-fullscreen-active .comment-form-url {
    width: 100% !important;
    float: none !important;
  }
  .ot-pdf-fullscreen-active .comment-form {
    display: flex;
    flex-direction: column;
  }
}

/* ============================================================
   8. BOTÃO CAFÉ
   ============================================================ */
/* Botão FAB (Floating Action Button) do café */
.ot-coffee-fab {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ot-vermelho);
  color: var(--ot-branco);
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  z-index: 10;
}

.ot-coffee-fab:hover {
  background: var(--ot-azul-escuro);
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

/* Dentro do fullscreen: fixo na viewport, sempre visível ao rolar */
.ot-pdf-fullscreen-active .ot-coffee-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99991; /* acima do carousel (99990), abaixo do modal (99999) */
}

/* ============================================================
   9. MODAL
   ============================================================ */
.ot-coffee-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 99999; /* acima do PDF fullscreen (99990) */
  display: flex;
  align-items: center;
  justify-content: center;
}

.ot-coffee-modal[hidden] {
  display: none;
}

.ot-coffee-backdrop {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.7);
}

.ot-coffee-dialog {
  position: relative;
  background: var(--ot-bg);
  border-radius: 16px;
  padding: 40px;
  max-width: 380px;
  width: 90%;
  text-align: center;
  animation: ot-fade-in 0.25s ease;
}

@keyframes ot-fade-in {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

.ot-coffee-close {
  position: absolute;
  top: 12px; right: 16px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--ot-text);
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.ot-coffee-close:hover {
  color: var(--ot-accent);
}

.ot-coffee-headline {
  font-family: 'Inter Tight', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ot-text-strong);
  text-transform: uppercase;
  letter-spacing: -0.5px;
  margin: 0 0 20px;
}

.ot-coffee-qr {
  width: 100%;
  max-width: 220px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 16px;
}

.ot-coffee-text {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ot-text);
  margin: 0;
  line-height: 1.6;
}

/* ============================================================
   10. COMENTÁRIOS
   ============================================================ */
.single .comments-area {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 2px solid var(--ot-text-strong);
}

/* Neutraliza box do Neve no formulário de resposta */
.single .comment-respond.nv-is-boxed {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

.single .nv-comments-title-wrap {
  margin-bottom: 32px;
}

.single .comments-title {
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--ot-text-strong);
  text-transform: uppercase;
  letter-spacing: -1px;
  margin: 0;
}

/* Lista de comentários */
.single .nv-comments-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.single .nv-comment-article {
  display: flex;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid rgb(var(--ot-ink-rgb) / 0.08);
}

.single .nv-comment-avatar img {
  border-radius: 50%;
  width: 48px;
  height: 48px;
}

.single .comment-content {
  flex: 1;
  min-width: 0;
}

.single .nv-comment-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.single .comment-author .fn {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ot-text);
}

.single .comment-author time {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.75rem;
  color: #9aa5b1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.single .nv-comment-content {
  font-family: 'Inter Tight', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ot-text);
}

.single .edit-reply a {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ot-accent);
  text-decoration: none;
  transition: color 0.2s;
}

.single .edit-reply a:hover {
  color: var(--ot-text-strong);
}

/* Formulário de comentário */
.single .comment-respond {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid rgb(var(--ot-ink-rgb) / 0.12);
}

.single .comment-reply-title {
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 800;
  color: var(--ot-text-strong);
  text-transform: uppercase;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
}

.single .comment-reply-title small a {
  font-size: 0.65em;
  font-weight: 600;
  color: var(--ot-accent);
  text-decoration: none;
  letter-spacing: 0;
  text-transform: none;
}

/* Parágrafo do campo textarea */
.single .comment-form-comment {
  margin-bottom: 20px;
}

.single .comment-form label {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ot-text);
  display: block;
  margin-bottom: 6px;
}

.single .comment-form input[type="text"],
.single .comment-form input[type="email"],
.single .comment-form input[type="url"],
.single .comment-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgb(var(--ot-ink-rgb) / 0.2);
  border-radius: 4px;
  font-family: 'Inter Tight', sans-serif;
  font-size: 1rem;
  color: var(--ot-text);
  background: var(--ot-bg);
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.single .comment-form input:focus,
.single .comment-form textarea:focus {
  outline: none;
  border-color: var(--ot-vermelho);
}

.single .comment-form textarea {
  min-height: 140px;
  resize: vertical;
}

.single .comment-form .form-submit {
  margin-top: 24px;
}

.single .comment-form .form-submit input[type="submit"],
.single .comment-form .form-submit .button.button-primary {
  display: inline-block;
  padding: 14px 36px;
  background: var(--ot-vermelho);
  color: var(--ot-branco);
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  box-shadow: none;
}

.single .comment-form .form-submit input[type="submit"]:hover,
.single .comment-form .form-submit .button.button-primary:hover {
  background: var(--ot-azul-escuro);
  transform: translateY(-2px);
  color: var(--ot-branco);
}

/* Logged in notice */
.single .logged-in-as {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.85rem;
  color: #9aa5b1;
  margin-bottom: 20px;
}

.single .logged-in-as a {
  color: var(--ot-accent);
  text-decoration: none;
}

/* ============================================================
   11. HERO IMAGE / PDF — respeitam a blog column (1200px)
   ============================================================ */
.ot-hero-image-wrap,
.ot-hero-pdf-wrap {
  position: relative;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 48px;
}

.ot-hero-image-wrap {
  border-radius: 12px;
  overflow: visible;
}

.ot-hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

/* Capa vertical (ex.: 4:5 do Instagram): centralizada com no máximo 960px de
   largura — passa da altura da tela, mas o texto da arte fica legível. Na largura
   toda (1200px) daria ~1500px de altura. O botão do café fica no canto da imagem. */
.ot-hero-image-wrap.is-portrait {
  max-width: 960px;
}

/* PDF hero: carousel preenche a coluna sem overflow */
.ot-hero-pdf-wrap .ot-pdf-carousel {
  max-width: 100%;
  margin: 0;
}

/* ============================================================
   12. MEDIA BLOCKS — wrapper
   ============================================================ */
.ot-media-blocks {
  margin: 48px 0;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* ============================================================
   13. BLOCK: IMAGE
   ============================================================ */
.ot-block-image figure {
  margin: 0 auto;
  max-width: 680px;
  text-align: center;
}

.ot-block-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.ot-block-image figcaption {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.875rem;
  font-style: italic;
  text-align: center;
  color: #9aa5b1;
  margin-top: 10px;
  line-height: 1.5;
}

/* ============================================================
   14. BLOCK: VIDEO
   ============================================================ */
.ot-block-video {
  width: 100%;
}

.ot-block-video .wp-has-aspect-ratio {
  aspect-ratio: 16 / 9;
}

.ot-block-video video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: #000;
  display: block;
}

.ot-block-video-caption {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.875rem;
  font-style: italic;
  text-align: center;
  color: #9aa5b1;
  margin-top: 10px;
}

/* ============================================================
   15. BLOCK: TEXT
   ============================================================ */
.ot-text-block {
  font-family: 'Inter Tight', sans-serif;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--ot-text);
  max-width: 680px;
}

.ot-text-block p {
  margin-bottom: 1.5em;
}

.ot-text-block h2,
.ot-text-block h3 {
  font-weight: 800;
  color: var(--ot-text-strong);
  text-transform: uppercase;
  letter-spacing: -1px;
  line-height: 1;
  margin-top: 2em;
  margin-bottom: 0.6em;
}

.ot-text-block blockquote {
  border-left: 4px solid var(--ot-vermelho);
  margin: 1.5em 0;
  padding: 0.8em 1.2em;
  font-style: italic;
  color: #6A7B8C;
  background: rgb(var(--ot-ink-rgb) / 0.03);
  border-radius: 0 8px 8px 0;
}

/* ============================================================
   16. RESPONSIVO — novos blocos
   ============================================================ */
@media (max-width: 768px) {
  .ot-hero-image {
    border-radius: 0;
  }

  .ot-hero-image-wrap,
  .ot-hero-pdf-wrap {
    border-radius: 0;
    max-width: 100%;
  }


  .ot-block-image figure,
  .ot-text-block {
    max-width: 100%;
  }
}

/* ============================================================
   17. RESPONSIVO (original)
   ============================================================ */
@media (max-width: 768px) {
  .single .entry-header {
    margin-top: 100px;
  }

  .single .entry-title {
    letter-spacing: -1px;
  }

  .single .entry-content > p,
  .single .entry-content > ul,
  .single .entry-content > ol {
    max-width: 100%;
  }

  /* Conteúdo do post — responsivo mobile */
  .single .nv-content-wrap.entry-content {
    font-size: 1rem;
  }

  /* Imagens alinhadas à esquerda/direita voltam a ser bloco no mobile */
  .single .entry-content .alignleft,
  .single .entry-content figure.alignleft,
  .single .entry-content .alignright,
  .single .entry-content figure.alignright {
    float: none;
    display: block;
    margin: 1.5em auto;
  }

  .single .entry-content .wp-caption {
    width: 100% !important;
  }
}

@media (max-width: 640px) {
  .ot-pdf-carousel {
    border-radius: 0;
    margin: 30px -16px;
    max-width: none;
  }

  .ot-pdf-nav {
    font-size: 1.4rem;
    padding: 8px;
  }

  .ot-coffee-dialog {
    padding: 30px 20px;
  }

  .single .nv-comment-article {
    flex-direction: column;
    gap: 10px;
  }
}
