body.novera-chapter {
  --nvc-blue:#2878ff;
  --nvc-blue-soft:rgba(40,120,255,.10);
  --nvc-border:var(--layout-lineart-color, rgba(108,132,160,.24));
  --nvc-surface:var(--page-bg-color, #fff);
  --nvc-surface-soft:var(--bg-700, #f7f9fc);
  --nvc-text:var(--fg-700, inherit);
  --nvc-muted:var(--fg-500, currentColor);
}

/* Estrutura de leitura */
.novera-chapter .main.chapter{padding-top:clamp(18px,3vw,34px);}
.novera-chapter .main__wrapper{max-width:1040px;margin-inline:auto;padding-inline:clamp(18px,4vw,44px);}
.novera-chapter.nvc-reading-layout-enabled .chapter__article{max-width:900px;margin-inline:auto;}

/* Ferramentas superiores: menos vazio antes do título */
.novera-chapter.nvc-reading-layout-enabled .chapter__actions--top{
  margin-bottom:clamp(22px,3.2vw,34px);
  padding-bottom:16px;
  border-bottom:1px solid var(--nvc-border);
}
.novera-chapter.nvc-reading-layout-enabled .chapter__actions--top .button,
.novera-chapter .chapter__actions--bottom .button{
  border-radius:8px;
  min-height:38px;
}
.novera-chapter .chapter__actions ._navigation{font-weight:650;}

/* Cabeçalho */
.novera-chapter.nvc-reading-layout-enabled .chapter__headline{max-width:780px;margin:0 auto clamp(24px,3.5vw,38px);text-align:left;}
.novera-chapter.nvc-reading-layout-enabled .chapter__story-link{display:inline-block;margin-bottom:8px;font-size:.82rem;font-weight:600;letter-spacing:.02em;opacity:.72;}
.novera-chapter.nvc-reading-layout-enabled .chapter__title{font-size:clamp(2rem,4.2vw,3.25rem);line-height:1.08;letter-spacing:-.035em;margin:.05em 0 .25em;font-weight:750;}
.novera-chapter.nvc-reading-layout-enabled .chapter__author{font-size:.88rem;opacity:.72;}

/* Contexto de leitura */
.nvc-reading-context{max-width:780px;margin:-18px auto 28px;display:flex;gap:10px;align-items:center;font-size:.7rem;text-transform:uppercase;letter-spacing:.12em;font-weight:700;color:var(--nvc-blue);}
.nvc-position{color:inherit;opacity:.72;}

/* Conteúdo */
.novera-chapter #chapter-content{max-width:780px;margin-inline:auto;}
.novera-chapter.nvc-reading-layout-enabled .chapter__content .chapter-formatting{font-size:var(--chapter-font-size,1em);line-height:var(--chapter-line-height,1.7);}
.novera-chapter.nvc-reading-layout-enabled .chapter__content p{max-width:100%;}

/* Fim do capítulo */
.novera-chapter.nvc-reading-layout-enabled .chapter__footer{
  max-width:780px;
  margin:clamp(44px,6vw,70px) auto 0;
  padding:20px 0 18px;
  border-top:1px solid var(--nvc-border);
  border-bottom:1px solid var(--nvc-border);
}
.novera-chapter .chapter__actions--bottom .chapter__actions-container{align-items:center;}

/* Comentários: mantém o motor do Fictioneer, só organiza visualmente */
.novera-chapter.nvc-comments-card-enabled .chapter__comments{
  max-width:780px;
  margin:clamp(34px,5vw,52px) auto 0;
  padding:28px 0 0;
}
.novera-chapter.nvc-comments-card-enabled .chapter__comments .comment-section__heading,
.novera-chapter.nvc-comments-card-enabled .chapter__comments .comments-title,
.novera-chapter.nvc-comments-card-enabled .chapter__comments > h2,
.novera-chapter.nvc-comments-card-enabled .chapter__comments > h3{
  padding-bottom:14px;
  margin-bottom:20px;
  border-bottom:1px solid var(--nvc-border);
}
.novera-chapter.nvc-comments-card-enabled .chapter__comments textarea,
.novera-chapter.nvc-comments-card-enabled .chapter__comments input[type="text"],
.novera-chapter.nvc-comments-card-enabled .chapter__comments input[type="email"],
.novera-chapter.nvc-comments-card-enabled .chapter__comments input[type="url"]{
  border-color:var(--nvc-border);
  border-radius:8px;
}

/* Barra flutuante */
.nvc-reader-bar{
  position:fixed;
  z-index:999;
  left:50%;
  bottom:max(16px, env(safe-area-inset-bottom));
  transform:translate(-50%,24px);
  display:flex;
  align-items:center;
  gap:4px;
  padding:6px;
  color:var(--nvc-text);
  background:color-mix(in srgb, var(--nvc-surface) 94%, transparent);
  border:1px solid var(--nvc-border);
  border-radius:14px;
  box-shadow:0 12px 36px rgba(0,0,0,.18);
  opacity:0;
  pointer-events:none;
  transition:opacity .22s ease, transform .22s ease, background-color .2s ease, border-color .2s ease;
  -webkit-backdrop-filter:blur(14px) saturate(130%);
  backdrop-filter:blur(14px) saturate(130%);
}
.nvc-reader-bar.is-visible{opacity:1;pointer-events:auto;transform:translate(-50%,0);}
.nvc-reader-bar>*{
  height:38px;
  min-width:40px;
  border:0!important;
  border-radius:9px!important;
  padding:0;
  background:transparent!important;
  color:inherit!important;
  box-shadow:none!important;
  display:grid;
  place-items:center;
  text-decoration:none!important;
  font:inherit;
  cursor:pointer;
}
.nvc-reader-bar__nav{font-size:1.55rem;font-weight:500;line-height:1;}
.nvc-reader-bar__nav:hover,
.nvc-reader-bar button:hover{background:var(--nvc-blue-soft)!important;color:var(--nvc-blue)!important;}
.nvc-reader-bar__index{padding-inline:13px!important;font-size:.78rem;font-weight:750;white-space:nowrap;}
.nvc-reader-bar__format{font-weight:800;font-size:.92rem;}
.nvc-reader-bar .is-disabled{opacity:.22;cursor:not-allowed;pointer-events:none;}
.nvc-reader-bar a:focus-visible,
.nvc-reader-bar button:focus-visible{outline:2px solid var(--nvc-blue);outline-offset:2px;}

/* Garante contraste em qualquer skin escura do Fictioneer */
:root:not(.light-mode) body.novera-chapter .nvc-reader-bar,
body.novera-chapter.dark-mode .nvc-reader-bar,
body.novera-chapter[data-mode="dark"] .nvc-reader-bar{
  background:color-mix(in srgb, var(--page-bg-color, #111b27) 94%, #0e1722 6%);
  color:var(--fg-500, #e6edf7);
  border-color:var(--layout-lineart-color, #33465a);
  box-shadow:0 14px 42px rgba(0,0,0,.42);
}

@media(max-width:700px){
  .novera-chapter .main.chapter{padding-top:12px;}
  .novera-chapter .main__wrapper{padding-inline:18px;}
  .novera-chapter.nvc-reading-layout-enabled .chapter__actions--top{margin-bottom:22px;padding-bottom:13px;}
  .novera-chapter.nvc-reading-layout-enabled .chapter__headline{text-align:center;margin-bottom:34px;}
  .novera-chapter.nvc-reading-layout-enabled .chapter__title{font-size:clamp(1.85rem,8vw,2.55rem);}
  .nvc-reading-context{justify-content:center;margin-top:-18px;margin-bottom:24px;}
  .novera-chapter #chapter-content{font-size:1.02rem;}
  .nvc-reader-bar{bottom:max(10px, env(safe-area-inset-bottom));}
  .nvc-reader-bar>*{height:40px;min-width:38px;}
  .nvc-reader-bar__index{padding-inline:10px!important;}
  .novera-chapter.nvc-comments-card-enabled .chapter__comments{margin-top:34px;padding-top:22px;}
}

@media(max-width:390px){
  .nvc-reader-bar{gap:2px;padding:5px;}
  .nvc-reader-bar>*{min-width:36px;}
  .nvc-reader-bar__index{font-size:.72rem;padding-inline:8px!important;}
}

@media(prefers-reduced-motion:reduce){.nvc-reader-bar{transition:none;}}

/* ==========================================================
   v0.1.2 — acabamento final
   ========================================================== */

/* Comentários como card Novera, mantendo o motor nativo do Fictioneer */
.novera-chapter.nvc-comments-card-enabled .chapter__comments{
  padding:clamp(22px,3vw,30px);
  border:1px solid var(--nvc-border);
  border-radius:14px;
  background:color-mix(in srgb, var(--nvc-surface) 97%, var(--nvc-blue) 3%);
  box-shadow:0 10px 30px rgba(20,38,60,.045);
}
.novera-chapter.nvc-comments-card-enabled .chapter__comments .comment-section__heading,
.novera-chapter.nvc-comments-card-enabled .chapter__comments .comments-title,
.novera-chapter.nvc-comments-card-enabled .chapter__comments > h2,
.novera-chapter.nvc-comments-card-enabled .chapter__comments > h3{
  margin-top:0;
  font-size:clamp(1.05rem,1.8vw,1.28rem);
  font-weight:800;
  letter-spacing:-.015em;
}
.novera-chapter.nvc-comments-card-enabled .chapter__comments .comment-respond,
.novera-chapter.nvc-comments-card-enabled .chapter__comments .comment-form{
  margin-bottom:0;
}
.novera-chapter.nvc-comments-card-enabled .chapter__comments textarea,
.novera-chapter.nvc-comments-card-enabled .chapter__comments input[type="text"],
.novera-chapter.nvc-comments-card-enabled .chapter__comments input[type="email"],
.novera-chapter.nvc-comments-card-enabled .chapter__comments input[type="url"]{
  width:100%;
  background:color-mix(in srgb, var(--nvc-surface) 97%, var(--nvc-blue) 3%);
  color:var(--nvc-text);
  border:1px solid var(--nvc-border);
  border-radius:10px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
}
.novera-chapter.nvc-comments-card-enabled .chapter__comments textarea{
  min-height:118px;
  padding:14px 16px;
  resize:vertical;
}
.novera-chapter.nvc-comments-card-enabled .chapter__comments textarea:focus,
.novera-chapter.nvc-comments-card-enabled .chapter__comments input:focus{
  border-color:var(--nvc-blue);
  outline:2px solid color-mix(in srgb, var(--nvc-blue) 18%, transparent);
  outline-offset:1px;
}
.novera-chapter.nvc-comments-card-enabled .chapter__comments .form-submit input,
.novera-chapter.nvc-comments-card-enabled .chapter__comments button[type="submit"]{
  border-radius:9px;
}

/* Barra flutuante: ‹ | posição | ☰ | Aa | › */
.nvc-reader-bar__index{
  display:grid!important;
  place-items:center;
  height:38px;
  min-width:auto!important;
  padding-inline:13px!important;
  font-size:.78rem;
  font-weight:750;
  white-space:nowrap;
  cursor:default!important;
}
.nvc-reader-bar__chapters{
  font-size:1.02rem!important;
  font-weight:750!important;
  position:relative;
}
.nvc-reader-bar__chapters::before,
.nvc-reader-bar__format::before{
  content:"";
  position:absolute;
  left:-2px;
  top:8px;
  bottom:8px;
  width:1px;
  background:var(--nvc-border);
  opacity:.72;
}
.nvc-reader-bar__chapters span{transform:scaleX(1.05);line-height:1;}

/* Navegação explícita no fim do capítulo */
.novera-chapter .chapter__actions--bottom .nvc-explicit-nav{
  min-width:112px;
  min-height:42px;
  padding-inline:16px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border-radius:9px;
  font-weight:750;
  letter-spacing:-.01em;
}
.novera-chapter .chapter__actions--bottom .nvc-explicit-nav--next{
  background:var(--nvc-blue)!important;
  border-color:var(--nvc-blue)!important;
  color:#fff!important;
}
.novera-chapter .chapter__actions--bottom .nvc-explicit-nav--next:hover{
  filter:brightness(1.06);
}

/* Dark mode final para comentários */
:root:not(.light-mode) body.novera-chapter.nvc-comments-card-enabled .chapter__comments,
body.novera-chapter.dark-mode .chapter__comments,
body.novera-chapter[data-mode="dark"] .chapter__comments{
  background:color-mix(in srgb, var(--page-bg-color, #111b27) 92%, #172536 8%);
  border-color:var(--layout-lineart-color, #33465a);
  box-shadow:0 12px 34px rgba(0,0,0,.18);
}
:root:not(.light-mode) body.novera-chapter.nvc-comments-card-enabled .chapter__comments textarea,
:root:not(.light-mode) body.novera-chapter.nvc-comments-card-enabled .chapter__comments input[type="text"],
:root:not(.light-mode) body.novera-chapter.nvc-comments-card-enabled .chapter__comments input[type="email"],
:root:not(.light-mode) body.novera-chapter.nvc-comments-card-enabled .chapter__comments input[type="url"],
body.novera-chapter.dark-mode .chapter__comments textarea,
body.novera-chapter.dark-mode .chapter__comments input[type="text"],
body.novera-chapter.dark-mode .chapter__comments input[type="email"],
body.novera-chapter.dark-mode .chapter__comments input[type="url"]{
  background:color-mix(in srgb, var(--page-bg-color, #111b27) 86%, #203247 14%);
  color:var(--fg-500, #e6edf7);
  border-color:var(--layout-lineart-color, #33465a);
}

@media(max-width:700px){
  .novera-chapter.nvc-comments-card-enabled .chapter__comments{padding:20px 18px;border-radius:12px;}
  .nvc-reader-bar__index{padding-inline:8px!important;}
  .nvc-reader-bar__chapters::before,
  .nvc-reader-bar__format::before{top:9px;bottom:9px;}
  .novera-chapter .chapter__actions--bottom .nvc-explicit-nav{min-width:auto;padding-inline:12px;}
}


/* ==========================================================
   v0.1.3 — integração Novera Analytics
   ========================================================== */
.nvc-reading-context__sep{
  opacity:.35;
}
.nvc-reading-views{
  display:inline-flex;
  align-items:center;
  gap:5px;
  color:var(--nvc-muted, currentColor);
  opacity:.78;
  font-weight:700;
  letter-spacing:.06em;
}
.nvc-reading-views>span{
  color:var(--nvc-blue);
}
@media(max-width:620px){
  .nvc-reading-context{
    flex-wrap:wrap;
    row-gap:5px;
  }
  .nvc-reading-context__sep{
    display:none;
  }
  .nvc-reading-views{
    flex-basis:100%;
    justify-content:center;
    font-size:.65rem;
  }
}


/* ==========================================================
   v0.2.0 — leitura editorial Novera
   ========================================================== */
.novera-chapter.nvc-reading-layout-enabled .chapter__actions--top{
  max-width:1000px;
  margin:0 auto clamp(28px,4vw,46px);
  padding:0 0 18px;
}
.novera-chapter.nvc-reading-layout-enabled .chapter__headline{
  max-width:1000px;
  margin:0 auto clamp(34px,4vw,48px);
  text-align:center;
}
.novera-chapter.nvc-reading-layout-enabled .chapter__story-link{
  display:none;
}
.novera-chapter.nvc-reading-layout-enabled .chapter__title{
  max-width:1000px;
  margin:.12em auto .32em;
  font-family:var(--ff-heading, var(--font-family-heading, inherit));
  font-size:clamp(2.35rem,4.8vw,4rem);
  line-height:1.06;
  letter-spacing:-.035em;
  font-weight:800;
  text-wrap:balance;
}
.novera-chapter.nvc-reading-layout-enabled .chapter__author{
  display:block;
  margin-inline:auto;
  font-size:.9rem;
  opacity:.82;
}

/* Metadados editoriais ficam acima do título (movidos pelo JS sem recriar o cabeçalho). */
.nvc-reading-context{
  max-width:1000px;
  margin:0 auto 18px;
  justify-content:center;
  gap:10px;
  color:var(--nvc-muted);
  font-size:.68rem;
  letter-spacing:.13em;
}
.nvc-reading-context .nvc-story-name{
  color:var(--nvc-blue);
  font-weight:800;
}
.nvc-reading-context .nvc-position,
.nvc-reading-context .nvc-reading-time{opacity:.78;color:inherit;}
.nvc-reading-context .nvc-reading-views{display:none;}

/* O download continua disponível, mas deixa de competir visualmente com o título. */
.novera-chapter.nvc-reading-layout-enabled .chapter__headline .button,
.novera-chapter.nvc-reading-layout-enabled .chapter__headline a[class*="download"]{
  margin-top:14px;
  min-height:34px;
  padding:7px 12px;
  border-radius:8px;
  font-size:.72rem;
}

/* Coluna de texto: confortável em desktop e sem linhas excessivamente longas. */
.novera-chapter #chapter-content{max-width:980px;}
.novera-chapter.nvc-reading-layout-enabled .chapter__content .chapter-formatting{
  line-height:var(--chapter-line-height,1.78);
}
.novera-chapter.nvc-reading-layout-enabled .chapter__content p{
  margin-bottom:1.55em;
}

/* Barra superior nativa do Fictioneer com acabamento semelhante ao restante da Novera. */
.novera-chapter.nvc-reading-layout-enabled .chapter__actions--top{
  border:1px solid var(--nvc-border);
  border-radius:14px;
  padding:12px 16px;
  background:color-mix(in srgb, var(--nvc-surface) 97%, var(--nvc-blue) 3%);
}
.novera-chapter.nvc-reading-layout-enabled .chapter__actions--top .button{
  border-radius:8px;
}

:root:not(.light-mode) body.novera-chapter.nvc-reading-layout-enabled .chapter__actions--top,
body.novera-chapter.dark-mode.nvc-reading-layout-enabled .chapter__actions--top,
body.novera-chapter[data-mode="dark"].nvc-reading-layout-enabled .chapter__actions--top{
  background:color-mix(in srgb, var(--page-bg-color,#111b27) 91%, #172536 9%);
  border-color:var(--layout-lineart-color,#33465a);
}

@media(max-width:700px){
  .novera-chapter.nvc-reading-layout-enabled .chapter__actions--top{
    margin-bottom:26px;
    padding:9px 10px;
    border-radius:11px;
  }
  .novera-chapter.nvc-reading-layout-enabled .chapter__headline{margin-bottom:30px;}
  .novera-chapter.nvc-reading-layout-enabled .chapter__title{
    font-size:clamp(2rem,9vw,2.8rem);
    line-height:1.08;
  }
  .nvc-reading-context{margin-bottom:14px;gap:7px;font-size:.61rem;letter-spacing:.1em;}
  .nvc-reading-context__sep{display:inline!important;}
  .novera-chapter #chapter-content{font-size:1rem;}
}


/* v0.2.2 — nome da obra clicável no contexto de leitura */
.nvc-reading-context .nvc-story-name{
  text-decoration:none!important;
  cursor:pointer;
  transition:opacity .18s ease,color .18s ease;
}
.nvc-reading-context .nvc-story-name:hover,
.nvc-reading-context .nvc-story-name:focus-visible{
  opacity:.82;
  text-decoration:underline!important;
  text-underline-offset:3px;
}


/* ==========================================================
   NOVERA CHAPTER v0.3.0 — COMENTÁRIOS
   ========================================================== */

/* Espaçamento geral da área final do capítulo. */
.novera-chapter #comments,
.novera-chapter .comments-area,
.novera-chapter .chapter__comments{
  max-width:1000px;
  margin-inline:auto;
}

/* Caixa de regras, inspirada na referência mas com identidade Novera. */
.novera-chapter .nvc-comment-rules{
  margin:28px 0 46px;
  border:1px solid var(--nvc-border);
  border-radius:12px;
  overflow:hidden;
  background:color-mix(in srgb,var(--nvc-surface) 97%,var(--nvc-blue) 3%);
}
.novera-chapter .nvc-comment-rules__title{
  padding:10px 14px;
  border-bottom:1px solid var(--nvc-border);
  color:var(--nvc-blue);
  font-size:.64rem;
  font-weight:900;
  letter-spacing:.14em;
}
.novera-chapter .nvc-comment-rules__body{
  padding:13px 14px 14px;
}
.novera-chapter .nvc-comment-rules__body p{
  margin:0 0 7px!important;
  font-size:.82rem!important;
  line-height:1.45!important;
  font-weight:600;
  color:var(--nvc-text);
}
.novera-chapter .nvc-comment-rules__body small{
  display:block;
  margin-top:10px;
  padding-top:10px;
  border-top:1px dashed var(--nvc-border);
  color:var(--nvc-muted);
  font-size:.72rem;
  line-height:1.45;
}

/* Título da conversa. */
.novera-chapter .comments-title,
.novera-chapter .comment-reply-title,
.novera-chapter #comments > h2,
.novera-chapter #comments > h3{
  margin:0 0 18px!important;
  color:var(--nvc-text)!important;
  font-size:1.15rem!important;
  line-height:1.2!important;
  letter-spacing:-.01em;
}
.novera-chapter .comments-title:before{
  content:"CONVERSA";
  display:block;
  margin-bottom:6px;
  color:var(--nvc-blue);
  font-size:.58rem;
  font-weight:900;
  letter-spacing:.16em;
}

/* Formulário mais limpo. */
.novera-chapter .comment-respond{
  margin:0 0 36px!important;
  padding:14px!important;
  border:1px solid var(--nvc-border)!important;
  border-radius:12px!important;
  background:color-mix(in srgb,var(--nvc-surface) 98%,var(--nvc-blue) 2%)!important;
}
.novera-chapter .comment-form{
  margin:0!important;
}
.novera-chapter .comment-form-comment{
  margin:0 0 12px!important;
}
.novera-chapter .comment-form-comment label{
  display:none!important;
}
.novera-chapter .comment-form textarea,
.novera-chapter #comment{
  width:100%!important;
  min-height:135px!important;
  resize:vertical!important;
  border:1px solid var(--nvc-border)!important;
  border-radius:9px!important;
  padding:14px!important;
  background:transparent!important;
  color:var(--nvc-text)!important;
  box-shadow:none!important;
}
.novera-chapter .comment-form textarea:focus,
.novera-chapter #comment:focus{
  outline:none!important;
  border-color:color-mix(in srgb,var(--nvc-blue) 55%,var(--nvc-border))!important;
  box-shadow:0 0 0 3px color-mix(in srgb,var(--nvc-blue) 10%,transparent)!important;
}
.novera-chapter .logged-in-as{
  margin:0 0 12px!important;
  font-size:.72rem!important;
  color:var(--nvc-muted)!important;
}
.novera-chapter .form-submit{
  display:flex!important;
  justify-content:flex-end!important;
  margin:0!important;
}
.novera-chapter .form-submit .submit,
.novera-chapter .comment-form input[type="submit"]{
  min-height:36px!important;
  padding:8px 14px!important;
  border:0!important;
  border-radius:8px!important;
  background:var(--nvc-blue)!important;
  color:#fff!important;
  font-weight:800!important;
  font-size:.75rem!important;
  cursor:pointer!important;
}

/* Lista de comentários: cards individuais, sem aquele bloco interno pesado. */
.novera-chapter .comment-list,
.novera-chapter ol.comment-list,
.novera-chapter ul.comment-list{
  margin:0!important;
  padding:0!important;
  list-style:none!important;
}
.novera-chapter .comment-list > li,
.novera-chapter .comment{
  margin:0 0 12px!important;
}
.novera-chapter .comment-body{
  position:relative;
  margin:0!important;
  padding:14px 16px!important;
  border:1px solid var(--nvc-border)!important;
  border-radius:12px!important;
  background:color-mix(in srgb,var(--nvc-surface) 98%,var(--nvc-blue) 2%)!important;
  box-shadow:none!important;
}
.novera-chapter .comment-meta{
  margin-bottom:9px!important;
}
.novera-chapter .comment-author{
  display:flex!important;
  align-items:center!important;
  gap:9px!important;
}
.novera-chapter .comment-author .avatar{
  width:34px!important;
  height:34px!important;
  border-radius:50%!important;
  object-fit:cover!important;
}
.novera-chapter .comment-author .fn,
.novera-chapter .comment-author cite{
  color:var(--nvc-text)!important;
  font-weight:800!important;
  font-style:normal!important;
}
.novera-chapter .comment-metadata,
.novera-chapter .comment-metadata a{
  color:var(--nvc-muted)!important;
  font-size:.66rem!important;
}
.novera-chapter .comment-content{
  margin-top:8px!important;
  color:var(--nvc-text)!important;
  font-size:.9rem!important;
  line-height:1.6!important;
}
.novera-chapter .comment-content p{
  margin:0 0 .8em!important;
}
.novera-chapter .reply{
  margin-top:10px!important;
}
.novera-chapter .reply a,
.novera-chapter .comment-reply-link{
  color:var(--nvc-muted)!important;
  font-size:.7rem!important;
  font-weight:700!important;
  text-decoration:none!important;
}
.novera-chapter .reply a:hover,
.novera-chapter .comment-reply-link:hover{
  color:var(--nvc-blue)!important;
}

/* Respostas ficam visualmente ligadas ao comentário pai. */
.novera-chapter .children{
  margin:10px 0 0 18px!important;
  padding:0 0 0 12px!important;
  border-left:2px solid color-mix(in srgb,var(--nvc-blue) 20%,var(--nvc-border))!important;
  list-style:none!important;
}

/* Dark mode Fictioneer */
html[data-mode="dark"] body.novera-chapter .nvc-comment-rules,
html[data-mode="dark"] body.novera-chapter .comment-respond,
html[data-mode="dark"] body.novera-chapter .comment-body{
  background:color-mix(in srgb,var(--page-bg-color,#111b27) 90%,#172536 10%)!important;
  border-color:var(--layout-lineart-color,#33465a)!important;
}

/* Light mode */
html[data-mode="light"] body.novera-chapter .nvc-comment-rules,
html[data-mode="light"] body.novera-chapter .comment-respond,
html[data-mode="light"] body.novera-chapter .comment-body{
  background:#fff!important;
}

/* Mobile */
@media(max-width:700px){
  .novera-chapter .nvc-comment-rules{margin:22px 0 34px}
  .novera-chapter .nvc-comment-rules__body p{font-size:.78rem!important}
  .novera-chapter .comment-respond{padding:10px!important}
  .novera-chapter .comment-form textarea,
  .novera-chapter #comment{min-height:120px!important;padding:12px!important}
  .novera-chapter .comment-body{padding:12px!important}
  .novera-chapter .children{margin-left:8px!important;padding-left:10px!important}
}


/* ==========================================================
   NOVERA CHAPTER v0.3.1 — COMENTÁRIOS / FICTIONEER 5.35.3
   Usa a estrutura real do tema e continua funcionando com AJAX.
   ========================================================== */

.novera-chapter #comments.fictioneer-comments{
  max-width:1000px!important;
  margin:44px auto 0!important;
}

/* Regras */
.novera-chapter #comments .nvc-comment-rules{
  margin:0 0 46px!important;
  border:1px solid var(--nvc-border)!important;
  border-radius:12px!important;
  overflow:hidden!important;
  background:color-mix(in srgb,var(--nvc-surface) 97%,var(--nvc-blue) 3%)!important;
}
.novera-chapter #comments .nvc-comment-rules__title{
  padding:10px 14px!important;
  border-bottom:1px solid var(--nvc-border)!important;
  color:var(--nvc-blue)!important;
  font-size:.62rem!important;
  font-weight:900!important;
  letter-spacing:.14em!important;
}
.novera-chapter #comments .nvc-comment-rules__body{
  padding:13px 14px 14px!important;
}
.novera-chapter #comments .nvc-comment-rules__body p{
  margin:0 0 7px!important;
  color:var(--nvc-text)!important;
  font-size:.78rem!important;
  line-height:1.45!important;
  font-weight:600!important;
}
.novera-chapter #comments .nvc-comment-rules__body small{
  display:block!important;
  margin-top:10px!important;
  padding-top:10px!important;
  border-top:1px dashed var(--nvc-border)!important;
  color:var(--nvc-muted)!important;
  font-size:.69rem!important;
  line-height:1.45!important;
}

/* Cabeçalho: CONVERSA + contagem nativa do Fictioneer */
.novera-chapter #comments .fictioneer-comments__header{
  display:block!important;
  margin:0 0 18px!important;
  padding:0!important;
  border:0!important;
}
.novera-chapter #comments .nvc-comments-kicker{
  margin:0 0 6px!important;
  color:var(--nvc-blue)!important;
  font-size:.58rem!important;
  font-weight:900!important;
  letter-spacing:.16em!important;
  text-transform:uppercase!important;
}
.novera-chapter #comments .fictioneer-comments__title{
  margin:0!important;
  padding:0!important;
  border:0!important;
  color:var(--nvc-text)!important;
  font-size:1.1rem!important;
  line-height:1.2!important;
  font-weight:800!important;
}
.novera-chapter #comments .fictioneer-comments__total{
  color:inherit!important;
}

/* Formulário nativo do Fictioneer */
.novera-chapter #comments .fictioneer-respond{
  margin:0 0 38px!important;
  padding:14px!important;
  border:1px solid var(--nvc-border)!important;
  border-radius:12px!important;
  background:color-mix(in srgb,var(--nvc-surface) 98%,var(--nvc-blue) 2%)!important;
  box-shadow:none!important;
}
.novera-chapter #comments .fictioneer-respond__form{
  margin:0!important;
}
.novera-chapter #comments .fictioneer-respond__form-before-form{
  margin:0 0 11px!important;
  padding:0!important;
  color:var(--nvc-muted)!important;
  font-size:.69rem!important;
}
.novera-chapter #comments .fictioneer-respond__form-comment{
  margin:0!important;
}
.novera-chapter #comments .fictioneer-respond__form-comment textarea{
  display:block!important;
  width:100%!important;
  min-height:128px!important;
  padding:13px!important;
  border:1px solid var(--nvc-border)!important;
  border-radius:9px!important;
  background:transparent!important;
  color:var(--nvc-text)!important;
  line-height:1.55!important;
  box-shadow:none!important;
  resize:vertical!important;
}
.novera-chapter #comments .fictioneer-respond__form-comment textarea:focus{
  outline:none!important;
  border-color:color-mix(in srgb,var(--nvc-blue) 58%,var(--nvc-border))!important;
  box-shadow:0 0 0 3px color-mix(in srgb,var(--nvc-blue) 10%,transparent)!important;
}

