/* =====================================================================
   RELATÓRIOS ANUAIS (página "Relatórios anuais", shortcode [otovida_relatorios])
   O topo reaproveita o visual da página de Vídeos (otovida-videos.css).
   ===================================================================== */
.otv-rl .otv-vd-h1 { font-size: clamp(46px, 6vw, 84px) !important; }
.otv-rl .otv-vd-h1::after { display: none; }
.otv-rl-tab-s { display: none; }

/* capa em 3D no topo */
.otv-rl-hero-art { display: grid; place-items: center; perspective: 1600px; }
.otv-rl-3d {
  position: relative; display: block; width: min(300px, 62%); aspect-ratio: 560 / 792; transform-style: preserve-3d;
  transform: rotateY(-24deg) rotateX(6deg) rotateZ(1deg); animation: otvRlFloat 7s ease-in-out infinite alternate;
  filter: drop-shadow(30px 40px 40px rgba(0, 0, 0, .5));
}
.otv-rl-3d img { position: relative; z-index: 2; display: block; width: 100% !important; height: 100% !important; object-fit: cover; border-radius: 3px 8px 8px 3px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.otv-rl-3d::before { content: ""; position: absolute; z-index: 3; left: 0; top: 0; bottom: 0; width: 7%; border-radius: 3px 0 0 3px; background: linear-gradient(90deg, rgba(0, 0, 0, .28), rgba(255, 255, 255, .18) 40%, rgba(0, 0, 0, .1) 70%, rgba(0, 0, 0, 0)); pointer-events: none; }
.otv-rl-3d-pages { position: absolute; z-index: 1; top: 2%; bottom: 2%; right: -14px; width: 18px; border-radius: 0 4px 4px 0; transform: translateZ(-10px); background: repeating-linear-gradient(90deg, #f4f4ee 0 2px, #dcdcd2 2px 3px); }
@keyframes otvRlFloat { from { transform: rotateY(-24deg) rotateX(6deg) rotateZ(1deg) translateY(0); } to { transform: rotateY(-16deg) rotateX(4deg) rotateZ(-1deg) translateY(-12px); } }

/* estante */
.otv-rl-shelf { padding: 72px 0 96px; background: linear-gradient(180deg, #F4F9EE 0%, #fff 100%); }
.otv-rl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 280px)); gap: 44px 36px; margin: 0 !important; padding: 0 !important; list-style: none !important; }
.otv-rl-item { margin: 0 !important; padding: 0 !important; }
.otv-rl-item::before, .otv-rl-item::marker { content: none !important; }
.otv-rl-card {
  display: flex; flex-direction: column; gap: 18px; width: 100%; margin: 0; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; text-align: left; color: inherit; perspective: 1200px;
}
.otv-rl-cover {
  position: relative; display: block; aspect-ratio: 560 / 792; border-radius: 4px 10px 10px 4px; overflow: hidden;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .05), 18px 26px 40px -22px rgba(4, 39, 29, .55), 4px 6px 0 -1px #e9ece4, 8px 11px 0 -2px #dfe3d9;
  transform-origin: 0 50%; transition: transform .6s var(--vd-out), box-shadow .6s var(--vd-out);
}
.otv-rl-cover img { display: block; width: 100% !important; height: 100% !important; object-fit: cover; margin: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.otv-rl-spine { position: absolute; left: 0; top: 0; bottom: 0; width: 8%; background: linear-gradient(90deg, rgba(0, 0, 0, .25), rgba(255, 255, 255, .2) 45%, rgba(0, 0, 0, .08) 75%, transparent); pointer-events: none; }
.otv-rl-open {
  position: absolute; left: 50%; bottom: 18px; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px;
  background: var(--vd-deeper); color: var(--vd-lime); font-size: 14px; font-weight: 800; letter-spacing: .01em;
  transform: translate(-50%, 14px); opacity: 0; transition: opacity .35s ease, transform .45s var(--vd-out); box-shadow: 0 14px 28px -14px rgba(0, 0, 0, .7);
}
.otv-rl-open svg { width: 18px; height: 18px; }
.otv-rl-card:hover .otv-rl-cover, .otv-rl-card:focus-visible .otv-rl-cover { transform: rotateY(-14deg); box-shadow: 0 2px 0 rgba(0, 0, 0, .05), 28px 34px 46px -22px rgba(4, 39, 29, .6), 4px 6px 0 -1px #e9ece4, 8px 11px 0 -2px #dfe3d9; }
.otv-rl-card:hover .otv-rl-open, .otv-rl-card:focus-visible .otv-rl-open { opacity: 1; transform: translate(-50%, 0); }
.otv-rl-card:focus-visible { outline: none; }
.otv-rl-card:focus-visible .otv-rl-cover { outline: 3px solid var(--vd-teal); outline-offset: 4px; }
.otv-rl-meta { display: flex; flex-direction: column; gap: 4px; }
.otv-rl-meta b { font-size: 19px; font-weight: 800; line-height: 1.25; color: var(--vd-deep); }
.otv-rl-meta small { font-size: 14px; color: var(--vd-muted); }

/* =====================================================================
   FOLHEADOR (abre por cima da página)
   ===================================================================== */
html.otv-rl-lock, html.otv-rl-lock body { overflow: hidden !important; }
.otv-rl-viewer {
  --vd-deeper: #04271D; --vd-lime: #B6D45A; --vd-lime2: #D6EA8C; --vd-out: cubic-bezier(.2, .8, .2, 1);
  position: fixed; inset: 0; z-index: 100000; display: flex; flex-direction: column; color: #fff;
  font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  background: radial-gradient(900px 600px at 50% 40%, #0F5A43 0%, #062F23 55%, #03201A 100%);
  opacity: 0; transition: opacity .35s ease;
}
.otv-rl-viewer.is-on { opacity: 1; }
.otv-rl-viewer * { box-sizing: border-box; }
.otv-rl-bar { display: flex; align-items: center; gap: 12px; padding: 14px 20px; }
.otv-rl-bar-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.otv-rl-bar-t b { font-size: 16px; font-weight: 800; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.otv-rl-bar-t small { font-size: 13px; color: rgba(255, 255, 255, .7); font-variant-numeric: tabular-nums; }
.otv-rl-ibtn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; margin: 0; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); transition: background .25s ease, transform .25s ease;
}
.otv-rl-ibtn:hover { background: rgba(255, 255, 255, .18); }
.otv-rl-ibtn:focus-visible, .otv-rl-nav:focus-visible, .otv-rl-range:focus-visible { outline: 3px solid var(--vd-lime); outline-offset: 3px; }
.otv-rl-ibtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.otv-rl-ibtn.is-close { background: var(--vd-lime); color: var(--vd-deeper); box-shadow: none; }
.otv-rl-ibtn.is-close:hover { background: var(--vd-lime2); }
.otv-rl-stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 6px 76px 10px; }
.otv-rl-book { position: relative; width: min(100%, calc((100vh - 170px) * 1.4134)); width: min(100%, calc((100dvh - 170px) * 1.4134)); }
.otv-rl-book .stf__parent { margin: 0 auto; }
.otv-rl-book .stf__item { background: #fff; }
.otv-rl-nav {
  position: absolute; top: 50%; z-index: 5; display: grid; place-items: center; width: 54px; height: 54px; margin: -27px 0 0; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .12); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); transition: background .25s ease, opacity .25s ease, transform .25s ease;
}
.otv-rl-nav:hover { background: var(--vd-lime); color: var(--vd-deeper); }
.otv-rl-nav[disabled] { opacity: .25; pointer-events: none; }
.otv-rl-nav svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.otv-rl-nav.is-prev { left: 12px; }
.otv-rl-nav.is-next { right: 12px; }
.otv-rl-foot { display: flex; align-items: center; gap: 14px; padding: 6px 24px 18px; }
.otv-rl-range { flex: 1; height: 6px; margin: 0; accent-color: var(--vd-lime); cursor: pointer; }
.otv-rl-tip { flex: none; font-size: 12.5px; color: rgba(255, 255, 255, .62); }
.otv-rl-load { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 14px; font-size: 14px; color: rgba(255, 255, 255, .8); pointer-events: none; transition: opacity .3s ease; }
.otv-rl-load i { width: 44px; height: 44px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .18); border-top-color: var(--vd-lime); animation: otvRlSpin 1s linear infinite; }
.otv-rl-viewer.is-ready .otv-rl-load { opacity: 0; }
@keyframes otvRlSpin { to { transform: rotate(360deg); } }

