/* ==========================================================================
   Portal Editorial — A Fé Sem Obras é Morta (Pr. Raul Nogueira)
   Paleta: Pólen Soft (#f6f0e2) + Azul-Noite da Capa (#16233a) + Ouro (#a67c33 / #c9a45e)
   ========================================================================== */
:root {
  --bg: #f6f0e2;
  --bg-elev: #fdfaf2;
  --bg-soft: #ede4cf;
  --navy: #16233a;
  --navy-deep: #0e1728;
  --ink: #1d1a16;
  --ink-2: #464037;
  --mute: #6f6658;
  --gold: #9a6f25;
  --gold-bright: #c9a45e;
  --line: #dcd0b6;
  --shadow: 0 14px 38px rgba(22, 35, 58, 0.08);
  --display: "Cormorant Garamond", Georgia, serif;
  --serif: "EB Garamond", Georgia, serif;
  --sans: "Outfit", -apple-system, BlinkMacSystemFont, sans-serif;
  --reader-size: 1.18rem;
}

html[data-theme="dark"] {
  --bg: #0d1524;
  --bg-elev: #152238;
  --bg-soft: #1c2c47;
  --ink: #f3ead8;
  --ink-2: #d9cdb6;
  --mute: #a3b1c6;
  --gold: #d4b06a;
  --gold-bright: #dfc082;
  --line: rgba(201, 164, 94, 0.24);
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.62;
  overflow-x: hidden;
  transition: background 0.25s ease, color 0.25s ease;
}
img, svg { max-width: 100%; height: auto; }
button, input { font: inherit; color: inherit; }