/* Toolbar nativa: mantém funcionalidade do tema, apenas refina o visual */
.novera-chapter #comments .fictioneer-comment-toolbar{
  padding:7px 4px 0!important;
  color:var(--nvc-muted)!important;
}
.novera-chapter #comments .fictioneer-comment-toolbar > span{
  opacity:.72!important;
}
.novera-chapter #comments .fictioneer-comment-toolbar > span:hover{
  opacity:1!important;
  color:var(--nvc-blue)!important;
}

/* Rodapé/form submit nativo */
.novera-chapter #comments .fictioneer-respond__form-bottom,
.novera-chapter #comments .fictioneer-respond__form-actions{
  margin-top:10px!important;
}
.novera-chapter #comments .fictioneer-respond__form-actions{
  padding-top:0!important;
}
.novera-chapter #comments .fictioneer-respond__form-actions-wrapper{
  gap:8px!important;
}
.novera-chapter #comments .fictioneer-respond__form-submit{
  min-height:36px!important;
  padding:8px 14px!important;
  border-radius:8px!important;
  background:var(--nvc-blue)!important;
  color:#fff!important;
  font-size:.72rem!important;
  font-weight:800!important;
  border:0!important;
}

/* Ordenação discreta */
.novera-chapter #comments .sort-order-filter._comments{
  margin:4px 0 14px!important;
}
.novera-chapter #comments .sort-order-filter._comments .list-button{
  color:var(--nvc-muted)!important;
}

