/* JL Livro Aberto v2.1.0 — estilos isolados do tema e do Elementor */
html, body.jl-livro-body { margin:0!important; padding:0!important; width:100%!important; min-height:100%!important; overflow-x:hidden!important; background:#eef1f5!important; }
body.jl-livro-body { font-family:Arial,Helvetica,sans-serif!important; color:#17243a!important; }
body.jl-livro-body #page, body.jl-livro-body .site, body.jl-livro-body #content,
body.jl-livro-body .site-content, body.jl-livro-body .content-area,
body.jl-livro-body .site-main { width:100%!important; max-width:none!important; margin:0!important; padding:0!important; }
body.jl-livro-body .jl-livro-app, body.jl-livro-body .jl-livro-app * { box-sizing:border-box; }
.jl-livro-app {
  --navy:#07172f; --navy2:#10294d; --gold:#bd9657; --gold-light:#e0c28d;
  --paper:#fffefa; --ink:#1c293b; --muted:#7c8797;
  width:100%; min-height:100vh; background:#eef1f5; color:var(--ink);
  font-family:Arial,Helvetica,sans-serif; padding-bottom:34px;
}
.jl-livro-header {
  width:100%; min-height:88px; background:var(--navy); color:#fff;
  display:flex; align-items:center; justify-content:space-between; gap:28px;
  padding:14px clamp(22px,5vw,76px); box-shadow:0 4px 16px rgba(3,13,29,.18);
}
.jl-livro-brand { display:flex; flex-direction:column; text-decoration:none!important; color:#e4c28a!important; min-width:230px; }
.jl-livro-brand img { display:block; max-width:235px; max-height:62px; width:auto; height:auto; object-fit:contain; }
.jl-livro-brand-name { font-family:Georgia,serif; font-size:30px; line-height:1; }
.jl-livro-brand-sub { font-family:Georgia,serif; font-size:13px; margin-top:4px; }
.jl-livro-header-nav { display:flex; align-items:center; justify-content:center; gap:30px; }
.jl-livro-header-nav a { color:#f4f5f7!important; font-size:13px; text-decoration:none!important; }
.jl-livro-header-nav a:hover { color:var(--gold-light)!important; }
.jl-livro-library-link { border:1px solid var(--gold); border-radius:24px; padding:11px 17px; color:#f1d29c!important; text-decoration:none!important; font-size:12px; white-space:nowrap; }
.jl-livro-main { width:100%; max-width:1500px; margin:0 auto; padding:28px clamp(16px,4vw,60px) 0; }
.jl-livro-toolbar { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin:0 auto 22px; max-width:1280px; }
.jl-livro-toolbar-title { min-width:0; }
.jl-livro-eyebrow { display:block; color:var(--gold); font-size:10px; font-weight:800; letter-spacing:2px; margin-bottom:9px; }
.jl-livro-toolbar h1 { font-family:Georgia,'Times New Roman',serif!important; color:var(--navy)!important; font-size:clamp(23px,2.2vw,34px)!important; font-weight:500!important; line-height:1.2!important; margin:0 0 9px!important; max-width:980px; }
.jl-livro-meta { color:var(--muted); font-size:11px; display:flex; gap:10px; align-items:center; }
.jl-livro-meta-separator { color:var(--gold); }
.jl-livro-tools { display:flex; align-items:center; gap:8px; flex-shrink:0; }
.jl-livro-tool { border:1px solid #dce1e8; background:#fff; color:var(--navy); border-radius:7px; padding:9px 12px; font-size:12px; cursor:pointer; }
.jl-livro-tool:hover { border-color:var(--gold); color:#8d6a31; }
.jl-livro-font { font-weight:800; }
.jl-livro-reader { max-width:1280px; margin:0 auto; }
.jl-livro-book {
  width:100%; height:clamp(570px,66vw,760px); max-height:76vh; min-height:570px;
  position:relative; display:grid; grid-template-columns:1fr 1fr;
  background:#f4eee5; border-radius:8px; padding:14px 15px 18px;
  box-shadow:0 20px 50px rgba(14,28,48,.17),0 3px 9px rgba(14,28,48,.1);
  perspective:1800px; overflow:hidden;
}
.jl-livro-page {
  min-width:0; height:100%; position:relative; overflow:hidden;
  background:var(--paper); padding:clamp(30px,4vw,62px) clamp(25px,4.5vw,68px);
  box-shadow:inset 0 0 22px rgba(83,65,42,.045);
}
.jl-livro-left { border-radius:4px 0 0 4px; border-right:1px solid #e7dfd4; }
.jl-livro-right { border-radius:0 4px 4px 0; border-left:1px solid #eee8df; }
.jl-livro-spine { position:absolute; z-index:3; left:50%; top:15px; bottom:19px; width:24px; transform:translateX(-50%); pointer-events:none; background:linear-gradient(90deg,rgba(70,55,37,.13),rgba(255,255,255,.18) 42%,rgba(70,55,37,.10)); }
.jl-livro-page-inner { width:100%; height:100%; overflow:hidden; color:#293548; font-family:Georgia,'Times New Roman',serif; font-size:16px; line-height:1.72; overflow-wrap:anywhere; }
.jl-livro-page-inner p { margin:0 0 1em!important; font-family:Georgia,'Times New Roman',serif!important; font-size:inherit!important; line-height:inherit!important; color:#293548!important; }
.jl-livro-page-inner h1,.jl-livro-page-inner h2,.jl-livro-page-inner h3,.jl-livro-page-inner h4,.jl-livro-page-inner h5,.jl-livro-page-inner h6 { font-family:Georgia,'Times New Roman',serif!important; color:var(--navy)!important; line-height:1.28!important; font-weight:600!important; margin:1em 0 .55em!important; }
.jl-livro-page-inner h1 { font-size:1.6em!important; }.jl-livro-page-inner h2 { font-size:1.5em!important; }.jl-livro-page-inner h3 { font-size:1.3em!important; }.jl-livro-page-inner h4,.jl-livro-page-inner h5,.jl-livro-page-inner h6 { font-size:1.12em!important; }
.jl-livro-page-inner > :first-child { margin-top:0!important; }
.jl-livro-page-inner .jl-cont { list-style:none!important; }
.jl-livro-page-inner .jl-cont > li { list-style:none!important; }
.jl-livro-page-inner ul,.jl-livro-page-inner ol { padding-left:1.35em!important; margin:0 0 1em!important; }
.jl-livro-page-inner li { margin:0 0 .4em!important; }
.jl-livro-page-inner img { max-width:100%!important; max-height:235px; width:auto; height:auto; object-fit:contain; display:block; margin:12px auto 18px!important; border-radius:3px; }
.jl-livro-page-inner figure { margin:12px auto 18px!important; max-width:100%; }
.jl-livro-page-inner figcaption { color:#788294; font-size:.7em; text-align:center; }
.jl-livro-page-inner pre { white-space:pre-wrap; font-size:.8em; margin:0 0 1em; }
.jl-livro-page-inner blockquote { margin:1em 0!important; padding:5px 0 5px 16px!important; border-left:3px solid var(--gold)!important; color:#667184!important; }
.jl-livro-page-inner table { border-collapse:collapse!important; width:100%!important; font-size:.8em!important; line-height:1.4!important; }
.jl-livro-page-inner th,.jl-livro-page-inner td { border:1px solid #dce1e8!important; padding:6px!important; }
.jl-livro-page-inner a { color:#244c7c!important; text-decoration:underline!important; }
.jl-livro-page-inner .aligncenter { margin-left:auto!important; margin-right:auto!important; }
.jl-livro-cover { min-height:100%; display:flex; flex-direction:column; justify-content:center; align-items:flex-start; }
.jl-livro-cover-kicker { color:#a77b38; font:800 10px Arial,sans-serif; letter-spacing:2px; }
.jl-livro-cover-rule { width:72px; height:2px; background:var(--gold); margin:20px 0; }
.jl-livro-cover h2 { font-family:Georgia,'Times New Roman',serif!important; font-size:clamp(27px,3vw,43px)!important; font-weight:500!important; line-height:1.16!important; color:var(--navy)!important; margin:0 0 18px!important; }
.jl-livro-cover-meta { font:12px Arial,sans-serif; color:#7c8797; }
.jl-livro-cover img { max-width:100%; width:100%; max-height:230px; object-fit:cover; margin-top:25px; }
.jl-livro-cover-footer { margin-top:auto; padding-top:20px; color:#7b8491; font:italic 12px Georgia,serif; }
.jl-livro-page-number { position:absolute; bottom:17px; color:#a2a8b1; font:10px Arial,sans-serif; }
.jl-livro-left .jl-livro-page-number { left:35px; }.jl-livro-right .jl-livro-page-number { right:35px; }
.jl-livro-arrow { position:absolute; z-index:5; top:50%; transform:translateY(-50%); width:42px; height:54px; border:0; border-radius:7px; background:rgba(189,150,87,.20); color:var(--navy); font-size:35px; line-height:1; cursor:pointer; }
.jl-livro-arrow:hover:not(:disabled) { background:var(--gold); color:white; }
.jl-livro-arrow:disabled { opacity:.2; cursor:not-allowed; }
.jl-livro-arrow-prev { left:7px; }.jl-livro-arrow-next { right:7px; }
.jl-livro-mobile-page { display:none; }
.jl-livro-controls { display:grid; grid-template-columns:1fr minmax(180px,420px) 1fr; align-items:center; gap:18px; max-width:900px; margin:18px auto 0; }
.jl-livro-control-button { justify-self:start; border:1px solid #cbd3df; border-radius:24px; background:#fff; color:var(--navy); padding:11px 21px; font-size:12px; font-weight:700; cursor:pointer; }
.jl-livro-control-button:disabled { opacity:.3; cursor:not-allowed; }
.jl-livro-control-primary { justify-self:end; background:var(--navy); color:#fff; border-color:var(--navy); }
.jl-livro-control-primary:hover:not(:disabled) { background:var(--gold); border-color:var(--gold); }
.jl-livro-progress { min-width:0; text-align:center; }
.jl-livro-page-label { color:#526075; font-size:12px; margin-bottom:8px; }
.jl-livro-progress-track { height:6px; background:#dfe3e9; border-radius:9px; overflow:hidden; }
.jl-livro-progress-track span { display:block; height:100%; width:0; background:linear-gradient(90deg,var(--gold),#e2c48f); border-radius:9px; transition:width .25s; }
.jl-livro-hint { text-align:center; color:#8a94a2; font-size:10px; margin:12px 0 0; }
.jl-livro-next-articles { max-width:1280px; margin:27px auto 0; padding:20px 24px; background:#fff; border:1px solid #e2e6ec; border-radius:9px; display:flex; justify-content:space-between; align-items:center; gap:24px; }
.jl-livro-next-intro { display:flex; align-items:center; gap:12px; color:#526075; font-size:12px; }
.jl-livro-stack-icon { font-size:25px; color:var(--gold); }
.jl-livro-article-links { display:flex; gap:20px; }
.jl-livro-article-link { display:flex; flex-direction:column; gap:5px; max-width:300px; color:var(--navy)!important; text-decoration:none!important; font-size:11px; line-height:1.4; }
.jl-livro-article-link small { color:#a77b38; font-size:9px; letter-spacing:1.2px; font-weight:800; }
.jl-livro-article-link-next { text-align:right; }
.jl-livro-article-link:hover span { color:var(--gold); }
.jl-livro-tool:disabled { opacity:.35; cursor:not-allowed; }

/* Estados: (carregando) -> .jl-livro-ready  |  falha -> .jl-livro-failed (texto original visível) */
.jl-livro-source {
  max-width:820px; margin:0 auto 24px; padding:clamp(22px,4vw,48px); background:var(--paper);
  border:1px solid #e1e5eb; border-radius:6px; color:#293548;
  font-family:Georgia,'Times New Roman',serif; font-size:18px; line-height:1.75; overflow-wrap:anywhere;
}
.jl-livro-source img { max-width:100%; height:auto; }
.jl-livro-source table { width:100%; border-collapse:collapse; }
.jl-livro-source th,.jl-livro-source td { border:1px solid #dce1e8; padding:6px; }
.jl-livro-source a { color:#244c7c; text-decoration:underline; }
.jl-livro-source h2,.jl-livro-source h3,.jl-livro-source h4 { font-family:Georgia,serif; color:var(--navy); line-height:1.3; }
@media screen {
/* enquanto o livro é montado: o texto fica fora da tela (continua no DOM, e carrega as imagens) */
.jl-js .jl-livro-app:not(.jl-livro-ready):not(.jl-livro-failed) .jl-livro-source { position:absolute!important; left:-20000px!important; top:0!important; width:760px!important; height:0!important; overflow:hidden!important; visibility:hidden!important; padding:0!important; border:0!important; }
.jl-js .jl-livro-app:not(.jl-livro-ready):not(.jl-livro-failed) .jl-livro-reader { height:0; overflow:hidden; visibility:hidden; }
.jl-livro-app.jl-livro-ready .jl-livro-source { display:none!important; }
.jl-livro-app.jl-livro-failed .jl-livro-reader { display:none!important; }
}
.jl-livro-live { position:fixed; left:-9999px; }
.jl-livro-measure { position:absolute!important; left:-20000px!important; top:0!important; visibility:hidden!important; pointer-events:none!important; }
.jl-livro-measure .jl-livro-page-inner { height:auto; }
.jl-livro-print-content { display:none; }

@media (max-width:850px) {
 .jl-livro-header { min-height:74px; padding:12px 20px; gap:14px; }
 .jl-livro-header-nav { display:none; }
 .jl-livro-brand { min-width:0; }
 .jl-livro-library-link { margin-left:auto; }
 .jl-livro-main { padding:22px 14px 0; }
 .jl-livro-toolbar { align-items:flex-start; flex-direction:column; margin-bottom:16px; }
 .jl-livro-tools { align-self:flex-end; margin-top:-4px; }
 .jl-livro-book { height:64vh; min-height:510px; }
 .jl-livro-page { padding:30px 28px; }
 .jl-livro-page-inner { font-size:15px; }
 .jl-livro-next-articles { align-items:flex-start; flex-direction:column; }
 .jl-livro-article-links { width:100%; justify-content:space-between; }
}
@media (max-width:600px) {
 .jl-livro-app { padding-bottom:18px; }
 .jl-livro-header { min-height:68px; padding:10px 14px; }
 .jl-livro-brand-name { font-size:25px; }
 .jl-livro-brand-sub { font-size:11px; }
 .jl-livro-brand img { max-width:165px; max-height:48px; }
 .jl-livro-library-link { font-size:10px; padding:9px 11px; }
 .jl-livro-main { padding:18px 10px 0; }
 .jl-livro-toolbar { gap:10px; }
 .jl-livro-toolbar h1 { font-size:24px!important; }
 .jl-livro-tools { width:100%; justify-content:flex-end; }
 .jl-livro-tool { padding:8px 10px; }
 .jl-livro-book { display:none; }
 .jl-livro-mobile-page { display:block; background:var(--paper); height:68vh; height:clamp(420px,68svh,660px); overflow:hidden; position:relative; padding:28px 22px 44px; border:1px solid #e1e5eb; border-radius:5px; box-shadow:0 9px 26px rgba(14,28,48,.10); }
 .jl-livro-mobile-page .jl-livro-page-inner { height:100%; overflow:hidden; font-size:16px; line-height:1.68; }
 .jl-livro-mobile-page .jl-livro-cover { min-height:100%; }
 .jl-livro-mobile-page .jl-livro-cover h2 { font-size:31px!important; }
 .jl-livro-mobile-page .jl-livro-page-number { bottom:12px; right:18px; }
 .jl-livro-controls { grid-template-columns:auto 1fr auto; gap:8px; margin-top:14px; }
 .jl-livro-control-button { padding:10px 12px; font-size:11px; }
 .jl-livro-control-button span { display:none; }
 .jl-livro-progress { min-width:0; }
 .jl-livro-page-label { font-size:10px; }
 .jl-livro-hint { font-size:9px; }
 .jl-livro-next-articles { margin-top:20px; padding:16px; }
 .jl-livro-next-intro { font-size:11px; }
 .jl-livro-article-links { flex-direction:column; gap:13px; }
 .jl-livro-article-link,.jl-livro-article-link-next { text-align:left; max-width:none; }
}
@media print {
 body.jl-livro-body { background:#fff!important; }
 .jl-livro-header,.jl-livro-tools,.jl-livro-eyebrow,.jl-livro-reader,.jl-livro-next-articles { display:none!important; }
 .jl-livro-toolbar { display:block!important; margin:0 0 12px!important; }
 .jl-livro-source { display:block!important; position:static!important; left:auto!important; width:auto!important; height:auto!important; max-width:none!important; visibility:visible!important; overflow:visible!important; border:0!important; padding:0 20px!important; font-size:12pt!important; }
}

/* v2.3 — título só dentro da moldura (continua no HTML para SEO e leitores de tela) */
.jl-livro-app:not(.jl-livro-failed) .jl-livro-toolbar-title { position:absolute!important; width:1px!important; height:1px!important; margin:-1px!important; padding:0!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }
.jl-livro-tools { margin-left:auto; }
/* "Continue sua leitura" agora é um link para /publicacoes/ */
a.jl-livro-next-intro { text-decoration:none!important; color:#526075!important; flex:1 1 auto; }
a.jl-livro-next-intro:hover .jl-livro-next-cta, a.jl-livro-next-intro:focus .jl-livro-next-cta { background:var(--navy); color:#fff; }
.jl-livro-next-text { font-size:13px; }
.jl-livro-next-cta { margin-left:6px; padding:7px 12px; border:1px solid var(--gold); border-radius:5px; color:var(--navy); font:800 11px Arial,sans-serif; letter-spacing:.6px; text-transform:uppercase; white-space:nowrap; transition:background .15s,color .15s; }
/* capa: títulos longos reduzem o corpo da letra para caber na página */
.jl-livro-cover h2.jl-cover-long { font-size:clamp(21px,2.2vw,31px)!important; line-height:1.2!important; }
.jl-livro-cover h2.jl-cover-xlong { font-size:clamp(18px,1.8vw,25px)!important; line-height:1.22!important; }
.jl-livro-mobile-page .jl-livro-cover h2.jl-cover-long { font-size:23px!important; }
.jl-livro-mobile-page .jl-livro-cover h2.jl-cover-xlong { font-size:20px!important; }
@media print {
  .jl-livro-app .jl-livro-toolbar-title { position:static!important; width:auto!important; height:auto!important; margin:0!important; clip:auto!important; overflow:visible!important; white-space:normal!important; display:block!important; }
}

/* v2.3.2 — cabeçalho discreto no topo da 1ª página quando o corpo já abre com título e foto */
.jl-livro-cover-head { margin:0 0 14px; }
.jl-livro-cover-head .jl-livro-cover-rule { margin:8px 0 0; }