/* página ampliada (para ler os textos pequenos) */
.otv-rl-zoom { position: absolute; inset: 0; z-index: 10; overflow: auto; -webkit-overflow-scrolling: touch; background: rgba(3, 26, 20, .96); opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s; }
.otv-rl-zoom.is-on { opacity: 1; visibility: visible; }
.otv-rl-zoom-in { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; padding: 76px 18px 40px; }
.otv-rl-zoom img { display: block; width: min(1000px, 100%); height: auto; border-radius: 4px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.otv-rl-zoom .otv-rl-ibtn { position: fixed; top: 14px; right: 20px; z-index: 2; }

@media (max-width: 991px) {
  .otv-rl-hero-art { height: 360px !important; }
  .otv-rl-3d { width: min(240px, 56%); }
}
@media (max-width: 767px) {
  .otv-rl .otv-vd-h1 { font-size: clamp(38px, 11vw, 54px) !important; }
  .otv-rl-tab-l { display: none; }
  .otv-rl-tab-s { display: inline; }
  .otv-rl-hero-art { height: 300px !important; }
  .otv-rl-shelf { padding: 48px 0 72px; }
  .otv-rl-grid { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .otv-rl-item { width: min(280px, 100%); }
  .otv-rl-open { opacity: 1; transform: translate(-50%, 0); }
  .otv-rl-bar { padding: 10px 12px; gap: 8px; }
  .otv-rl-ibtn { width: 40px; height: 40px; }
  .otv-rl-stage { padding: 4px 12px 8px; }
  .otv-rl-book { width: min(100%, calc((100vh - 150px) * .7067)); width: min(100%, calc((100dvh - 150px) * .7067)); }
  .otv-rl-nav { width: 44px; height: 44px; margin-top: -22px; background: rgba(4, 39, 29, .7); }
  .otv-rl-nav.is-prev { left: 4px; }
  .otv-rl-nav.is-next { right: 4px; }
  .otv-rl-tip { display: none; }
  .otv-rl-foot { padding: 4px 16px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .otv-rl-3d { animation: none; }
  .otv-rl-cover, .otv-rl-open, .otv-rl-viewer { transition: none; }
}
.otv-rl-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 14px; font-weight: 800; color: var(--vd-teal); }
.otv-rl-go svg { width: 16px; height: 16px; transition: transform .3s var(--vd-out); }
.otv-rl-card:hover .otv-rl-go svg { transform: translateX(4px); }
@media (max-width: 767px) {
  .otv-rl-open { display: none; }
}