/* Lista */
.novera-chapter #comments .fictioneer-comments__list{
  margin:0!important;
  padding:0!important;
}
.novera-chapter #comments .fictioneer-comment{
  margin:0 0 12px!important;
}
.novera-chapter #comments .fictioneer-comment__container{
  padding:14px 15px!important;
  border:1px solid var(--nvc-border)!important;
  border-radius:12px!important;
  background:color-mix(in srgb,var(--nvc-surface) 98%,var(--nvc-blue) 2%)!important;
  box-shadow:none!important;
}
.novera-chapter #comments .fictioneer-comment__header{
  margin-bottom:10px!important;
  gap:9px!important;
}
.novera-chapter #comments .fictioneer-comment__header .avatar{
  width:34px!important;
  height:34px!important;
  border-radius:7px!important;
}
.novera-chapter #comments .fictioneer-comment__author{
  color:var(--nvc-text)!important;
  font-size:.78rem!important;
}
.novera-chapter #comments .fictioneer-comment__info{
  color:var(--nvc-muted)!important;
  font-size:.63rem!important;
}
.novera-chapter #comments .fictioneer-comment__body{
  color:var(--nvc-text)!important;
  font-size:.86rem!important;
  line-height:1.62!important;
}
.novera-chapter #comments .fictioneer-comment__footer{
  margin-top:11px!important;
  color:var(--nvc-muted)!important;
  font-size:.68rem!important;
}
.novera-chapter #comments .fictioneer-comment__actions{
  gap:10px!important;
}
.novera-chapter #comments .comment-reply-link{
  color:var(--nvc-muted)!important;
  font-weight:700!important;
}
.novera-chapter #comments .comment-reply-link:hover{
  color:var(--nvc-blue)!important;
}

/* Respostas encadeadas */
.novera-chapter #comments .fictioneer-comment > ol,
.novera-chapter #comments .fictioneer-comment > ul{
  margin:10px 0 0 16px!important;
  padding-left:12px!important;
  border-left:2px solid color-mix(in srgb,var(--nvc-blue) 20%,var(--nvc-border))!important;
}

/* Skeleton AJAX recebe proporções próximas do resultado final */
.novera-chapter #comments .comments-skeleton__response{
  height:150px!important;
  border-radius:12px!important;
}
.novera-chapter #comments .comments-skeleton__list{
  margin-top:34px!important;
}

/* Dark mode Fictioneer */
html[data-mode="dark"] body.novera-chapter #comments .nvc-comment-rules,
html[data-mode="dark"] body.novera-chapter #comments .fictioneer-respond,
html[data-mode="dark"] body.novera-chapter #comments .fictioneer-comment__container{
  background:color-mix(in srgb,var(--page-bg-color,#111b27) 90%,#172536 10%)!important;
  border-color:var(--layout-lineart-color,#33465a)!important;
}

/* Light mode */
html[data-mode="light"] body.novera-chapter #comments .nvc-comment-rules,
html[data-mode="light"] body.novera-chapter #comments .fictioneer-respond,
html[data-mode="light"] body.novera-chapter #comments .fictioneer-comment__container{
  background:#fff!important;
}

@media(max-width:700px){
  .novera-chapter #comments.fictioneer-comments{margin-top:32px!important}
  .novera-chapter #comments .nvc-comment-rules{margin-bottom:34px!important}
  .novera-chapter #comments .nvc-comment-rules__body p{font-size:.75rem!important}
  .novera-chapter #comments .fictioneer-respond{padding:10px!important}
  .novera-chapter #comments .fictioneer-respond__form-comment textarea{min-height:118px!important;padding:11px!important}
  .novera-chapter #comments .fictioneer-comment__container{padding:12px!important}
  .novera-chapter #comments .fictioneer-comment > ol,
  .novera-chapter #comments .fictioneer-comment > ul{margin-left:7px!important;padding-left:9px!important}
}


/* ==========================================================
   NOVERA CHAPTER v0.3.2 — refinamento estrutural dos comentários
   ========================================================== */

/* Abre a seção: remove o grande cartão externo que prendia tudo. */
.novera-chapter #comments.fictioneer-comments{
  max-width:1000px!important;
  margin:48px auto 0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  border-radius:0!important;
}

/* Garante que wrappers internos não recriem um contêiner gigante. */
.novera-chapter #comments .fictioneer-comments__inner,
.novera-chapter #comments .fictioneer-comments__wrapper,
.novera-chapter #comments .fictioneer-comments__content{
  padding:0!important;
  margin:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}