/* Ilustrações a lápis/aquarela sobre fundo claro */
.illust-blend { mix-blend-mode: multiply; border-radius: 6px; transition: transform 0.28s ease; }
html[data-theme="dark"] .illust-blend {
  mix-blend-mode: normal;
  background: #f7f1e4;
  padding: 8px;
  border-radius: 8px;
}
.zoom-trigger {
  appearance: none; border: 0; background: transparent; padding: 0;
  cursor: zoom-in; display: block; width: 100%;
}
.zoom-trigger:hover .illust-blend { transform: scale(1.018); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1260px; margin: 0 auto; padding: 10px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink); flex-shrink: 0;
}
.brand-mark { width: 28px; height: 28px; color: var(--gold); flex-shrink: 0; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.12; }
.brand-txt strong { font-family: var(--display); font-size: 1.16rem; font-weight: 600; letter-spacing: 0.01em; }
.brand-txt small { font-family: var(--sans); font-size: 0.7rem; color: var(--mute); letter-spacing: 0.06em; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: center; }
.nav-pill {
  font-family: var(--sans); font-size: 0.84rem; font-weight: 500;
  text-decoration: none; color: var(--ink-2);
  padding: 7px 14px; border-radius: 999px; transition: all 0.18s ease;
  white-space: nowrap;
}
.nav-pill:hover { background: var(--bg-soft); color: var(--ink); }
.nav-pill.active { background: var(--navy); color: #f3ead8; }
html[data-theme="dark"] .nav-pill.active { background: var(--gold-bright); color: #0e1728; font-weight: 600; }

.header-tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.progress-chip, .video-chip {
  font-family: var(--sans); font-size: 0.78rem; font-weight: 500;
  text-decoration: none; color: var(--ink-2);
  padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg-elev); display: inline-flex; align-items: center; gap: 6px;
}
.video-chip.active { background: var(--navy); color: #f3ead8; border-color: var(--navy); }
.progress-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.theme-btn {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--bg-elev); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
}

/* ---------- Utilitários & Botões ---------- */
.section-wrap { max-width: 1200px; margin: 0 auto; padding: 56px 22px; }
.kicker {
  display: inline-block; font-family: var(--sans); font-size: 0.74rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold);
}
.kicker.gold { color: var(--gold-bright); }
.orn-svg { display: block; width: 148px; height: 12px; color: var(--gold); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-size: 0.86rem; font-weight: 500; letter-spacing: 0.03em;
  padding: 12px 22px; border-radius: 999px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: all 0.2s ease; text-align: center;
}
.btn-sm { padding: 8px 16px; font-size: 0.8rem; }
.btn-gold { background: var(--gold-bright); color: #121c2e; font-weight: 600; border-color: var(--gold-bright); }
.btn-gold:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-outline-light { background: rgba(255,255,255,0.04); color: #f3ead8; border-color: rgba(201,164,94,0.5); }
.btn-outline-light:hover { background: rgba(201,164,94,0.16); border-color: var(--gold-bright); }
.btn:disabled { opacity: 0.42; cursor: not-allowed; transform: none; }

.text-link {
  font-family: var(--sans); font-size: 0.84rem; font-weight: 500;
  color: var(--gold); text-decoration: none; display: inline-flex; align-items: center; gap: 4px;
}
.text-link:hover { text-decoration: underline; }

.sec-header { margin-bottom: 34px; }
.sec-header.center { text-align: center; max-width: 680px; margin-left: auto; margin-right: auto; }
.sec-header.split { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.sec-header h1, .sec-header h2 {
  font-family: var(--display); font-weight: 600; font-size: clamp(2rem, 3.8vw, 2.75rem);
  line-height: 1.12; margin: 6px 0 0;
}
.sec-header p { color: var(--ink-2); margin: 10px 0 0; font-size: 1.06rem; }

/* ---------- Hero Azul-Noite (Início) ---------- */
.hero-night {
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse at 72% 38%, #223556 0%, var(--navy) 46%, var(--navy-deep) 100%);
  color: #f3ead8; padding: 64px 22px 72px;
}
.hero-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 42px;
}
.hero-copy h1 {
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(2.5rem, 5.2vw, 4.1rem); line-height: 1.03; letter-spacing: 0.04em;
  margin: 12px 0 10px;
}
.hero-sub {
  font-family: var(--display); font-style: italic; font-size: clamp(1.32rem, 2.3vw, 1.72rem);
  color: #f3ead8; opacity: 0.94; margin: 0;
}
.hero-orn { margin: 18px 0 20px; }
.hero-orn .orn-svg { color: var(--gold-bright); }
.hero-lead { font-size: 1.12rem; line-height: 1.66; color: #e4dac5; max-width: 560px; margin: 0 0 28px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta {
  margin-top: 26px; font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(243, 234, 216, 0.7); display: flex; flex-wrap: wrap; gap: 10px;
}
.hero-art-wrap { position: relative; text-align: center; }
.hero-dawn {
  position: absolute; width: 68%; height: 56%; right: 10%; top: 10%;
  background: radial-gradient(circle, rgba(236, 205, 140, 0.44) 0%, rgba(201, 164, 94, 0.12) 48%, transparent 74%);
  filter: blur(18px); pointer-events: none;
}
.hero-traco { position: relative; max-width: 410px; width: 100%; filter: drop-shadow(0 8px 26px rgba(0,0,0,0.4)); }
.hero-verse-caption {
  margin-top: 12px; font-style: italic; font-size: 0.98rem; color: #e2d7c0; max-width: 390px; margin-left: auto; margin-right: auto;
}
.hero-verse-caption span {
  display: block; font-family: var(--sans); font-style: normal; font-size: 0.7rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-bright); margin-top: 4px;
}

/* ---------- Harmonia Paulo & Tiago ---------- */
.harmony-card {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: 20px;
  padding: 38px; box-shadow: var(--shadow);
  display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 38px; align-items: center;
}
.harmony-art img { max-height: 360px; margin: 0 auto; display: block; }
.harmony-body h2 { font-family: var(--display); font-size: clamp(1.75rem, 3vw, 2.3rem); line-height: 1.15; margin: 6px 0 12px; }
.harmony-body > p { color: var(--ink-2); margin: 0 0 22px; }
.harmony-pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pillar {
  background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px;
}
.pillar-tag { font-family: var(--sans); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.pillar h3 { font-family: var(--display); font-size: 1.32rem; margin: 6px 0 8px; }
.pillar p { margin: 0; font-size: 0.96rem; color: var(--ink-2); line-height: 1.52; }

/* ---------- Movimentos ---------- */
.movements-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.mov-card {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: 18px;
  padding: 26px; display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.mov-card.highlight { border-color: var(--gold); }
.mov-img { height: 190px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; overflow: hidden; }
.mov-img img { max-height: 180px; width: auto; }
.mov-card h3 { font-family: var(--display); font-size: 1.55rem; line-height: 1.18; margin: 6px 0 4px; }
.mov-sub { font-family: var(--display); font-style: italic; color: var(--gold); margin: 0 0 10px; font-size: 1.1rem; }
.mov-card p { color: var(--ink-2); font-size: 0.98rem; margin: 0 0 16px; }
.mov-card .text-link { margin-top: auto; }

/* ---------- Video Banner & Blurbs ---------- */
.video-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #f3ead8; border-radius: 22px; padding: 42px;
  display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 32px; align-items: center;
  border: 1px solid rgba(201,164,94,0.34);
}
.video-banner h2 { font-family: var(--display); font-size: clamp(1.8rem, 3vw, 2.35rem); margin: 8px 0 12px; line-height: 1.15; }
.video-banner p { color: #dfd4be; margin: 0 0 22px; }
.vb-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.vb-quote {
  border-left: 1px solid rgba(201,164,94,0.45); padding-left: 26px;
}
.vb-quote blockquote {
  margin: 0 0 10px; font-family: var(--display); font-style: italic; font-size: 1.75rem; line-height: 1.2; color: #fff;
}
.vb-quote span { font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-bright); }

.blurbs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.blurb-card {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: 16px;
  padding: 24px; display: flex; flex-direction: column; justify-content: space-between;
}
.blurb-q { font-style: italic; margin: 0 0 14px; color: var(--ink); font-size: 1.02rem; }
.blurb-who { font-family: var(--sans); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }

/* ---------- Page Hero Compact ---------- */
.page-hero.compact .section-wrap { padding-top: 38px; padding-bottom: 18px; }
.hero-deck { max-width: 720px; color: var(--ink-2); font-size: 1.08rem; margin: 8px 0 0; }

/* ---------- Reader (/leitura/) ---------- */
.reader-top-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-toolbar {
  margin-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.filter-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-pill {
  font-family: var(--sans); font-size: 0.8rem; font-weight: 500;
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg-elev); cursor: pointer; transition: all 0.16s;
}
.filter-pill.active { background: var(--gold); color: #fff; border-color: var(--gold); }
html[data-theme="dark"] .filter-pill.active { color: #0e1728; }

.search-box { position: relative; display: flex; align-items: center; gap: 8px; min-width: 260px; flex: 1; max-width: 360px; }
.search-box input {
  width: 100%; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg-elev); font-family: var(--sans); font-size: 0.84rem;
}
.search-count { font-family: var(--sans); font-size: 0.75rem; color: var(--gold); white-space: nowrap; }

.reader-layout {
  padding-top: 18px; display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 28px; align-items: start;
}
.reader-sidebar { position: sticky; top: 72px; display: flex; flex-direction: column; gap: 16px; max-height: calc(100vh - 90px); overflow-y: auto; }
.sidebar-card {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: 16px; padding: 18px;
}
.sidebar-head {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--sans); font-size: 0.82rem; margin-bottom: 10px;
}
.progress-bar { height: 6px; border-radius: 999px; background: var(--bg-soft); overflow: hidden; margin-bottom: 12px; }
.progress-fill { height: 100%; background: var(--gold); transition: width 0.25s ease; }

.miles-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.mile-btn {
  height: 32px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg);
  font-family: var(--sans); font-size: 0.78rem; font-weight: 500; cursor: pointer;
}
.mile-btn.done { background: color-mix(in srgb, var(--gold) 22%, var(--bg)); border-color: var(--gold); color: var(--ink); }
.mile-btn.current { background: var(--navy); color: #f3ead8; border-color: var(--navy); font-weight: 600; }
html[data-theme="dark"] .mile-btn.current { background: var(--gold-bright); color: #0e1728; }

.font-controls {
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; font-family: var(--sans); font-size: 0.78rem; color: var(--mute);
}
.font-btns { display: inline-flex; gap: 4px; }
.font-btns button {
  padding: 3px 9px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg); cursor: pointer; font-size: 0.76rem;
}
.font-btns button.active { background: var(--navy); color: #fff; border-color: var(--navy); }
html[data-theme="dark"] .font-btns button.active { background: var(--gold-bright); color: #0e1728; }

.toc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.toc-row {
  width: 100%; text-align: left; border: 1px solid transparent; background: transparent;
  padding: 8px 10px; border-radius: 10px; cursor: pointer; display: flex; gap: 10px; align-items: baseline;
}
.toc-row:hover { background: var(--bg-soft); }
.toc-row.current { background: var(--bg-soft); border-color: var(--gold); }
.toc-num { font-family: var(--sans); font-size: 0.74rem; color: var(--gold); font-weight: 600; flex-shrink: 0; }
.toc-info { display: flex; flex-direction: column; min-width: 0; }
.toc-info strong { font-family: var(--display); font-size: 1.05rem; line-height: 1.2; }
.toc-info small { font-family: var(--sans); font-size: 0.7rem; color: var(--mute); }

.reader-paper {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: 20px;
  padding: clamp(24px, 5vw, 56px); box-shadow: var(--shadow); min-width: 0;
}
.reader-hero-illust { max-width: 280px; margin: 0 auto 20px; text-align: center; }
.chapter-header { text-align: center; margin-bottom: 28px; }
.chapter-header h2 { font-family: var(--display); font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.12; margin: 6px 0 6px; }
.chapter-sub { font-family: var(--display); font-style: italic; color: var(--mute); font-size: 1.18rem; margin: 0 0 14px; }
.chapter-orn .orn-svg { margin: 0 auto; }

.epigraph-box {
  margin: 0 auto 30px; max-width: 600px; padding: 18px 24px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px; text-align: center;
}
.epigraph-box p { margin: 0; font-style: italic; font-size: 1.05rem; }
.epigraph-box cite {
  display: block; margin-top: 6px; font-family: var(--sans); font-style: normal;
  font-size: 0.73rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold);
}

.prose-book { font-size: var(--reader-size); line-height: 1.74; max-width: 68ch; margin: 0 auto; }
.prose-book p { margin: 0 0 1.05em; text-align: left; }
.prose-book p.dropcap::first-letter {
  float: left; font-family: var(--display); font-weight: 600; font-size: 4.55em;
  line-height: 0.78; padding: 5px 12px 0 0; color: var(--gold);
}
.prose-book h2 {
  font-family: var(--display); font-size: 1.62em; line-height: 1.2; text-align: center;
  margin: 1.8em 0 0.7em; padding-top: 0.7em; border-top: 1px solid var(--line);
}
.prose-book blockquote.scripture, blockquote.scripture.large {
  margin: 1.4em 0; padding: 16px 22px; border-left: 3px solid var(--gold);
  background: var(--bg); border-radius: 0 12px 12px 0; font-style: italic;
}
.prose-book blockquote.scripture p, blockquote.scripture.large p { margin: 0; }
.prose-book blockquote.scripture cite {
  display: block; margin-top: 6px; text-align: right; font-family: var(--sans);
  font-style: normal; font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold);
}
.prose-book blockquote.fala {
  margin: 1.3em 1.2em; padding-left: 16px; border-left: 2px solid var(--line); font-style: italic;
}
.prose-book aside.pullquote {
  margin: 1.8em 0; padding: 18px 16px; border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold);
  text-align: center; font-family: var(--display); font-style: italic; font-size: 1.38em; line-height: 1.32;
}
.inline-illust { margin: 2em auto; max-width: 360px; text-align: center; }
.inline-illust figcaption { font-size: 0.88rem; font-style: italic; color: var(--mute); margin-top: 8px; }
.sign-block { margin-top: 2em; text-align: right; font-style: italic; }
.sign-block p { margin: 0.25em 0; text-align: right; }
.sdg-close { margin-top: 2.4em; text-align: center; }
.sdg-close .orn-svg { margin: 0 auto 14px; }
.sdg-tag { font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold); margin-top: 12px; }

