/* Lidermil · site público
   Cores de destaque (--accent...) vêm do tema escolhido no painel (layout.php).
   Fontes hospedadas no próprio site (Inter e Newsreader, licença SIL OFL). */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/inter.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("fonts/newsreader.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 200 800; font-display: swap; src: url("fonts/newsreader-italic.woff2") format("woff2"); }

:root {
  --ink: #14161B;
  --ink-2: #3F4552;
  --muted: #5A606E;
  --line: #E4E6EB;
  --line-2: #CDD1D9;
  --soft: #F5F6F8;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: Newsreader, Georgia, "Times New Roman", serif;
  --wrap: 1200px;
  --accent: #1D3F8F;
  --accent-hover: #14306E;
  --accent-soft: #DCE3F2;
  --accent-tint: #F3F6FD;
  --accent-on-dark: #9FB4E6;
}
.font-classica { --font-title: var(--serif); --font-read: var(--serif); }
.font-moderna  { --font-title: var(--sans);  --font-read: var(--sans); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: #fff; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 200; }
.skip:focus { left: 8px; color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

.section { padding-top: 40px; }
.section-sm { padding-top: 22px; }
@media (min-width: 960px) { .section { padding-top: 72px; } .section-sm { padding-top: 32px; } }
.mt-20 { margin-top: 20px; }
.mb-16 { margin-bottom: 16px; }

.only-desktop, .only-desktop-block { display: none !important; }
@media (min-width: 960px) {
  .only-desktop { display: inline-flex !important; }
  .only-desktop-block { display: block !important; }
  .only-mobile { display: none !important; }
}

/* ── Tipografia ── */
.kicker { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); text-decoration: none; }
.kicker-on-dark { color: var(--accent-on-dark); }
.label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.display { font-family: var(--font-title); font-size: 34px; line-height: 1.08; font-weight: 600; letter-spacing: -.02em; margin-top: 10px; }
.lead { font-size: 16px; line-height: 1.55; color: var(--ink-2); margin-top: 12px; max-width: 620px; }
.h-section { font-family: var(--font-title); font-size: 24px; font-weight: 600; letter-spacing: -.01em; }
.section-sub { font-size: 14px; color: var(--muted); margin-top: 4px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.meta-kicker { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.card-title { font-family: var(--font-title); font-weight: 600; font-size: 19px; line-height: 1.25; color: var(--ink); }
.card-desc { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.card-date { font-size: 12px; color: var(--muted); }
.link-strong { font-size: 14px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
@media (min-width: 960px) {
  .display { font-size: 52px; }
  .lead { font-size: 18px; }
  .h-section { font-size: 32px; }
  .card-title { font-size: 21px; }
}

/* ── Botões e chips ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 22px; border-radius: 14px; font-size: 15px; font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: var(--sans); white-space: nowrap; }
.btn-sm { height: 44px; padding: 0 18px; border-radius: 22px; font-size: 14px; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); color: #fff; }
.btn-outline { border-color: var(--line-2); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { color: var(--ink); background: var(--soft); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-block { display: flex; width: 100%; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.actions .btn { flex: 1 1 160px; }
@media (min-width: 960px) { .actions .btn { flex: 0 0 auto; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 20px; }
.chips-scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips-scroll::-webkit-scrollbar { display: none; }
@media (min-width: 960px) { .chips-scroll { flex-wrap: wrap; } }
.chip { flex-shrink: 0; display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border-radius: 19px; background: var(--soft); color: var(--ink); font-size: 13px; text-decoration: none; }
.chip:hover { background: var(--line); color: var(--ink); }
.chip.is-active { background: var(--accent); color: #fff; font-weight: 600; }
.badge { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--accent); padding: 4px 8px; border-radius: 6px; }

/* ── Cabeçalho ── */
.site-header { position: relative; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand-name { font-family: var(--font-title); font-size: 24px; font-weight: 600; letter-spacing: -.01em; }
.brand-sub { font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.nav-desktop { display: none; }
.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 22px; color: var(--ink); background: none; border: 0; cursor: pointer; text-decoration: none; list-style: none; }
.icon-btn:hover { background: var(--soft); color: var(--ink); }
.icon-btn-outline { border: 1px solid var(--line); }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary::marker { content: ""; }
.menu-panel { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 32px rgba(20, 22, 27, .08); padding: 4px 0 16px; max-height: calc(100vh - 64px); overflow-y: auto; }
.menu-panel a { display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 500; font-size: 16px; }
.menu-panel a:last-child { border-bottom: 0; }
@media (min-width: 1180px) {
  .brand { margin-right: 0; }
  .nav-desktop { display: flex; flex: 1; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; }
  .nav-desktop a { color: var(--ink-2); text-decoration: none; }
  .nav-desktop a:hover, .nav-desktop a.active { color: var(--ink); }
  .nav-desktop a.active { font-weight: 600; }
  .menu { display: none; }
  .brand-name { font-size: 28px; }
  .header-row { min-height: 76px; }
}

/* Cabeçalho escuro na home "Por temas" */
.home-temas .site-header { background: var(--ink); border-bottom-color: var(--ink); }
.home-temas .brand, .home-temas .brand:hover, .home-temas .header-actions > .icon-btn, .home-temas .menu > summary, .home-temas .nav-desktop a { color: #fff; }
.home-temas .nav-desktop a.active { color: #fff; }
.home-temas .brand-sub { color: #9AA1AE; }
.home-temas .icon-btn:hover { background: rgba(255, 255, 255, .1); }

/* ── Rodapé ── */
.site-footer { margin-top: 56px; border-top: 1px solid var(--line); padding: 28px 0 36px; }
.footer-row { display: flex; flex-direction: column; gap: 14px; }
.footer-brand { display: flex; flex-direction: column; gap: 4px; }
.footer-motto { font-size: 14px; font-style: italic; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 22px; }
.footer-links a { color: var(--ink); text-decoration: none; font-size: 14px; min-height: 44px; display: inline-flex; align-items: center; }
.footer-note { font-size: 12px; color: var(--muted); margin-top: 8px; }
@media (min-width: 960px) {
  .site-footer { margin-top: 88px; }
  .footer-row { flex-direction: row; justify-content: space-between; align-items: center; }
  .footer-brand { flex-direction: row; align-items: baseline; gap: 14px; }
}

/* ── Cards ── */
.thumb { display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-icon { background: var(--accent-tint); }
.thumb.is-contain { background: var(--soft); }
.thumb.is-contain img { object-fit: contain; }

.row-card { display: flex; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.row-card:hover { color: var(--ink); }
.row-card:hover .card-title { color: var(--accent); }
.row-card-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.row-thumb { width: 84px; height: 84px; flex-shrink: 0; }
@media (min-width: 768px) { .row-thumb { width: 120px; height: 96px; } }

.feature { display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: var(--ink); }
.feature:hover { color: var(--ink); }
.feature:hover .feature-title { color: var(--accent); }
.feature-thumb { height: 220px; border-radius: 18px; }
.feature-body { display: flex; flex-direction: column; gap: 10px; }
.feature-tags { display: flex; gap: 10px; align-items: center; }
.feature-title { font-family: var(--font-title); font-size: 28px; line-height: 1.12; font-weight: 600; letter-spacing: -.01em; }
.feature-desc { font-size: 15px; line-height: 1.55; color: var(--ink-2); max-width: 620px; }
@media (min-width: 960px) {
  .feature-thumb { height: 420px; border-radius: 24px; }
  .feature-title { font-size: 44px; }
  .feature-desc { font-size: 17px; }
}

.split { display: flex; flex-wrap: wrap; gap: 32px 40px; }
.split-main { flex: 3 1 560px; min-width: 0; }
.split-side { flex: 2 1 340px; min-width: 0; }
.split-end { align-items: flex-end; }

.tile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; padding-top: 8px; }
.tile { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink); }
.tile .card-title { font-size: 17px; }
.tile-thumb { height: 128px; }
.tile-dark { background: var(--ink); color: #fff; border-radius: 14px; padding: 16px; justify-content: space-between; min-height: 128px; }
.tile-dark .card-title { color: #fff; }
.tile-dark:hover { color: #fff; background: #000; }

.topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.topic { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; min-height: 72px; padding: 14px; border-radius: 14px; background: var(--soft); color: var(--ink); text-decoration: none; }
.topic:hover { background: var(--line); color: var(--ink); }
.topic-desc { display: none; font-size: 12px; color: var(--muted); }
.topic-name { font-size: 14px; font-weight: 600; }
@media (min-width: 768px) {
  .topics { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
  .topic { min-height: 120px; padding: 20px; border-radius: 18px; }
  .topic-desc { display: block; }
  .topic-name { font-family: var(--font-title); font-size: 22px; }
}

.author-card { display: flex; gap: 14px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 18px; }
.author-card-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.author-card-name { font-family: var(--font-title); font-size: 18px; font-weight: 600; }
.author-card-desc { font-size: 13px; line-height: 1.45; color: var(--muted); }
.author-card .link-strong { min-height: 32px; }
@media (min-width: 960px) { .author-card { padding: 24px 28px; gap: 20px; } .author-card-name { font-size: 24px; } .author-card-desc { font-size: 15px; } }

.avatar { flex-shrink: 0; border-radius: 50%; overflow: hidden; background: var(--accent-soft); color: var(--accent); font-weight: 600; display: flex; align-items: center; justify-content: center; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.cta-dark { display: flex; flex-direction: column; gap: 14px; background: var(--ink); color: #fff; border-radius: 18px; padding: 22px 20px; }
.cta-title { font-family: var(--font-title); font-size: 22px; line-height: 1.25; font-weight: 600; }
.cta-text { font-size: 14px; line-height: 1.5; color: #C9CDD6; margin-top: 6px; }
@media (min-width: 768px) {
  .cta-dark { flex-direction: row; align-items: center; justify-content: space-between; padding: 28px 32px; border-radius: 22px; }
  .cta-title { font-size: 26px; }
}

.duo { display: flex; flex-wrap: wrap; gap: 16px 20px; align-items: stretch; }
.duo > * { flex: 1 1 420px; }
.card-outline { border: 1px solid var(--line); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.card-outline p { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.card-heading { font-family: var(--font-title); font-size: 22px; font-weight: 600; }
@media (min-width: 960px) { .card-outline { padding: 36px; border-radius: 24px; } .card-heading { font-size: 30px; } .card-outline p { font-size: 17px; } }

.highlight { background: var(--accent-tint); border-radius: 20px; padding: 24px 20px; display: flex; flex-direction: column; gap: 8px; }
.highlight-title { font-family: var(--font-title); font-size: 24px; line-height: 1.2; font-weight: 600; }
@media (min-width: 960px) { .highlight { padding: 40px; } .highlight-title { font-size: 34px; } }

.empty-state { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 40px 20px; border: 1px dashed var(--line-2); border-radius: 18px; color: var(--muted); }

/* ── Home Editorial ── */
.hero-editorial { padding-top: 32px; display: flex; flex-wrap: wrap; gap: 20px 64px; align-items: flex-end; }
.hero-editorial .hero-text { flex: 3 1 520px; }
.hero-editorial .hero-author { flex: 2 1 320px; }
@media (min-width: 960px) { .hero-editorial { padding-top: 64px; } .hero-editorial .display { font-size: 64px; } }

/* ── Cabeçalho de páginas ── */
.page-head { padding-top: 28px; }
@media (min-width: 960px) { .page-head { padding-top: 56px; } .page-head .display { font-size: 56px; } }

/* ── Home Pessoal / Sobre ── */
.persona { display: flex; flex-wrap: wrap-reverse; gap: 24px 64px; align-items: center; padding-top: 12px; }
.persona-text { flex: 1 1 480px; min-width: 0; }
.persona-name { font-family: var(--font-title); font-size: 40px; line-height: 1.04; font-weight: 600; letter-spacing: -.02em; margin-top: 10px; }
.persona-photo { flex: 1 1 380px; min-width: 0; height: 400px; border-radius: 24px; overflow: hidden; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; }
.persona-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.persona-initials { font-family: var(--font-title); font-size: 96px; font-weight: 600; color: var(--accent); opacity: .5; }
.milestones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 20px; max-width: 560px; }
.milestone { background: var(--soft); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.milestone-value { font-family: var(--font-title); font-size: 22px; font-weight: 600; }
.milestone-label { font-size: 12px; line-height: 1.35; color: var(--muted); }
@media (min-width: 960px) {
  .persona { padding-top: 40px; }
  .persona-name { font-size: 76px; line-height: 1; }
  .persona-photo { height: 600px; border-radius: 32px; }
  .milestone { padding: 16px; }
  .milestone-value { font-size: 30px; }
  .milestone-label { font-size: 13px; }
}

.motto { margin-top: 40px; background: var(--accent-tint); text-align: center; }
.motto .wrap { padding-top: 32px; padding-bottom: 32px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.motto-icon { color: var(--accent); }
.motto-text { font-family: var(--serif); font-size: 30px; line-height: 1.15; font-style: italic; }
.motto-note { font-size: 13px; color: var(--muted); }
@media (min-width: 960px) { .motto { margin-top: 88px; } .motto .wrap { padding-top: 64px; padding-bottom: 64px; } .motto-text { font-size: 52px; } .motto-note { font-size: 15px; } }

.writings { display: grid; grid-template-columns: minmax(0, 1fr); }
.writing { display: flex; flex-direction: column; gap: 6px; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.writing:hover { color: var(--ink); }
.writing:hover .writing-title { color: var(--accent); }
.writing-title { font-family: var(--font-title); font-size: 21px; line-height: 1.25; font-weight: 600; }
@media (min-width: 960px) {
  .writings { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; }
  .writing { padding: 26px 0; border-bottom: 0; border-top: 1px solid var(--line); }
  .writing-title { font-size: 28px; }
}

/* ── Home Por temas ── */
.verse-hero { background: var(--ink); color: #fff; }
.verse-hero-row { display: flex; flex-wrap: wrap; gap: 24px 64px; align-items: flex-end; padding-top: 32px; padding-bottom: 40px; }
.verse-hero-text { flex: 3 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.verse-hero-quote { font-family: var(--serif); font-size: 28px; line-height: 1.3; font-style: italic; }
.verse-hero-ref { font-size: 14px; font-weight: 600; color: var(--accent-on-dark); }
.verse-hero-card { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 18px; background: rgba(255, 255, 255, .08); color: #fff; text-decoration: none; }
.verse-hero-card:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.verse-hero-thumb { height: 160px; border-radius: 14px; overflow: hidden; margin-bottom: 8px; }
.verse-hero-thumb img { width: 100%; height: 100%; object-fit: cover; }
.verse-hero-from { font-size: 12px; color: #C9CDD6; }
.verse-hero-title { font-family: var(--font-title); font-size: 19px; font-weight: 600; line-height: 1.2; }
.verse-hero-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--accent-on-dark); margin-top: 4px; }
@media (min-width: 960px) {
  .verse-hero-row { padding-top: 72px; padding-bottom: 88px; }
  .verse-hero-quote { font-size: 46px; line-height: 1.22; }
  .verse-hero-card { padding: 22px; }
  .verse-hero-title { font-size: 24px; }
}

.tracks { display: flex; flex-direction: column; margin-top: 12px; }
.track { padding: 16px 0 24px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.track-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.track-name { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.track-post { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); }
.track-post:hover .card-title { color: var(--accent); }
.track-thumb { height: 180px; border-radius: 16px; }
.track-poem { display: flex; flex-direction: column; justify-content: space-between; gap: 12px; padding: 22px; border-radius: 18px; background: var(--accent-tint); color: var(--ink); text-decoration: none; }
.track-poem:hover { color: var(--ink); }
.track-poem-title { font-family: var(--font-title); font-size: 24px; font-weight: 600; }
.track-poem-lines { font-family: var(--serif); font-size: 17px; line-height: 1.5; font-style: italic; color: var(--ink-2); }
.track-poem .link-strong { min-height: 0; }
.track-song { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 16px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.track-song > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.track-song-icon { width: 52px; height: 52px; border-radius: 26px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
@media (min-width: 960px) {
  .tracks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
  .track { border-bottom: 0; border-top: 2px solid var(--ink); padding: 12px 0 0; }
  .track-thumb { height: 200px; }
  .track-poem, .track-song { min-height: 280px; }
  .track-song { flex-direction: column; align-items: flex-start; justify-content: space-between; padding: 26px; }
}

.other-topics { display: grid; grid-template-columns: minmax(0, 1fr); }
.other-topic { display: flex; align-items: center; justify-content: space-between; min-height: 56px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; }
.other-topic:last-child { border-bottom: 1px solid var(--line); }
.other-topic svg { color: var(--muted); }
@media (min-width: 960px) {
  .other-topics { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
  .other-topic, .other-topic:last-child { min-height: 72px; padding: 0 20px; border: 0; border-radius: 16px; background: var(--soft); }
}

/* ── Artigo ── */
.preview-banner { background: #FDF1E4; color: #7C2D12; text-align: center; font-size: 14px; font-weight: 600; padding: 12px 20px; }
.article { max-width: 720px; margin: 0 auto; padding: 28px 20px 0; }
.article-head { display: flex; flex-direction: column; gap: 12px; }
.article-title { font-family: var(--font-title); font-size: 36px; line-height: 1.1; font-weight: 600; letter-spacing: -.015em; }
.article-sub { font-size: 17px; line-height: 1.5; color: var(--muted); }
.byline { display: flex; align-items: center; gap: 12px; padding: 12px 0; margin-top: 8px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.byline-text { flex: 1; display: flex; flex-direction: column; }
.byline-name { font-size: 14px; font-weight: 600; }
.byline-meta { font-size: 13px; color: var(--muted); }
.cover { margin: 24px -20px 0; }
.cover img { width: 100%; }
.cover figcaption, .img figcaption { font-family: var(--sans); font-size: 13px; color: var(--muted); margin-top: 8px; padding: 0 20px; }
.article-body { padding-top: 24px; font-family: var(--font-read); font-size: 18px; line-height: 1.65; }
.article-body::after { content: ""; display: table; clear: both; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose h2, .prose h3, .body-heading { font-family: var(--font-title); font-weight: 600; line-height: 1.25; margin: 1.5em 0 .6em; clear: both; }
.prose h2, .body-heading { font-size: 24px; }
.prose h3 { font-size: 20px; }
.prose blockquote { margin: 1.4em 0; padding: 18px 20px; background: var(--soft); border-radius: 14px; font-style: italic; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose-legacy img { border-radius: 12px; margin: 1em 0; }
.prose-legacy figure { margin: 1.2em 0; }
.prose-legacy figcaption { font-family: var(--sans); font-size: 13px; color: var(--muted); margin-top: 6px; }
.prose-legacy iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 12px; }
.verse { margin: 1.4em 0; padding: 18px 20px; background: var(--accent-tint); border-radius: 16px; clear: both; display: flex; flex-direction: column; gap: 10px; }
.verse p { font-family: var(--serif); font-size: 20px; line-height: 1.45; font-style: italic; }
.verse cite { font-family: var(--sans); font-size: 13px; font-weight: 600; font-style: normal; color: var(--accent); }
.img { margin: 0 0 1.2em; }
.img img { width: 100%; border-radius: 14px; }
.img figcaption { padding: 0; }
.img-full { clear: both; }
.img-center { clear: both; width: 82%; margin-left: auto; margin-right: auto; }
.img-left { float: left; clear: both; width: 46%; margin: 6px 16px 12px 0; }
.img-right { float: right; clear: both; width: 46%; margin: 6px 0 12px 16px; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0 0 1.2em; clear: both; }
.gallery-1 { grid-template-columns: minmax(0, 1fr); }
.gallery-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery-item { display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--soft); cursor: zoom-in; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item.is-contain img { object-fit: contain; }
@media (min-width: 960px) {
  .article { padding-top: 56px; }
  .article-title { font-size: 52px; }
  .article-sub { font-size: 20px; }
  .cover { margin: 32px 0 0; }
  .cover img { border-radius: 20px; }
  .cover figcaption { padding: 0; }
  .article-body { font-size: 20px; padding-top: 32px; }
  .prose h2, .body-heading { font-size: 28px; }
  .verse { padding: 24px 28px; }
  .verse p { font-size: 24px; }
  .img-left { margin-right: 24px; }
  .img-right { margin-left: 24px; }
  .gallery { gap: 10px; }
}
.related-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .related { max-width: 784px; } }

/* ── Lista / busca ── */
.list-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .list-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; } }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 28px; }
.pager-info { font-size: 13px; color: var(--muted); }
.search-form { display: flex; gap: 10px; margin-top: 20px; max-width: 620px; }
.search-form input { flex: 1; min-width: 0; height: 50px; border: 1px solid var(--line-2); border-radius: 14px; padding: 0 16px; font: 16px var(--sans); color: var(--ink); }
.search-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* ── Banner / carrossel da página inicial ──
   Imagem ideal: 1920 × 720 px (8:3). No celular o recorte é quadrado (1:1),
   ou usa a imagem própria para celular (1080 × 1080 px), se enviada. */
.banner-wrap { padding-top: 16px; }
.banner { position: relative; border-radius: 18px; overflow: hidden; background: var(--accent-soft); }
.banner-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.banner-track::-webkit-scrollbar { display: none; }
.banner-track:focus-visible { outline-offset: -4px; }
.banner-slide { position: relative; flex: 0 0 100%; aspect-ratio: 1 / 1; scroll-snap-align: start; scroll-snap-stop: always; }
.banner-slide picture, .banner-slide img { display: block; width: 100%; height: 100%; }
.banner-slide img { object-fit: cover; }
.banner-slide.has-caption::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(10, 11, 14, .78) 0%, rgba(10, 11, 14, .3) 45%, rgba(10, 11, 14, 0) 72%); }
.banner-caption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 20px 20px 44px; color: #fff; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; max-width: 680px; }
.banner:not(.is-carousel) .banner-caption { padding-bottom: 22px; }
.banner-title { font-family: var(--font-title); font-size: 26px; line-height: 1.12; font-weight: 600; letter-spacing: -.01em; }
.banner-text { font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .9); }
.banner-btn { margin-top: 6px; }
.banner-nav { display: none; position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; margin-top: -22px; border: 0; border-radius: 22px; background: rgba(255, 255, 255, .92); color: var(--ink); cursor: pointer; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(20, 22, 27, .18); }
.banner-nav.prev { left: 16px; transform: rotate(180deg); }
.banner-nav.next { right: 16px; }
.banner-dots { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 2; display: flex; justify-content: center; gap: 4px; }
.banner-dot { width: 24px; height: 24px; border: 0; padding: 0; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.banner-dot::before { content: ""; width: 8px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .55); transition: width .25s, background .25s; }
.banner-dot.is-active::before { width: 22px; background: #fff; }
.banner-pause { position: absolute; top: 12px; right: 12px; z-index: 2; width: 32px; height: 32px; border: 0; border-radius: 16px; background: rgba(10, 11, 14, .45); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
@media (min-width: 768px) {
  .banner { border-radius: 22px; }
  .banner-slide { aspect-ratio: 8 / 3; }
  .banner-caption { padding: 32px 40px 48px; }
  .banner:not(.is-carousel) .banner-caption { padding-bottom: 32px; }
  .banner-title { font-size: 40px; }
  .banner-text { font-size: 18px; }
  .banner-nav { display: flex; }
}
@media (min-width: 960px) { .banner-wrap { padding-top: 28px; } .banner-caption { padding-left: 56px; } }
@media (prefers-reduced-motion: reduce) { .banner-track { scroll-behavior: auto; } }

/* ── Lightbox ── */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(10, 11, 14, .94); display: flex; align-items: center; justify-content: center; padding: 20px; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 90vh; width: auto; border-radius: 8px; }
.lightbox button { position: absolute; top: 12px; right: 12px; width: 48px; height: 48px; border: 0; border-radius: 24px; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