/* Regras com presença mais próxima da referência. */
.novera-chapter #comments .nvc-comment-rules{
  margin:0 0 46px!important;
  border-radius:11px!important;
}
.novera-chapter #comments .nvc-comment-rules__title{
  padding:9px 13px!important;
}
.novera-chapter #comments .nvc-comment-rules__body{
  padding:12px 14px 13px!important;
}

/* Separador entre regras e conversa. */
.novera-chapter #comments .fictioneer-comments__header{
  position:relative!important;
  margin-top:0!important;
  padding-top:27px!important;
}
.novera-chapter #comments .fictioneer-comments__header:before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:1px;
  background:var(--nvc-border);
  opacity:.7;
}

/* Kicker acima da contagem. */
.novera-chapter #comments .nvc-comments-kicker{
  margin-bottom:5px!important;
}
.novera-chapter #comments .fictioneer-comments__title{
  font-size:1rem!important;
  font-weight:850!important;
}

/* Formulário sem o excesso de borda dupla. */
.novera-chapter #comments .fictioneer-respond{
  margin:0 0 34px!important;
  padding:12px!important;
}
.novera-chapter #comments .fictioneer-respond__form-comment textarea{
  min-height:124px!important;
}

/* Botão Publicar visível e destacado mesmo em variações do tema. */
.novera-chapter #comments button[type="submit"],
.novera-chapter #comments input[type="submit"],
.novera-chapter #comments .fictioneer-respond__form-submit{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  visibility:visible!important;
  opacity:1!important;
  min-height:36px!important;
  padding:8px 14px!important;
  border:0!important;
  border-radius:8px!important;
  background:var(--nvc-blue)!important;
  color:#fff!important;
  font-size:.72rem!important;
  font-weight:800!important;
}

/* Cards de comentários separados, sem caixa interna escura pesada. */
.novera-chapter #comments .fictioneer-comments__list{
  margin-top:8px!important;
}
.novera-chapter #comments .fictioneer-comment__container{
  margin-bottom:12px!important;
  padding:13px 14px!important;
  border-radius:11px!important;
}
.novera-chapter #comments .fictioneer-comment__body{
  margin-top:7px!important;
}

/* Modo escuro */
html[data-mode="dark"] body.novera-chapter #comments.fictioneer-comments{
  background:transparent!important;
}

/* Mobile */
@media(max-width:700px){
  .novera-chapter #comments.fictioneer-comments{
    margin-top:34px!important;
  }
  .novera-chapter #comments .fictioneer-comments__header{
    padding-top:22px!important;
  }
  .novera-chapter #comments .nvc-comment-rules{
    margin-bottom:34px!important;
  }
}


/* ==========================================================
   NOVERA CHAPTER v0.3.3 — acabamento final da seção Comentários
   Remove a moldura externa restante e deixa cada bloco respirar.
   ========================================================== */

.novera-chapter #comments.fictioneer-comments,
.novera-chapter #comments.fictioneer-comments[class],
.novera-chapter .fictioneer-comments{
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
  background:transparent!important;
  border-radius:0!important;
  padding:0!important;
}

.novera-chapter #comments .fictioneer-comments__inner,
.novera-chapter #comments .fictioneer-comments__wrapper,
.novera-chapter #comments .fictioneer-comments__content,
.novera-chapter #comments .fictioneer-comments__body{
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
  background:transparent!important;
  border-radius:0!important;
  padding-left:0!important;
  padding-right:0!important;
}

/* Mantém largura editorial sem sensação de "caixa dentro de caixa". */
.novera-chapter #comments.fictioneer-comments{
  max-width:1000px!important;
}

/* Os blocos internos continuam independentes e legíveis. */
.novera-chapter #comments .nvc-comment-rules,
.novera-chapter #comments .fictioneer-respond,
.novera-chapter #comments .fictioneer-comment__container{
  box-shadow:none!important;
}

/* Um pouco mais de respiro entre conversa e formulário. */
.novera-chapter #comments .fictioneer-comments__header{
  margin-bottom:20px!important;
}
.novera-chapter #comments .fictioneer-respond{
  margin-bottom:34px!important;
}


/* ==========================================================
   NOVERA CHAPTER v0.3.4 — AJUSTE FINAL DE LEITURA/NAVEGAÇÃO/COMENTÁRIOS
   Inspirado na referência, mantendo identidade e funções da Novera.
   ========================================================== */

/* ----------------------------------------------------------
   1. LARGURA / ALINHAMENTO GERAL
   ---------------------------------------------------------- */

/* Leitura mais ampla no desktop, sem perder conforto. */
.novera-chapter #chapter-content,
.novera-chapter .chapter__content,
.novera-chapter .chapter__actions--bottom,
.novera-chapter #comments.fictioneer-comments{
  width:min(100%,1080px)!important;
  max-width:1080px!important;
  margin-left:auto!important;
  margin-right:auto!important;
}

/* Mantém o texto legível mesmo com o contêiner geral mais largo. */
.novera-chapter #chapter-content{
  padding-left:28px!important;
  padding-right:28px!important;
}

/* ----------------------------------------------------------
   2. NAVEGAÇÃO INFERIOR
   ---------------------------------------------------------- */

.novera-chapter .chapter__actions--bottom{
  margin-top:54px!important;
  margin-bottom:42px!important;
  padding:10px 12px!important;
  min-height:52px!important;
  border:1px solid var(--nvc-border)!important;
  border-radius:12px!important;
  background:transparent!important;
  box-shadow:none!important;
}

/* Distribuição como na referência: esquerda / centro / direita. */
.novera-chapter .chapter__actions--bottom{
  display:grid!important;
  grid-template-columns:1fr auto 1fr!important;
  align-items:center!important;
  gap:12px!important;
}

.novera-chapter .chapter__actions--bottom > :first-child{
  justify-self:start!important;
}

.novera-chapter .chapter__actions--bottom > :nth-child(2){
  justify-self:center!important;
}

.novera-chapter .chapter__actions--bottom > :last-child{
  justify-self:end!important;
}

/* Botões mais baixos e discretos, sem perder área de clique. */
.novera-chapter .chapter__actions--bottom .button,
.novera-chapter .chapter__actions--bottom button,
.novera-chapter .chapter__actions--bottom a{
  min-height:34px!important;
  border-radius:7px!important;
}

/* Anterior / Próximo com aspecto mais editorial. */
.novera-chapter .chapter__actions--bottom .chapter__actions-button,
.novera-chapter .chapter__actions--bottom [class*="previous"],
.novera-chapter .chapter__actions--bottom [class*="next"]{
  font-size:.72rem!important;
  letter-spacing:.02em!important;
}

/* ----------------------------------------------------------
   3. TRANSIÇÃO NAVEGAÇÃO -> COMENTÁRIOS
   ---------------------------------------------------------- */

.novera-chapter #comments.fictioneer-comments{
  margin-top:0!important;
}

/* ----------------------------------------------------------
   4. REGRAS / CABEÇALHO DOS COMENTÁRIOS
   ---------------------------------------------------------- */

.novera-chapter #comments .nvc-comment-rules{
  margin-bottom:50px!important;
  border-radius:11px!important;
}

.novera-chapter #comments .fictioneer-comments__header{
  margin-bottom:18px!important;
  padding-top:26px!important;
}

/* ----------------------------------------------------------
   5. FORMULÁRIO DE COMENTÁRIOS
   ---------------------------------------------------------- */

.novera-chapter #comments .fictioneer-respond{
  margin-bottom:30px!important;
  padding:14px!important;
  border-radius:11px!important;
}

.novera-chapter #comments .fictioneer-respond__form-comment textarea{
  min-height:132px!important;
  border-radius:8px!important;
}

/* ----------------------------------------------------------
   6. LISTA / CARDS DE COMENTÁRIOS
   ---------------------------------------------------------- */

/* Mais próximos da referência: largos, baixos e bem separados. */
.novera-chapter #comments .fictioneer-comments__list{
  margin-top:16px!important;
}

.novera-chapter #comments .fictioneer-comment{
  margin-bottom:14px!important;
}

.novera-chapter #comments .fictioneer-comment__container{
  padding:12px 14px 11px!important;
  border-radius:10px!important;
  min-height:96px!important;
}

/* Cabeçalho compacto. */
.novera-chapter #comments .fictioneer-comment__header{
  display:flex!important;
  align-items:flex-start!important;
  gap:9px!important;
  margin-bottom:7px!important;
}

.novera-chapter #comments .fictioneer-comment__header .avatar{
  width:32px!important;
  height:32px!important;
  border-radius:6px!important;
  flex:0 0 auto!important;
}

/* Nome mais presente; metadados menores. */
.novera-chapter #comments .fictioneer-comment__author{
  font-size:.74rem!important;
  font-weight:800!important;
}

.novera-chapter #comments .fictioneer-comment__info{
  font-size:.58rem!important;
  line-height:1.25!important;
  opacity:.82!important;
}

/* Texto com melhor respiração. */
.novera-chapter #comments .fictioneer-comment__body{
  margin-top:6px!important;
  padding-bottom:8px!important;
  font-size:.83rem!important;
  line-height:1.55!important;
  border-bottom:1px solid color-mix(in srgb,var(--nvc-border) 72%,transparent)!important;
}

/* Rodapé do comentário: responder e ações discretos. */
.novera-chapter #comments .fictioneer-comment__footer{
  margin-top:8px!important;
  min-height:22px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
}

.novera-chapter #comments .fictioneer-comment__actions{
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
}

.novera-chapter #comments .comment-reply-link,
.novera-chapter #comments .fictioneer-comment__actions a,
.novera-chapter #comments .fictioneer-comment__actions button{
  font-size:.62rem!important;
  font-weight:800!important;
  text-transform:uppercase!important;
  letter-spacing:.035em!important;
}

/* Ordenação mais próxima da referência, sem ocupar largura excessiva. */
.novera-chapter #comments .sort-order-filter._comments{
  margin:2px 0 12px!important;
  text-align:right!important;
}

/* Respostas encadeadas um pouco menos recuadas. */
.novera-chapter #comments .fictioneer-comment > ol,
.novera-chapter #comments .fictioneer-comment > ul{
  margin-top:10px!important;
  margin-left:14px!important;
  padding-left:12px!important;
}

/* ----------------------------------------------------------
   7. DARK / LIGHT
   ---------------------------------------------------------- */

html[data-mode="dark"] body.novera-chapter .chapter__actions--bottom{
  border-color:var(--layout-lineart-color,#33465a)!important;
}

html[data-mode="light"] body.novera-chapter .chapter__actions--bottom{
  border-color:var(--nvc-border)!important;
}

/* ----------------------------------------------------------
   8. TABLET / MOBILE
   ---------------------------------------------------------- */

@media(max-width:900px){
  .novera-chapter #chapter-content,
  .novera-chapter .chapter__content,
  .novera-chapter .chapter__actions--bottom,
  .novera-chapter #comments.fictioneer-comments{
    width:min(100%,94vw)!important;
  }

  .novera-chapter #chapter-content{
    padding-left:18px!important;
    padding-right:18px!important;
  }
}

@media(max-width:700px){
  .novera-chapter .chapter__actions--bottom{
    margin-top:38px!important;
    margin-bottom:30px!important;
    grid-template-columns:auto 1fr auto!important;
    padding:8px!important;
    min-height:48px!important;
  }

  .novera-chapter #chapter-content{
    padding-left:10px!important;
    padding-right:10px!important;
  }

  .novera-chapter #comments .nvc-comment-rules{
    margin-bottom:34px!important;
  }

  .novera-chapter #comments .fictioneer-comment__container{
    padding:11px 12px 10px!important;
  }

  .novera-chapter #comments .fictioneer-comment__body{
    font-size:.8rem!important;
  }

  .novera-chapter #comments .fictioneer-comment__footer{
    align-items:flex-start!important;
  }
}


/* ==========================================================
   NOVERA CHAPTER v0.3.5 — acabamento final da área de comentários
   Remove o painel cinza externo e aproxima a seção da referência.
   ========================================================== */

/* A seção inteira não deve parecer um cartão gigante. */
.novera-chapter #comments.fictioneer-comments,
.novera-chapter .fictioneer-comments,
.novera-chapter #comments .fictioneer-comments__inner,
.novera-chapter #comments .fictioneer-comments__wrapper,
.novera-chapter #comments .fictioneer-comments__content,
.novera-chapter #comments .fictioneer-comments__body{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  outline:0!important;
  border-radius:0!important;
}