.chapter-nav-footer {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

/* ---------- Diagrama 1: Círculo de Maturidade ---------- */
.mat-diagram {
  margin: 2em auto; padding: 24px 18px; background: var(--bg);
  border: 1px solid var(--line); border-radius: 18px; text-align: center; max-width: 560px;
}
.mat-head h3 { font-family: var(--display); font-size: 1.65rem; margin: 4px 0; }
.mat-sub { font-style: italic; color: var(--mute); font-size: 0.95rem; margin: 0 0 14px; }
.mat-stage { position: relative; width: 100%; max-width: 460px; height: 430px; margin: 0 auto; }
.mat-ring { position: absolute; inset: 55px; width: calc(100% - 110px); height: calc(100% - 110px); color: var(--gold); pointer-events: none; }
.mat-node {
  position: absolute; width: 158px; padding: 10px 10px; background: var(--bg-elev);
  border: 1px solid var(--line); border-radius: 12px; text-align: center; line-height: 1.25;
  transition: all 0.2s ease;
}
.mat-diagram.interactive .mat-node, .mat-diagram.interactive .mat-center { cursor: pointer; }
.mat-node.is-active, .mat-diagram.interactive .mat-node:hover {
  border-color: var(--gold); box-shadow: 0 8px 20px rgba(154, 111, 37, 0.18); transform: translateY(-2px);
}
.mat-node.n-top { top: 0; left: calc(50% - 79px); }
.mat-node.n-bottom { bottom: 0; left: calc(50% - 79px); }
.mat-node.n-left { left: 0; top: calc(50% - 54px); width: 138px; }
.mat-node.n-right { right: 0; top: calc(50% - 54px); width: 138px; }
.mat-est { display: block; font-family: var(--sans); font-size: 0.65rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.mat-cat { display: block; font-style: italic; font-size: 0.82rem; color: var(--mute); }
.mat-node strong { display: block; font-family: var(--display); font-size: 1.02rem; margin: 2px 0; }
.mat-ds { display: block; font-size: 0.76rem; color: var(--ink-2); }
.mat-center {
  position: absolute; width: 126px; height: 126px; left: calc(50% - 63px); top: calc(50% - 63px);
  border-radius: 50%; background: var(--navy); color: #f3ead8; border: 2px solid var(--gold-bright);
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 8px;
}
.mat-center span { font-family: var(--sans); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-bright); }
.mat-center strong { font-family: var(--display); font-style: italic; font-size: 1.08rem; line-height: 1.1; margin: 3px 0; }
.mat-center small { font-family: var(--sans); font-size: 0.62rem; opacity: 0.85; }
.mat-foot { font-size: 0.86rem; font-style: italic; color: var(--mute); margin: 14px auto 0; max-width: 440px; }

/* ---------- Exegese (/tiago/) ---------- */
.exegesis-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 26px; align-items: start; }
.pericope-list { display: flex; flex-direction: column; gap: 10px; }
.pericope-btn {
  text-align: left; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--bg-elev); cursor: pointer; transition: all 0.18s;
}
.pericope-btn:hover { border-color: var(--gold); }
.pericope-btn.active { background: var(--navy); color: #f3ead8; border-color: var(--navy); }
html[data-theme="dark"] .pericope-btn.active { background: var(--bg-soft); border-color: var(--gold-bright); }
.pericope-btn .p-ref { display: block; font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.pericope-btn.active .p-ref { color: var(--gold-bright); }
.pericope-btn strong { font-family: var(--display); font-size: 1.22rem; line-height: 1.2; }

.pericope-detail {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: 20px;
  padding: 34px; box-shadow: var(--shadow);
}
.pericope-detail h2 { font-family: var(--display); font-size: 1.95rem; line-height: 1.16; margin: 6px 0 16px; }
.pd-insight { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.insight-label { font-family: var(--sans); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.pd-insight p { color: var(--ink-2); margin: 8px 0 18px; }

.diagram-interactive-layout {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 32px; align-items: center;
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: 22px; padding: 32px;
}
.diag-left .mat-diagram { margin: 0 auto; border: 0; padding: 0; background: transparent; }
.diag-right h2 { font-family: var(--display); font-size: 2rem; line-height: 1.15; margin: 6px 0 6px; }
.st-ref { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.st-desc { color: var(--ink-2); margin: 0 0 20px; }
.stage-Selector-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.st-pill {
  font-family: var(--sans); font-size: 0.78rem; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg); cursor: pointer;
}
.st-pill.active { background: var(--gold); color: #fff; border-color: var(--gold); }
html[data-theme="dark"] .st-pill.active { color: #0e1728; }

.exam-list { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.exam-item { background: var(--bg-elev); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; }
.exam-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-family: var(--display); font-size: 1.34rem; font-weight: 600;
}
.exam-item summary::-webkit-details-marker { display: none; }
.exam-chev { font-family: var(--sans); color: var(--gold); font-size: 1.2rem; }
.exam-item[open] .exam-chev { transform: rotate(45deg); }
.exam-body { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--ink-2); }
.exam-body p { margin: 0 0 8px; }
.exam-ref { font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }

/* ---------- Missão & Galeria (/missao/) ---------- */
.mission-map-panel {
  display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 22px; align-items: start;
}
.map-stage {
  background: #101b2d; border-radius: 20px; overflow: hidden; border: 1px solid rgba(201,164,94,0.34);
  box-shadow: var(--shadow);
}
.world-svg { display: block; width: 100%; height: auto; }
.map-land { fill: #1b2c47; stroke: rgba(201, 164, 94, 0.34); stroke-width: 0.7; }
.map-arc { fill: none; stroke: rgba(201, 164, 94, 0.22); stroke-width: 1.5; stroke-dasharray: 5 4; transition: all 0.25s; }
.map-arc.highlight { stroke: #f0ca7d; stroke-width: 2.6; stroke-dasharray: none; }
.map-pin .pin-dot { fill: #f0ca7d; stroke: #101b2d; stroke-width: 1.4; }
.map-pin .pin-pulse { fill: rgba(240, 202, 125, 0.2); }
.map-pin text { fill: #f3ead8; font-family: var(--sans); font-size: 11px; font-weight: 500; pointer-events: none; }

.map-detail-bar {
  padding: 22px 26px; background: #142238; color: #f3ead8; border-top: 1px solid rgba(201,164,94,0.25);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.map-detail-bar h2 { font-family: var(--display); font-size: 1.65rem; margin: 4px 0 6px; }
.map-detail-bar p { margin: 0; color: #dcd0b8; font-size: 0.96rem; max-width: 600px; }

.route-selector { background: var(--bg-elev); border: 1px solid var(--line); border-radius: 20px; padding: 18px; }
.route-list { display: flex; flex-direction: column; gap: 8px; }
.route-card {
  text-align: left; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg); cursor: pointer; transition: all 0.18s;
}
.route-card:hover { border-color: var(--gold); }
.route-card.active { background: var(--navy); color: #f3ead8; border-color: var(--navy); }
html[data-theme="dark"] .route-card.active { background: var(--bg-soft); border-color: var(--gold-bright); }
.r-years { display: block; font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.route-card.active .r-years { color: var(--gold-bright); }
.route-card strong { font-family: var(--display); font-size: 1.12rem; line-height: 1.2; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.gal-card {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: 16px;
  padding: 18px; display: flex; flex-direction: column;
}
.gal-img-btn { height: 210px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; overflow: hidden; }
.gal-img-btn img { max-height: 200px; width: auto; }
.gal-body { display: flex; flex-direction: column; flex: 1; }
.gal-body h3 { font-family: var(--display); font-size: 1.28rem; margin: 0 0 6px; line-height: 1.2; }
.gal-body p { font-size: 0.92rem; color: var(--ink-2); margin: 0 0 12px; }
.gal-body .text-link { margin-top: auto; }

/* ---------- Autor & Prefácios (/autor/) ---------- */
.author-showcase {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: 22px;
  padding: 38px; display: grid; grid-template-columns: 320px 1fr; gap: 38px; align-items: start;
  box-shadow: var(--shadow);
}
.author-frame { border: 1px solid var(--gold); padding: 6px; border-radius: 12px; background: var(--bg); }
.author-frame img { display: block; width: 100%; border-radius: 8px; }
.author-cap { font-size: 0.9rem; color: var(--mute); text-align: center; margin: 10px 0 0; }
.author-bio-col h2 { font-family: var(--display); font-size: 2.3rem; margin: 4px 0 14px; line-height: 1.1; }
.author-bio-col .prose-book { margin: 0; max-width: none; }
.dedication-card, .lvo-banner {
  margin-top: 20px; padding: 18px 22px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line);
}
.dedication-card p, .lvo-banner p { margin: 6px 0 0; font-family: var(--display); font-style: italic; font-size: 1.22rem; }

.voices-container { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: start; }
.voices-tabs { display: flex; flex-direction: column; gap: 8px; }
.voice-tab {
  text-align: left; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg-elev); cursor: pointer; display: flex; flex-direction: column; gap: 2px;
}
.voice-tab strong { font-family: var(--display); font-size: 1.18rem; }
.voice-tab span { font-family: var(--sans); font-size: 0.72rem; color: var(--mute); }
.voice-tab.active { background: var(--navy); color: #f3ead8; border-color: var(--navy); }
.voice-tab.active span { color: var(--gold-bright); }
html[data-theme="dark"] .voice-tab.active { background: var(--bg-soft); border-color: var(--gold-bright); }

.voices-stage {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: 20px;
  padding: 36px; box-shadow: var(--shadow);
}
.voice-panel { display: none; }
.voice-panel.active { display: block; }
.voice-sign { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); text-align: right; }
.voice-sign strong { font-family: var(--display); font-size: 1.3rem; }
.voice-role { font-size: 0.92rem; font-style: italic; color: var(--mute); }

.qr-share-box {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: 22px; padding: 38px;
}
.qr-share-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 280px)); justify-content: center; gap: 32px; }
.qr-share-item {
  background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 24px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px;
}
.qr-share-item h3 { font-family: var(--display); font-style: italic; font-size: 1.45rem; margin: 0; }
.qr-mat { padding: 8px; background: #fff; border: 1px solid var(--gold); border-radius: 8px; }
.qr-box-svg { display: block; width: 136px; height: 136px; }
.qr-tag { font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.qr-share-item code { font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--ink-2); }

/* ---------- Vídeo (/video/) ---------- */
.video-stage-section { background: radial-gradient(ellipse at 50% 25%, #1e3150 0%, var(--navy-deep) 100%); color: #f3ead8; }
.cinema-card {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 38px; align-items: center;
  padding: 28px 0;
}
.cinema-art { text-align: center; }
.cinema-art img { max-width: 340px; width: 100%; }
.cinema-copy h1 { font-family: var(--display); font-size: clamp(2.1rem, 4vw, 3rem); line-height: 1.1; margin: 8px 0 12px; }
.cinema-copy p { color: #e2d7c0; font-size: 1.08rem; }
.cinema-copy code { color: var(--gold-bright); }
.cinema-note { opacity: 0.88; margin-bottom: 24px; }

/* ---------- Footer & Lightbox ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 44px 22px; text-align: center; }
.footer-inner { max-width: 900px; margin: 0 auto; }
.footer-orn .orn-svg { margin: 0 auto 14px; }
.footer-title { font-family: var(--display); font-size: 1.35rem; font-weight: 600; margin: 0 0 4px; }
.footer-sub { color: var(--ink-2); font-size: 0.95rem; margin: 0 0 16px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; font-family: var(--sans); font-size: 0.8rem; margin-bottom: 16px; }
.footer-links a { color: var(--ink-2); text-decoration: none; }
.footer-links a:hover { color: var(--gold); }
.footer-copy { font-size: 0.84rem; color: var(--mute); margin: 0; }

.lightbox {
  position: fixed; inset: 0; z-index: 120; background: rgba(10, 16, 28, 0.92);
  display: flex; align-items: center; justify-content: center; padding: 28px;
}
.lightbox[hidden] { display: none; }
.lb-close {
  position: absolute; top: 18px; right: 22px; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3); background: rgba(255,255,255,0.08); color: #fff;
  font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.lb-figure { margin: 0; max-width: 900px; text-align: center; }
.lb-figure img { max-height: 78vh; width: auto; background: #f7f1e4; padding: 10px; border-radius: 10px; }
.lb-figure figcaption { color: #f3ead8; margin-top: 12px; font-size: 1rem; font-style: italic; }

/* ---------- Responsivo (Tablet & Mobile 390px) ---------- */
@media (max-width: 980px) {
  .hero-inner, .harmony-card, .movements-grid, .video-banner,
  .reader-layout, .exegesis-grid, .diagram-interactive-layout,
  .mission-map-panel, .author-showcase, .voices-container, .cinema-card {
    grid-template-columns: 1fr;
  }
  .reader-sidebar { position: static; max-height: none; }
  .vb-quote { border-left: 0; border-top: 1px solid rgba(201,164,94,0.4); padding-left: 0; padding-top: 20px; }
  .author-photo-col { max-width: 280px; margin: 0 auto; }
}

@media (max-width: 640px) {
  .header-inner { flex-wrap: wrap; padding: 10px 14px; }
  .nav-links {
    order: 3; width: 100%; justify-content: flex-start; overflow-x: auto;
    flex-wrap: nowrap; padding-bottom: 4px; -webkit-overflow-scrolling: touch;
  }
  .section-wrap { padding: 38px 16px; }
  .harmony-card, .pericope-detail, .diagram-interactive-layout, .author-showcase, .voices-stage, .qr-share-box {
    padding: 22px 18px;
  }
  .harmony-pillars, .qr-share-grid { grid-template-columns: 1fr; }
  .search-box { max-width: none; min-width: 0; width: 100%; }
  /* Diagrama compacto e sem overflow no celular */
  .mat-stage {
    height: auto; display: flex; flex-direction: column; gap: 10px; align-items: stretch;
  }
  .mat-ring { display: none; }
  .mat-node, .mat-node.n-top, .mat-node.n-bottom, .mat-node.n-left, .mat-node.n-right {
    position: static; width: 100%;
  }
  .mat-center {
    position: static; width: 100%; height: auto; border-radius: 14px; padding: 14px; order: -1;
  }
}