/* Mais largura útil no desktop. */
.novera-chapter #comments.fictioneer-comments{
  width:min(100%,1120px)!important;
  max-width:1120px!important;
  margin-left:auto!important;
  margin-right:auto!important;
  padding:0!important;
}

/* Menos vazio entre navegação inferior e regras. */
.novera-chapter .chapter__actions--bottom{
  margin-bottom:26px!important;
}
.novera-chapter #comments.fictioneer-comments{
  margin-top:0!important;
}

/* Regras: bloco próprio, leve. */
.novera-chapter #comments .nvc-comment-rules{
  margin:0 0 38px!important;
  background:var(--nvc-surface)!important;
  border:1px solid var(--nvc-border)!important;
  box-shadow:none!important;
}

/* Cabeçalho da conversa com separador sutil. */
.novera-chapter #comments .fictioneer-comments__header{
  margin:0 0 16px!important;
  padding-top:22px!important;
}
.novera-chapter #comments .fictioneer-comments__header:before{
  opacity:.45!important;
}

/* Formulário como card independente, sem moldura externa adicional. */
.novera-chapter #comments .fictioneer-respond{
  margin:0 0 28px!important;
  background:var(--nvc-surface)!important;
  border:1px solid var(--nvc-border)!important;
  box-shadow:none!important;
}

/* Comentários independentes. */
.novera-chapter #comments .fictioneer-comment__container{
  background:var(--nvc-surface)!important;
  border:1px solid var(--nvc-border)!important;
  box-shadow:none!important;
}

/* Light mode: branco limpo, sem painel cinza. */
html[data-mode="light"] body.novera-chapter #comments.fictioneer-comments,
html[data-mode="light"] body.novera-chapter .fictioneer-comments,
html[data-mode="light"] body.novera-chapter #comments .fictioneer-comments__inner,
html[data-mode="light"] body.novera-chapter #comments .fictioneer-comments__wrapper,
html[data-mode="light"] body.novera-chapter #comments .fictioneer-comments__content,
html[data-mode="light"] body.novera-chapter #comments .fictioneer-comments__body{
  background:transparent!important;
}
html[data-mode="light"] body.novera-chapter #comments .nvc-comment-rules,
html[data-mode="light"] body.novera-chapter #comments .fictioneer-respond,
html[data-mode="light"] body.novera-chapter #comments .fictioneer-comment__container{
  background:#fff!important;
}

/* Dark mode: acompanha a superfície do leitor, sem bloco externo. */
html[data-mode="dark"] body.novera-chapter #comments.fictioneer-comments,
html[data-mode="dark"] body.novera-chapter .fictioneer-comments{
  background:transparent!important;
}
html[data-mode="dark"] body.novera-chapter #comments .nvc-comment-rules,
html[data-mode="dark"] body.novera-chapter #comments .fictioneer-respond,
html[data-mode="dark"] body.novera-chapter #comments .fictioneer-comment__container{
  background:color-mix(in srgb,var(--page-bg-color,#111b27) 90%,#172536 10%)!important;
  border-color:var(--layout-lineart-color,#33465a)!important;
}

/* Mobile */
@media(max-width:900px){
  .novera-chapter #comments.fictioneer-comments{
    width:min(100%,94vw)!important;
  }
}
@media(max-width:700px){
  .novera-chapter .chapter__actions--bottom{
    margin-bottom:22px!important;
  }
  .novera-chapter #comments .nvc-comment-rules{
    margin-bottom:30px!important;
  }
}


/* ==========================================================
   NOVERA CHAPTER v0.3.6 — largura dos comentários = navegação inferior
   ========================================================== */

/* Define uma largura editorial única para a navegação inferior e comentários. */
.novera-chapter .chapter__actions--bottom,
.novera-chapter #comments.fictioneer-comments{
  width:min(100%,1080px)!important;
  max-width:1080px!important;
  margin-left:auto!important;
  margin-right:auto!important;
}

/* Remove definitivamente qualquer moldura externa remanescente. */
.novera-chapter #comments.fictioneer-comments,
.novera-chapter #comments.fictioneer-comments[class],
.novera-chapter .fictioneer-comments,
.novera-chapter #comments .fictioneer-comments__inner,
.novera-chapter #comments .fictioneer-comments__wrapper,
.novera-chapter #comments .fictioneer-comments__content,
.novera-chapter #comments .fictioneer-comments__body{
  background:transparent!important;
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
  border-radius:0!important;
  padding-left:0!important;
  padding-right:0!important;
}

/* Os blocos internos usam toda a largura disponível. */
.novera-chapter #comments .nvc-comment-rules,
.novera-chapter #comments .fictioneer-respond,
.novera-chapter #comments .fictioneer-comments__list,
.novera-chapter #comments .fictioneer-comment,
.novera-chapter #comments .fictioneer-comment__container{
  width:100%!important;
  max-width:none!important;
}

/* Mantém respiro interno sem deixar o conteúdo "esticado". */
.novera-chapter #comments .nvc-comment-rules__body,
.novera-chapter #comments .fictioneer-respond,
.novera-chapter #comments .fictioneer-comment__container{
  box-sizing:border-box!important;
}

/* Alinhamento vertical entre fim do capítulo e conversa. */
.novera-chapter .chapter__actions--bottom{
  margin-bottom:24px!important;
}
.novera-chapter #comments.fictioneer-comments{
  margin-top:0!important;
}

/* Light mode */
html[data-mode="light"] body.novera-chapter #comments.fictioneer-comments,
html[data-mode="light"] body.novera-chapter .fictioneer-comments{
  background:transparent!important;
}

/* Dark mode */
html[data-mode="dark"] body.novera-chapter #comments.fictioneer-comments,
html[data-mode="dark"] body.novera-chapter .fictioneer-comments{
  background:transparent!important;
}

/* Tablet/mobile: ambas continuam com a mesma largura relativa. */
@media(max-width:900px){
  .novera-chapter .chapter__actions--bottom,
  .novera-chapter #comments.fictioneer-comments{
    width:min(100%,94vw)!important;
  }
}

@media(max-width:700px){
  .novera-chapter .chapter__actions--bottom,
  .novera-chapter #comments.fictioneer-comments{
    width:min(100%,94vw)!important;
  }
}


/* ==========================================================
   NOVERA CHAPTER v0.3.7 — wrapper externo dos comentários
   Alinha o bloco inteiro à mesma largura da navegação inferior.
   ========================================================== */

/* Largura editorial única usada pela barra inferior e por toda a seção de comentários. */
.novera-chapter{
  --nvc-reader-wide:1080px;
}

.novera-chapter .chapter__actions--bottom{
  width:min(100%,var(--nvc-reader-wide))!important;
  max-width:var(--nvc-reader-wide)!important;
  margin-left:auto!important;
  margin-right:auto!important;
}

/*
 * Fictioneer envolve #comments em wrappers próprios.
 * Em versões anteriores, apenas #comments foi ampliado e o pai continuou estreito.
 * Aqui abrimos toda a cadeia de wrappers plausíveis sem alterar a funcionalidade.
 */
.novera-chapter .chapter__comments,
.novera-chapter .chapter-comments,
.novera-chapter .comments,
.novera-chapter .comments-wrapper,
.novera-chapter .comments-container,
.novera-chapter .fictioneer-comments-wrapper,
.novera-chapter .fictioneer-comments-container,
.novera-chapter [class*="chapter__comments"],
.novera-chapter [class*="comments-wrapper"],
.novera-chapter [class*="comments-container"]{
  width:min(100%,var(--nvc-reader-wide))!important;
  max-width:var(--nvc-reader-wide)!important;
  margin-left:auto!important;
  margin-right:auto!important;
  padding-left:0!important;
  padding-right:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}

/* O próprio #comments acompanha exatamente o wrapper aberto. */
.novera-chapter #comments.fictioneer-comments{
  width:100%!important;
  max-width:none!important;
  margin-left:0!important;
  margin-right:0!important;
  padding-left:0!important;
  padding-right:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  outline:0!important;
  border-radius:0!important;
}

/* Se o tema aplicar max-width diretamente em elementos internos, removemos a limitação. */
.novera-chapter #comments .fictioneer-comments__inner,
.novera-chapter #comments .fictioneer-comments__wrapper,
.novera-chapter #comments .fictioneer-comments__content,
.novera-chapter #comments .fictioneer-comments__body{
  width:100%!important;
  max-width:none!important;
  margin-left:0!important;
  margin-right:0!important;
  padding-left:0!important;
  padding-right:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  border-radius:0!important;
}

/* Blocos internos continuam ocupando 100% da largura disponível. */
.novera-chapter #comments .nvc-comment-rules,
.novera-chapter #comments .fictioneer-respond,
.novera-chapter #comments .fictioneer-comments__list,
.novera-chapter #comments .fictioneer-comment,
.novera-chapter #comments .fictioneer-comment__container{
  width:100%!important;
  max-width:none!important;
  box-sizing:border-box!important;
}

/* Mantém respiro visual entre barra e comentários. */
.novera-chapter .chapter__actions--bottom{
  margin-bottom:24px!important;
}
.novera-chapter #comments.fictioneer-comments{
  margin-top:0!important;
}

/* Tablet e celular: largura relativa igual para ambos. */
@media(max-width:900px){
  .novera-chapter{
    --nvc-reader-wide:94vw;
  }
}

@media(max-width:700px){
  .novera-chapter{
    --nvc-reader-wide:94vw;
  }
}


/* ==========================================================
   NOVERA CHAPTER v0.3.8 — refinamento do cabeçalho de leitura
   Pequenos ajustes de CSS + correção da relação da obra no PHP.
   ========================================================== */

/* O nome da obra permanece no contexto editorial criado pelo plugin.
   Evita duplicar o link nativo do Fictioneer dentro do headline. */
.novera-chapter.nvc-reading-layout-enabled .chapter__story-link{
  display:none!important;
}

/* Aproxima visualmente contexto, título e autoria. */
.novera-chapter.nvc-reading-layout-enabled .nvc-reading-context{
  margin-top:-8px!important;
  margin-bottom:10px!important;
}

.novera-chapter.nvc-reading-layout-enabled .chapter__headline{
  margin-top:0!important;
  margin-bottom:clamp(24px,3vw,34px)!important;
}

/* Título menos dominante no desktop. */
.novera-chapter.nvc-reading-layout-enabled .chapter__title{
  max-width:920px!important;
  margin:.04em auto .26em!important;
  font-size:clamp(2rem,3.45vw,3.2rem)!important;
  line-height:1.08!important;
  letter-spacing:-.032em!important;
}

/* Nome da obra no mesmo contexto de CAP. / tempo, com affordance de link. */
.novera-chapter .nvc-reading-context .nvc-story-name{
  display:inline-flex!important;
  align-items:center;
  max-width:min(44vw,360px);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:var(--nvc-blue)!important;
  font-weight:850!important;
  opacity:.92!important;
  text-decoration:none!important;
}
.novera-chapter .nvc-reading-context .nvc-story-name:hover,
.novera-chapter .nvc-reading-context .nvc-story-name:focus-visible{
  opacity:1!important;
  text-decoration:underline!important;
  text-underline-offset:3px;
}

/* A área de leitura acompanha a superfície real do tema em vez de criar
   uma segunda faixa clara/escura visualmente separada. */
.novera-chapter .main.chapter,
.novera-chapter .main.chapter > .main__wrapper,
.novera-chapter .chapter__article,
.novera-chapter .chapter__headline,
.novera-chapter #chapter-content.chapter__content{
  background:transparent!important;
}

/* Mantém os controles como elemento próprio, mas sem contaminar o fundo
   do cabeçalho/título. */
html[data-mode="light"] body.novera-chapter .chapter__article,
html[data-mode="light"] body.novera-chapter .chapter__headline,
html[data-mode="light"] body.novera-chapter #chapter-content.chapter__content,
html[data-mode="dark"] body.novera-chapter .chapter__article,
html[data-mode="dark"] body.novera-chapter .chapter__headline,
html[data-mode="dark"] body.novera-chapter #chapter-content.chapter__content{
  background:transparent!important;
}

@media(max-width:700px){
  .novera-chapter.nvc-reading-layout-enabled .nvc-reading-context{
    margin-top:-6px!important;
    margin-bottom:9px!important;
    gap:6px!important;
    row-gap:5px!important;
  }
  .novera-chapter .nvc-reading-context .nvc-story-name{
    max-width:72vw;
  }
  .novera-chapter.nvc-reading-layout-enabled .chapter__headline{
    margin-bottom:26px!important;
  }
  .novera-chapter.nvc-reading-layout-enabled .chapter__title{
    font-size:clamp(1.72rem,7.4vw,2.35rem)!important;
    line-height:1.1!important;
  }
}


/* v0.3.9 — refinamento visual do cabeçalho do capítulo
   - Fundo igual ao padrão do tema claro/escuro
   - Título menor em desktop e mobile
   - Menor distância entre metadados e título
   - Preserva barra de controles e funcionalidades existentes
*/

/* Mantém a área hero do capítulo integrada ao fundo padrão da página */
.novera-chapter-hero,
.novera-chapter-header,
.nv-chapter-hero,
.nv-chapter-header,
.chapter-header,
.chapter-header__inner {
  background: transparent !important;
  background-color: transparent !important;
}

/* Caso a v0.3.8 use um wrapper próprio que herde uma cor fixa */
body .novera-chapter-page .novera-chapter-hero,
body .novera-chapter-page .novera-chapter-header,
body .novera-chapter-page .nv-chapter-hero,
body .novera-chapter-page .nv-chapter-header {
  background: var(--page-bg-color, transparent) !important;
  background-color: var(--page-bg-color, transparent) !important;
}

/* Aproxima a linha "obra • cap • min" do título */
.novera-chapter-meta,
.nv-chapter-meta,
.chapter-meta,
.chapter-header__meta {
  margin-bottom: 18px !important;
}

/* Reduz o título no desktop */
.novera-chapter-title,
.nv-chapter-title,
.chapter-title,
.chapter-header__title,
.entry-title.novera-chapter-title {
  font-size: clamp(2rem, 3.2vw, 3.35rem) !important;
  line-height: 1.08 !important;
  margin-top: 0 !important;
  margin-bottom: 10px !important;
}

/* Se a estrutura usa um bloco interno com gap, reduz sem afetar controles */
.novera-chapter-hero__content,
.novera-chapter-header__content,
.nv-chapter-hero__content,
.nv-chapter-header__content,
.chapter-header__content {
  row-gap: 0 !important;
  gap: 0 !important;
}

/* Mobile */
@media (max-width: 768px) {
  .novera-chapter-meta,
  .nv-chapter-meta,
  .chapter-meta,
  .chapter-header__meta {
    margin-bottom: 12px !important;
  }

  .novera-chapter-title,
  .nv-chapter-title,
  .chapter-title,
  .chapter-header__title,
  .entry-title.novera-chapter-title {
    font-size: clamp(1.7rem, 7vw, 2.35rem) !important;
    line-height: 1.1 !important;
    margin-bottom: 8px !important;
  }
}

/* ==========================================================
   NOVERA CHAPTER v0.3.13 — CABEÇALHO EDITORIAL
   Escopo isolado: contexto, título, autoria e espaçamentos.
   Não altera conteúdo, navegação, comentários, PWA ou áudio.
   ========================================================== */

/* Linha editorial acima do título: obra • capítulo • duração. */
body.novera-chapter.nvc-reading-layout-enabled .nvc-reading-context{
  width:min(100%, 820px)!important;
  max-width:820px!important;
  min-height:20px;
  margin:0 auto 18px!important;
  padding:0 12px!important;
  display:flex!important;
  justify-content:center!important;
  align-items:center!important;
  flex-wrap:wrap!important;
  gap:7px 10px!important;
  color:var(--nvc-muted)!important;
  font-size:clamp(.66rem,.18vw + .63rem,.72rem)!important;
  font-weight:750!important;
  line-height:1.4!important;
  letter-spacing:.13em!important;
  text-align:center!important;
}

body.novera-chapter .nvc-reading-context .nvc-story-name{
  max-width:min(52vw,390px)!important;
  color:var(--nvc-blue)!important;
  font-weight:850!important;
  opacity:1!important;
  text-decoration:none!important;
  text-overflow:ellipsis;
  white-space:nowrap;
  overflow:hidden;
}

body.novera-chapter .nvc-reading-context .nvc-story-name:hover{
  text-decoration:underline!important;
  text-decoration-thickness:1px!important;
  text-underline-offset:4px!important;
}

body.novera-chapter .nvc-reading-context .nvc-story-name:focus-visible{
  border-radius:3px;
  outline:2px solid var(--nvc-blue)!important;
  outline-offset:4px;
}

body.novera-chapter .nvc-reading-context__sep{
  color:var(--nvc-muted)!important;
  opacity:.48!important;
}

body.novera-chapter .nvc-position,
body.novera-chapter .nvc-reading-time,
body.novera-chapter .nvc-reading-views{
  color:var(--nvc-muted)!important;
  opacity:.82!important;
}

/* Bloco do título integrado ao fundo do Fictioneer. */
body.novera-chapter.nvc-reading-layout-enabled .chapter__headline{
  position:relative!important;
  width:min(100%, 900px)!important;
  max-width:900px!important;
  margin:0 auto clamp(38px,4.2vw,54px)!important;
  padding:0 12px 22px!important;
  background:transparent!important;
  text-align:center!important;
}

/* Pequeno acabamento azul, sem transformar o cabeçalho em card. */
body.novera-chapter.nvc-reading-layout-enabled .chapter__headline::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:0;
  width:34px;
  height:3px;
  border-radius:999px;
  background:var(--nvc-blue);
  transform:translateX(-50%);
  opacity:.9;
}

body.novera-chapter.nvc-reading-layout-enabled .chapter__title{
  width:100%!important;
  max-width:850px!important;
  margin:0 auto 14px!important;
  color:var(--fg-400,var(--nvc-text))!important;
  font-size:clamp(2.15rem,3.35vw,3.35rem)!important;
  font-weight:800!important;
  line-height:1.06!important;
  letter-spacing:-.042em!important;
  text-align:center!important;
  text-wrap:balance;
  overflow-wrap:anywhere;
}

body.novera-chapter.nvc-reading-layout-enabled .chapter__author{
  display:block!important;
  margin:0!important;
  color:var(--nvc-muted)!important;
  font-size:.82rem!important;
  font-weight:450!important;
  line-height:1.5!important;
  opacity:.76!important;
  text-align:center!important;
}

body.novera-chapter.nvc-reading-layout-enabled .chapter__author a{
  color:inherit!important;
  font-weight:600!important;
  text-decoration:none!important;
}

body.novera-chapter.nvc-reading-layout-enabled .chapter__author a:hover{
  color:var(--nvc-blue)!important;
}

/* Mantém os controles superiores fora do escopo visual do título. */
body.novera-chapter.nvc-reading-layout-enabled .chapter__actions--top{
  margin-bottom:clamp(32px,4.2vw,48px)!important;
}

@media(max-width:700px){
  body.novera-chapter.nvc-reading-layout-enabled .chapter__actions--top{
    margin-bottom:24px!important;
  }

  body.novera-chapter.nvc-reading-layout-enabled .nvc-reading-context{
    width:100%!important;
    margin-bottom:16px!important;
    padding-inline:4px!important;
    gap:5px 7px!important;
    font-size:.65rem!important;
    letter-spacing:.105em!important;
  }

  body.novera-chapter .nvc-reading-context .nvc-story-name{
    max-width:74vw!important;
  }

  body.novera-chapter.nvc-reading-layout-enabled .chapter__headline{
    width:100%!important;
    margin-bottom:38px!important;
    padding:0 0 19px!important;
  }

  body.novera-chapter.nvc-reading-layout-enabled .chapter__title{
    max-width:460px!important;
    margin-bottom:12px!important;
    font-size:clamp(1.9rem,7.7vw,2.45rem)!important;
    line-height:1.05!important;
    letter-spacing:-.038em!important;
  }

  body.novera-chapter.nvc-reading-layout-enabled .chapter__author{
    font-size:.8rem!important;
  }
}

@media(max-width:390px){
  body.novera-chapter.nvc-reading-layout-enabled .nvc-reading-context{
    font-size:.61rem!important;
    letter-spacing:.09em!important;
  }

  body.novera-chapter.nvc-reading-layout-enabled .chapter__title{
    font-size:clamp(1.75rem,8.2vw,2.1rem)!important;
  }
}


/* ==========================================================
   Novera Chapter v0.3.10 — Apoio ao autor
   Apenas apresentação. Os links continuam 100% nativos
   do Fictioneer (Patreon, Ko-fi, SubscribeStar, PayPal e Doação).
   ========================================================== */

/* O Fictioneer usa .chapter-support para o bloco de apoio.
   Mantemos o DOM e os hrefs originais, alterando só aparência. */
body.novera-chapter-active .chapter-support,
body .novera-chapter-page .chapter-support,
body.single-fcn_chapter .chapter-support {
  width: min(100%, 920px);
  margin-inline: auto;
  padding: 24px 20px 22px;
  border: 1px solid color-mix(in srgb, currentColor 10%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--page-bg-color, #fff) 94%, currentColor 2%);
  box-shadow: none;
  text-align: center;
}

/* Título nativo */
body.novera-chapter-active .chapter-support__title,
body .novera-chapter-page .chapter-support__title,
body.single-fcn_chapter .chapter-support__title {
  margin: 0 0 16px !important;
  color: var(--fg-500, var(--text-color, currentColor));
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .035em;
  text-transform: uppercase;
}

/* Lista dos links */
body.novera-chapter-active .chapter-support__links,
body .novera-chapter-page .chapter-support__links,
body.single-fcn_chapter .chapter-support__links {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
}

/* Cada plataforma vira um botão discreto, mantendo ícone e texto do tema */
body.novera-chapter-active .chapter-support__links > a,
body .novera-chapter-page .chapter-support__links > a,
body.single-fcn_chapter .chapter-support__links > a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 8px 15px;
  border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
  border-radius: 9px;
  background: transparent;
  color: var(--fg-600, var(--text-color, currentColor));
  font-size: .9rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none !important;
  transition:
    border-color .18s ease,
    background-color .18s ease,
    color .18s ease,
    transform .18s ease;
}

body.novera-chapter-active .chapter-support__links > a:hover,
body .novera-chapter-page .chapter-support__links > a:hover,
body.single-fcn_chapter .chapter-support__links > a:hover {
  border-color: var(--primary-400, var(--accent-color, #3b82f6));
  background: color-mix(in srgb, var(--primary-400, #3b82f6) 7%, transparent);
  color: var(--primary-500, var(--accent-color, #3b82f6));
  transform: translateY(-1px);
}

body.novera-chapter-active .chapter-support__links > a:focus-visible,
body .novera-chapter-page .chapter-support__links > a:focus-visible,
body.single-fcn_chapter .chapter-support__links > a:focus-visible {
  outline: 2px solid var(--primary-400, var(--accent-color, #3b82f6));
  outline-offset: 2px;
}

/* Ícones nativos do Fictioneer */
body.novera-chapter-active .chapter-support__links > a :is(i, svg),
body .novera-chapter-page .chapter-support__links > a :is(i, svg),
body.single-fcn_chapter .chapter-support__links > a :is(i, svg) {
  flex: 0 0 auto;
  font-size: 1rem;
}

/* Dark mode: segue o tema, sem cor fixa de fundo. */
html[data-mode="dark"] body.novera-chapter-active .chapter-support,
html[data-mode="dark"] body .novera-chapter-page .chapter-support,
html[data-mode="dark"] body.single-fcn_chapter .chapter-support {
  background: color-mix(in srgb, var(--page-bg-color, #111827) 96%, #fff 2%);
  border-color: color-mix(in srgb, #fff 10%, transparent);
}

html[data-mode="dark"] body.novera-chapter-active .chapter-support__links > a,
html[data-mode="dark"] body .novera-chapter-page .chapter-support__links > a,
html[data-mode="dark"] body.single-fcn_chapter .chapter-support__links > a {
  border-color: color-mix(in srgb, #fff 13%, transparent);
}

/* Mobile: botões quebram naturalmente em linhas, sem overflow. */
@media (max-width: 768px) {
  body.novera-chapter-active .chapter-support,
  body .novera-chapter-page .chapter-support,
  body.single-fcn_chapter .chapter-support {
    width: 100%;
    padding: 20px 14px 18px;
    border-radius: 12px;
  }

  body.novera-chapter-active .chapter-support__title,
  body .novera-chapter-page .chapter-support__title,
  body.single-fcn_chapter .chapter-support__title {
    margin-bottom: 13px !important;
    font-size: .76rem;
  }

  body.novera-chapter-active .chapter-support__links,
  body .novera-chapter-page .chapter-support__links,
  body.single-fcn_chapter .chapter-support__links {
    gap: 8px;
  }

  body.novera-chapter-active .chapter-support__links > a,
  body .novera-chapter-page .chapter-support__links > a,
  body.single-fcn_chapter .chapter-support__links > a {
    min-height: 40px;
    padding: 8px 12px;
    font-size: .84rem;
  }
}


/* ==========================================================
   Novera Chapter v0.3.11 — correção real da seção de apoio
   Fictioneer 5.35.3 usa:
   .chapter__support
   .chapter__support-message
   .chapter__support-links
   ========================================================== */

body.single-fcn_chapter .chapter__support {
  box-sizing: border-box;
  width: min(100%, 920px);
  margin: 2.2rem auto 0 !important;
  padding: 22px 20px 20px !important;
  border: 1px solid color-mix(in srgb, currentColor 11%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--page-bg-color, #ffffff) 96%, currentColor 2%);
  color: var(--fg-500);
  text-align: center;
  opacity: 1 !important;
}

body.single-fcn_chapter .chapter__support-message {
  margin: 0 0 14px !important;
  color: var(--fg-600);
  font-size: .78rem !important;
  font-weight: 700 !important;
  line-height: 1.35;
  letter-spacing: .035em;
  text-transform: uppercase;
  opacity: .82 !important;
}

body.single-fcn_chapter .chapter__support-links {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 !important;
}

body.single-fcn_chapter .chapter__support-links > a {
  box-sizing: border-box;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px;
  min-height: 42px !important;
  height: auto !important;
  padding: 9px 15px !important;
  border: 1px solid color-mix(in srgb, currentColor 15%, transparent);
  border-radius: 9px !important;
  background: transparent;
  color: var(--fg-600) !important;
  font-size: .88rem !important;
  font-weight: 650 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  opacity: 1 !important;
  transition:
    background-color .18s ease,
    border-color .18s ease,
    color .18s ease,
    transform .18s ease;
}

body.single-fcn_chapter .chapter__support-links > a:hover {
  background: color-mix(in srgb, var(--primary-400, #3b82f6) 8%, transparent) !important;
  border-color: var(--primary-400, #3b82f6) !important;
  color: var(--primary-500, #3b82f6) !important;
  transform: translateY(-1px);
}

body.single-fcn_chapter .chapter__support-links > a:focus-visible {
  outline: 2px solid var(--primary-400, #3b82f6);
  outline-offset: 2px;
  opacity: 1 !important;
}

body.single-fcn_chapter .chapter__support-links > a :is(i, .icon) {
  flex: 0 0 auto;
  margin-right: 0 !important;
  color: currentColor !important;
  opacity: 1 !important;
}

body.single-fcn_chapter .chapter__support-links .icon--kofi {
  height: 1.15em !important;
  width: auto;
  transform: none !important;
}

/* Dark mode: segue as variáveis do próprio Fictioneer */
html[data-mode="dark"] body.single-fcn_chapter .chapter__support,
html.dark body.single-fcn_chapter .chapter__support {
  background: color-mix(in srgb, var(--page-bg-color, #11131a) 96%, #ffffff 2%);
  border-color: color-mix(in srgb, #ffffff 11%, transparent);
}

html[data-mode="dark"] body.single-fcn_chapter .chapter__support-links > a,
html.dark body.single-fcn_chapter .chapter__support-links > a {
  border-color: color-mix(in srgb, #ffffff 14%, transparent);
}

/* Mobile */
@media (max-width: 768px) {
  body.single-fcn_chapter .chapter__support {
    width: 100%;
    margin-top: 1.8rem !important;
    padding: 18px 12px 16px !important;
    border-radius: 12px;
  }

  body.single-fcn_chapter .chapter__support-message {
    margin-bottom: 12px !important;
    font-size: .73rem !important;
  }

  body.single-fcn_chapter .chapter__support-links {
    gap: 8px !important;
  }

  body.single-fcn_chapter .chapter__support-links > a {
    min-height: 40px !important;
    padding: 8px 12px !important;
    font-size: .82rem !important;
  }
}


/* ==========================================================
   Novera Chapter v0.3.12 CORRIGIDA
   Acabamento perceptível da página de leitura.
   Base limpa: v0.3.11.
   ========================================================== */

/* LEITURA — Fictioneer usa a área .chapter__content / .chapter__content-content
   em diferentes configurações; :where cobre as variações sem mexer no DOM. */
body.single-fcn_chapter :where(
  .chapter__content,
  .chapter__content-content,
  .chapter-content,
  .chapter-content__content,
  .chapter .entry-content
) {
  max-width: 820px !important;
  margin-inline: auto !important;
  font-size: 17px !important;
  line-height: 1.82 !important;
}

/* Texto corrido */
body.single-fcn_chapter :where(
  .chapter__content,
  .chapter__content-content,
  .chapter-content,
  .chapter-content__content,
  .chapter .entry-content
) p {
  margin-block: 0 1.18em !important;
  line-height: inherit !important;
}

/* Evita que notas/links dominem visualmente o texto */
body.single-fcn_chapter :where(
  .chapter__content,
  .chapter__content-content,
  .chapter-content,
  .chapter-content__content,
  .chapter .entry-content
) a:not(.button):not([class*="button"]) {
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

/* CABEÇALHO — compactação visual sem tocar nos controles */
body.single-fcn_chapter :where(
  .chapter__header,
  .chapter-header,
  .novera-chapter-header,
  .nv-chapter-header
) {
  padding-bottom: 1.35rem !important;
}

body.single-fcn_chapter :where(
  .chapter__title,
  .chapter-title,
  .chapter-header__title,
  .novera-chapter-title,
  .nv-chapter-title
) {
  font-size: clamp(2rem, 3.1vw, 3.15rem) !important;
  line-height: 1.08 !important;
}

/* BARRA INFERIOR / NAVEGAÇÃO DO CAPÍTULO */
body.single-fcn_chapter :where(
  .chapter__footer,
  .chapter__footer-actions,
  .chapter__actions,
  .chapter-actions,
  .chapter-navigation,
  .chapter__navigation
) {
  border-radius: 10px !important;
}

/* REGRAS — inclui variações reais/comuns do Fictioneer */
body.single-fcn_chapter :where(
  .comment-rules,
  .comments-rules,
  .fictioneer-comment-rules,
  .fictioneer-comments__rules,
  .chapter-comments__rules
) {
  border-radius: 10px !important;
  overflow: hidden;
}

body.single-fcn_chapter :where(
  .comment-rules,
  .comments-rules,
  .fictioneer-comment-rules,
  .fictioneer-comments__rules,
  .chapter-comments__rules
) li {
  padding-block: 7px !important;
}

/* COMENTÁRIOS — captura o formulário nativo do WordPress/Fictioneer */
body.single-fcn_chapter :where(
  #comments,
  .comments-area,
  .comment-section,
  .fictioneer-comments,
  .chapter-comments
) {
  margin-top: 2rem !important;
}

body.single-fcn_chapter :where(
  #comments,
  .comments-area,
  .comment-section,
  .fictioneer-comments,
  .chapter-comments,
  .comment-respond
) textarea {
  box-sizing: border-box;
  width: 100% !important;
  min-height: 150px !important;
  padding: 14px 15px !important;
  border-radius: 9px !important;
  line-height: 1.6 !important;
  transition: border-color .18s ease, box-shadow .18s ease;
}

body.single-fcn_chapter :where(
  #comments,
  .comments-area,
  .comment-section,
  .fictioneer-comments,
  .chapter-comments,
  .comment-respond
) textarea:focus {
  outline: none !important;
  border-color: var(--primary-400, #3b82f6) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-400, #3b82f6) 12%, transparent) !important;
}

/* MOBILE — leitura confortável, sem alargar além da tela */
@media (max-width: 768px) {
  body.single-fcn_chapter :where(
    .chapter__content,
    .chapter__content-content,
    .chapter-content,
    .chapter-content__content,
    .chapter .entry-content
  ) {
    max-width: 100% !important;
    font-size: 16.5px !important;
    line-height: 1.78 !important;
  }

  body.single-fcn_chapter :where(
    .chapter__title,
    .chapter-title,
    .chapter-header__title,
    .novera-chapter-title,
    .nv-chapter-title
  ) {
    font-size: clamp(1.7rem, 7vw, 2.2rem) !important;
  }

  body.single-fcn_chapter :where(
    #comments,
    .comments-area,
    .comment-section,
    .fictioneer-comments,
    .chapter-comments,
    .comment-respond
  ) textarea {
    min-height: 125px !important;
  }
}

/* ==========================================================
   NOVERA CHAPTER v0.3.14 — CORPO EDITORIAL DA LEITURA
   Escopo isolado ao texto do capítulo. Mantém a formatação
   dinâmica do Fictioneer e não altera PWA, áudio ou controles.
   ========================================================== */

body.novera-chapter.nvc-reading-layout-enabled #chapter-content.chapter__content{
  box-sizing:border-box!important;
  width:min(100%,820px)!important;
  max-width:820px!important;
  margin-inline:auto!important;
  padding-inline:28px!important;
  font-size:18px!important;
  line-height:1.8!important;
}

/* O tamanho definido pelo leitor continua aplicado em porcentagem
   pelo próprio Fictioneer sobre esta base. */
body.novera-chapter.nvc-reading-layout-enabled #chapter-content > .chapter-formatting{
  max-width:100%!important;
  line-height:inherit!important;
  overflow-wrap:break-word;
  word-break:normal;
  -webkit-hyphens:none!important;
  hyphens:none!important;
}

/* Não força recuo nem alinhamento: essas escolhas continuam no
   painel nativo de formatação do Fictioneer. */
body.novera-chapter.nvc-reading-layout-enabled #chapter-content > .chapter-formatting > p{
  max-width:100%!important;
  margin-block:0 1.28em!important;
  line-height:inherit!important;
}

body.novera-chapter.nvc-reading-layout-enabled #chapter-content > .chapter-formatting > p:last-child{
  margin-bottom:0!important;
}

body.novera-chapter.nvc-reading-layout-enabled #chapter-content > .chapter-formatting > :is(h2,h3,h4,ul,ol,blockquote){
  margin-top:1.65em!important;
  margin-bottom:.9em!important;
}

@media(max-width:768px){
  body.novera-chapter.nvc-reading-layout-enabled #chapter-content.chapter__content{
    width:100%!important;
    max-width:100%!important;
    padding-inline:28px!important;
    font-size:17px!important;
    line-height:1.78!important;
  }

  body.novera-chapter.nvc-reading-layout-enabled #chapter-content > .chapter-formatting > p{
    margin-bottom:1.22em!important;
  }
}

@media(max-width:380px){
  body.novera-chapter.nvc-reading-layout-enabled #chapter-content.chapter__content{
    padding-inline:22px!important;
    font-size:16.5px!important;
  }
}

/* ==========================================================
   NOVERA CHAPTER v0.3.16 — FINAL DO CAPÍTULO E COMENTÁRIOS
   Somente acabamento visual. Preserva as ações nativas do
   Fictioneer e não interfere nos plugins PWA ou de áudio.
   ========================================================== */

/* Navegação final mais compacta e alinhada. */
body.novera-chapter .chapter__actions--bottom{
  box-sizing:border-box!important;
  min-height:56px!important;
  margin-top:48px!important;
  margin-bottom:0!important;
  padding:9px 12px!important;
  gap:12px!important;
}

body.novera-chapter .chapter__actions--bottom .chapter__actions-container{
  min-width:0;
  display:flex!important;
  align-items:center!important;
  gap:5px!important;
}

body.novera-chapter .chapter__actions--bottom .button{
  min-height:38px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
}

/* Índice com maior destaque, mantendo o modal nativo. */
body.novera-chapter .chapter__actions--bottom button[data-click-target="#fictioneer-chapter-index-dialog"]{
  color:var(--nvc-blue)!important;
  border-color:color-mix(in srgb,var(--nvc-blue) 42%,var(--nvc-border))!important;
}

@media(min-width:769px){
  body.novera-chapter .chapter__actions--bottom button[data-click-target="#fictioneer-chapter-index-dialog"]{
    gap:7px!important;
    padding-inline:12px!important;
  }

  body.novera-chapter .chapter__actions--bottom button[data-click-target="#fictioneer-chapter-index-dialog"]::after{
    content:"Capítulos";
    font-size:.72rem;
    font-weight:750;
  }
}

/* Aproxima a conversa da barra sem juntar visualmente os blocos. */
body.novera-chapter .chapter__comments.comment-section{
  margin-top:30px!important;
}

body.novera-chapter #comments .nvc-comment-rules{
  margin:0 0 32px!important;
}

body.novera-chapter #comments .nvc-comment-rules__title{
  padding:11px 14px!important;
  font-size:.66rem!important;
}

body.novera-chapter #comments .nvc-comment-rules__body{
  padding:14px 15px 15px!important;
}

body.novera-chapter #comments .nvc-comment-rules__body p{
  margin-bottom:7px!important;
  font-size:.86rem!important;
  line-height:1.5!important;
}

body.novera-chapter #comments .nvc-comment-rules__body small{
  margin-top:11px!important;
  padding-top:11px!important;
  font-size:.75rem!important;
  line-height:1.5!important;
}

body.novera-chapter #comments .fictioneer-comments__header{
  margin-bottom:16px!important;
  padding-top:20px!important;
}

body.novera-chapter #comments .fictioneer-respond{
  box-sizing:border-box!important;
  margin-bottom:30px!important;
  padding:16px!important;
}

body.novera-chapter #comments .fictioneer-respond__form-before-form{
  margin-bottom:12px!important;
  font-size:.78rem!important;
  line-height:1.5!important;
}

body.novera-chapter #comments .fictioneer-respond__form-comment textarea{
  min-height:140px!important;
  padding:14px!important;
  font-size:1rem!important;
  line-height:1.6!important;
}

body.novera-chapter #comments .fictioneer-respond__form-submit{
  min-height:40px!important;
  padding:9px 16px!important;
  font-size:.78rem!important;
}

@media(max-width:700px){
  body.novera-chapter .chapter__actions--bottom{
    min-height:54px!important;
    margin-top:38px!important;
    padding:7px!important;
    gap:7px!important;
  }

  body.novera-chapter .chapter__actions--bottom .button{
    min-height:40px!important;
  }

  body.novera-chapter .chapter__comments.comment-section{
    margin-top:24px!important;
    padding-bottom:96px!important;
  }

  body.novera-chapter #comments .nvc-comment-rules{
    margin-bottom:28px!important;
  }

  body.novera-chapter #comments .nvc-comment-rules__title{
    padding:10px 13px!important;
    font-size:.64rem!important;
  }

  body.novera-chapter #comments .nvc-comment-rules__body{
    padding:13px!important;
  }

  body.novera-chapter #comments .nvc-comment-rules__body p{
    font-size:.84rem!important;
    line-height:1.5!important;
  }

  body.novera-chapter #comments .nvc-comment-rules__body small{
    font-size:.74rem!important;
  }

  body.novera-chapter #comments .fictioneer-comments__header{
    padding-top:18px!important;
  }

  body.novera-chapter #comments .fictioneer-respond{
    padding:14px!important;
  }

  body.novera-chapter #comments .fictioneer-respond__form-comment textarea{
    min-height:132px!important;
    padding:12px!important;
    font-size:16px!important;
  }

  body.novera-chapter #comments .fictioneer-respond__form-submit{
    min-height:40px!important;
  }
}

/* ==========================================================
   NOVERA CHAPTER v0.3.18 — REAÇÕES RÁPIDAS
   Bloco próprio entre a leitura e a navegação final.
   ========================================================== */

body.novera-chapter .nvc-reactions{
  box-sizing:border-box;
  width:min(100%,820px);
  margin:54px auto 0;
  padding:24px;
  border:1px solid var(--nvc-border);
  border-radius:14px;
  background:color-mix(in srgb,var(--nvc-surface) 97%,var(--nvc-blue) 3%);
  text-align:center;
}

body.novera-chapter .nvc-reactions__eyebrow{
  margin-bottom:7px;
  color:var(--nvc-blue);
  font-size:.62rem;
  font-weight:900;
  letter-spacing:.16em;
}

body.novera-chapter .nvc-reactions__title{
  margin:0 0 19px!important;
  color:var(--nvc-text);
  font-size:clamp(1.15rem,1.4vw,1.35rem)!important;
  font-weight:800!important;
  line-height:1.3!important;
  letter-spacing:-.015em;
}

body.novera-chapter .nvc-reactions__options{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:9px;
}

body.novera-chapter .nvc-reactions__button{
  min-width:0;
  min-height:64px;
  padding:9px 8px;
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:7px;
  border:1px solid var(--nvc-border);
  border-radius:10px;
  background:transparent;
  color:var(--nvc-text);
  cursor:pointer;
  transition:border-color .16s ease,background .16s ease,transform .16s ease;
}

body.novera-chapter .nvc-reactions__button:not(:disabled):hover{
  border-color:color-mix(in srgb,var(--nvc-blue) 58%,var(--nvc-border));
  background:var(--nvc-blue-soft);
  transform:translateY(-1px);
}

body.novera-chapter .nvc-reactions__button:focus-visible{
  outline:2px solid var(--nvc-blue);
  outline-offset:2px;
}

body.novera-chapter .nvc-reactions__button.is-selected{
  border-color:var(--nvc-blue)!important;
  background:var(--nvc-blue-soft)!important;
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--nvc-blue) 32%,transparent);
}

body.novera-chapter .nvc-reactions__button:disabled{
  cursor:not-allowed;
  opacity:.62;
}

body.novera-chapter .nvc-reactions.is-loading .nvc-reactions__button{
  cursor:wait;
  opacity:.72;
}

body.novera-chapter .nvc-reactions__emoji{
  font-size:1.35rem;
  line-height:1;
}

body.novera-chapter .nvc-reactions__label{
  min-width:0;
  overflow:hidden;
  color:inherit;
  font-size:.76rem;
  font-weight:750;
  text-align:left;
  text-overflow:ellipsis;
  white-space:nowrap;
}

body.novera-chapter .nvc-reactions__count{
  min-width:25px;
  padding:4px 6px;
  border-radius:999px;
  background:color-mix(in srgb,var(--nvc-muted) 10%,transparent);
  color:var(--nvc-muted);
  font-size:.66rem;
  font-weight:800;
  line-height:1;
}

body.novera-chapter .nvc-reactions__button.is-selected .nvc-reactions__count{
  background:var(--nvc-blue);
  color:#fff;
}

body.novera-chapter .nvc-reactions__feedback{
  min-height:18px;
  margin:14px 0 0!important;
  color:var(--nvc-muted);
  font-size:.72rem!important;
  line-height:1.4!important;
}

body.novera-chapter .nvc-reactions__feedback :is(a,.nvc-reactions__login){
  color:var(--nvc-blue)!important;
  font-weight:750;
  text-decoration:none!important;
}

body.novera-chapter .nvc-reactions__feedback .nvc-reactions__login{
  appearance:none;
  margin:0;
  padding:0;
  border:0;
  background:transparent;
  font:inherit;
  cursor:pointer;
}

body.novera-chapter .nvc-reactions__feedback :is(a,.nvc-reactions__login):hover{
  text-decoration:underline!important;
}

body.novera-chapter .nvc-reactions__feedback .nvc-reactions__login:focus-visible{
  border-radius:3px;
  outline:2px solid var(--nvc-blue);
  outline-offset:3px;
}

body.novera-chapter .nvc-reactions + .chapter__actions--bottom{
  margin-top:26px!important;
}

html[data-mode="dark"] body.novera-chapter .nvc-reactions{
  border-color:var(--layout-lineart-color,#33465a);
  background:color-mix(in srgb,var(--page-bg-color,#111b27) 90%,#172536 10%);
}

@media(max-width:768px){
  body.novera-chapter .nvc-reactions{
    width:min(100%,94vw);
    margin-top:42px;
    padding:19px 14px 17px;
    border-radius:12px;
  }

  body.novera-chapter .nvc-reactions__title{
    margin-bottom:16px!important;
    font-size:1.12rem!important;
  }

  body.novera-chapter .nvc-reactions__options{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
  }

  body.novera-chapter .nvc-reactions__button{
    min-height:58px;
    padding:8px;
  }

  body.novera-chapter .nvc-reactions + .chapter__actions--bottom{
    margin-top:22px!important;
  }
}

@media(max-width:380px){
  body.novera-chapter .nvc-reactions__button{
    grid-template-columns:auto 1fr;
  }

  body.novera-chapter .nvc-reactions__count{
    grid-column:2;
    justify-self:start;
    margin-top:-3px;
  }
}


/* ==========================================================
   Novera Reader v0.2.5 — Analytics: leituras no cabeçalho
   O layout editorial antigo ocultava este contador mesmo quando
   a opção do Novera Analytics estava habilitada.
   ========================================================== */
body.novera-chapter.nvc-reading-layout-enabled .nvc-reading-context .nvc-reading-views{
  display:inline-flex!important;
  align-items:center!important;
}
@media(max-width:620px){
  body.novera-chapter.nvc-reading-layout-enabled .nvc-reading-context .nvc-reading-views{
    display:inline-flex!important;
    flex-basis:auto!important;
    justify-content:center!important;
  }
}

/* ==========================================================
   NOVERA READER v0.3.16 — POLIMENTO DO LEITOR DESKTOP
   Ajustes leves de densidade e consistência. Não altera
   mobile, TTS, PWA, reações, comentários ou navegação.
   ========================================================== */
@media (min-width: 769px){
  /* Menos vazio antes das ferramentas e do cabeçalho do capítulo. */
  body.novera-chapter .main.chapter{
    padding-top:20px!important;
  }

  body.novera-chapter.nvc-reading-layout-enabled .chapter__actions--top{
    margin-bottom:34px!important;
    padding-bottom:14px!important;
  }

  /* Controles superiores com uma linguagem visual mais uniforme. */
  body.novera-chapter.nvc-reading-layout-enabled .chapter__actions--top .button,
  body.novera-chapter.nvc-reading-layout-enabled .chapter__actions--top button,
  body.novera-chapter.nvc-reading-layout-enabled .chapter__actions--top a.button{
    min-height:36px!important;
    border-radius:8px!important;
    padding-top:0!important;
    padding-bottom:0!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
  }

  /* Final do capítulo um pouco mais coeso, sem comprimir a leitura. */
  body.novera-chapter .nvc-reactions{
    margin-top:46px!important;
  }

  body.novera-chapter .nvc-reactions + .chapter__actions--bottom{
    margin-top:20px!important;
  }

  body.novera-chapter .chapter__actions--bottom{
    margin-bottom:34px!important;
  }

  body.novera-chapter .chapter__comments.comment-section{
    margin-top:26px!important;
  }

  body.novera-chapter #comments .nvc-comment-rules{
    margin-bottom:28px!important;
  }
}


/* ==========================================================
   NOVERA READER v0.3.17 — PROPORÇÃO DO PAINEL DE LEITURA
   Desktop amplo: reduz somente as margens vazias internas do
   painel sem estreitar a coluna editorial de 820px. O mobile,
   TTS, PWA, dock e controles permanecem intactos.
   ========================================================== */
@media (min-width: 1200px){
  body.novera-chapter.nvc-reading-layout-enabled .main.chapter{
    width:min(calc(100% - 48px), 940px)!important;
    max-width:940px!important;
    margin-inline:auto!important;
  }

  body.novera-chapter.nvc-reading-layout-enabled .main.chapter > .main__wrapper{
    padding-left:60px!important;
    padding-right:60px!important;
  }
}
