/* =====================================================================
   Escriba — Folha de estilos global
   Direção visual: editorial premium — papel quente, serifa de display,
   acento terracota, muito espaço em branco.
   ===================================================================== */

:root {
  /* Cores */
  --paper: #f7f4ee;
  --paper-raised: #fffdf9;
  --ink: #1c1915;
  --ink-soft: #4c463d;
  --muted: #7a7266;
  --accent: #9a4b33;
  --accent-strong: #7e3b27;
  --accent-tint: #f1e3dc;
  --hairline: rgba(28, 25, 21, 0.12);
  --hairline-strong: rgba(28, 25, 21, 0.22);
  --success: #3d6b4f;
  --danger: #a03434;

  /* Tipografia */
  --font-display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-ui: 'Instrument Sans', -apple-system, 'Segoe UI', sans-serif;

  /* Métricas */
  --measure: 680px;
  --wrap: 1120px;
  --radius: 10px;
  --shadow-card: 0 1px 2px rgba(28, 25, 21, 0.05), 0 12px 32px -16px rgba(28, 25, 21, 0.18);
  --shadow-pop: 0 24px 64px -24px rgba(28, 25, 21, 0.35);
}

/* ------- Base ------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

::selection { background: var(--accent-tint); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* ------- Cabeçalho ------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  height: 40px;
  width: auto;
  display: block;
}

.brand-tag {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-left: 12px;
  border-left: 1px solid var(--hairline-strong);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.18s, color 0.18s;
}

.nav-link:hover { background: rgba(28, 25, 21, 0.06); color: var(--ink); }

.nav-link.is-accent {
  background: var(--ink);
  color: var(--paper);
}

.nav-link.is-accent:hover { background: var(--accent-strong); color: #fff; }

/* ------- Hero (página inicial) ------- */
.hero {
  padding: 72px 0 72px;
  border-bottom: 1px solid var(--hairline);
}

.hero-kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 20px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 18ch;
  text-wrap: balance;
}

.hero-title em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  margin: 24px 0 0;
  max-width: 52ch;
  font-size: 17px;
  color: var(--muted);
  text-wrap: pretty;
}

/* ------- Lista de posts ------- */
.feed { padding: 56px 0 96px; flex: 1; }

.feed-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
}

.feed-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.post-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--paper-raised);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 32px 30px 28px;
  text-decoration: none;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s;
}

.post-card:hover {
  transform: translateY(-3px);
  border-color: var(--hairline-strong);
  box-shadow: var(--shadow-pop);
}

.post-card.is-featured { grid-column: 1 / -1; padding: 44px 42px 38px; }

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.post-card-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--accent); }

.post-card-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

.post-card.is-featured .post-card-title { font-size: clamp(30px, 4vw, 44px); }

.post-card-excerpt {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  text-wrap: pretty;
}

.post-card-cta {
  margin-top: auto;
  padding-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 6px;
}

.post-card:hover .post-card-cta { text-decoration: underline; text-underline-offset: 3px; }

/* ------- Página do post ------- */
.article { padding: 72px 0 96px; flex: 1; }

.article-head {
  max-width: var(--measure);
  margin: 0 auto 48px;
}

.article-kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}

.article-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  text-wrap: balance;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--hairline);
}

.article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--accent); }

.article-body {
  max-width: var(--measure);
  margin: 0 auto;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.article-body p { margin: 0 0 1.4em; text-wrap: pretty; }

.article-body p:first-of-type::first-letter {
  font-size: 3.2em;
  float: left;
  line-height: 0.85;
  padding: 6px 10px 0 0;
  color: var(--accent);
  font-style: italic;
}

.article-back {
  max-width: var(--measure);
  margin: 56px auto 0;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
}

/* ------- Botões ------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.1s;
}

.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent-strong); color: #fff; }
.btn-primary:disabled { opacity: 0.55; cursor: wait; }

.btn-ghost { background: transparent; border-color: var(--hairline-strong); color: var(--ink); }
.btn-ghost:hover { background: rgba(28, 25, 21, 0.05); }

.btn-danger { background: transparent; border-color: transparent; color: var(--danger); }
.btn-danger:hover { background: rgba(160, 52, 52, 0.08); }

.btn-sm { padding: 7px 14px; font-size: 13px; }

/* ------- Formulários ------- */
.field { display: flex; flex-direction: column; gap: 7px; }

.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}

.field input,
.field textarea,
.field select {
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--ink);
  background: var(--paper-raised);
  border: 1px solid var(--hairline-strong);
  border-radius: 8px;
  padding: 11px 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field textarea { resize: vertical; min-height: 120px; line-height: 1.6; }

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}

.field-hint { font-size: 12px; color: var(--muted); }

/* ------- Login ------- */
.auth-page {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 64px 24px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--paper-raised);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  box-shadow: var(--shadow-pop);
  padding: 44px 40px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 30px;
  letter-spacing: -0.015em;
  margin: 0;
}

.auth-sub { margin: -12px 0 0; font-size: 14px; color: var(--muted); }

/* ------- Painel administrativo ------- */
.admin { flex: 1; padding: 48px 0 96px; }

.admin-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 36px;
}

.admin-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 36px;
  letter-spacing: -0.015em;
  margin: 0;
}

.admin-sub { margin: 4px 0 0; font-size: 14px; color: var(--muted); }

.admin-table {
  width: 100%;
  background: var(--paper-raised);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.admin-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 18px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--hairline);
}

.admin-row:last-child { border-bottom: none; }

.admin-row-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  margin: 0 0 2px;
}

.admin-row-meta { font-size: 12.5px; color: var(--muted); }

.status-pill {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
}

.status-pill.publicado { background: #e2ece5; color: var(--success); }
.status-pill.rascunho { background: #efe9df; color: #8a7a58; }

/* Editor (modal simples em página) */
.editor-panel {
  background: var(--paper-raised);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  padding: 36px 34px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.editor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.editor-grid .span-2 { grid-column: 1 / -1; }

.editor-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 4px;
}

/* ------- Estados: carregando / vazio / erro ------- */
.state {
  padding: 72px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}

.spinner {
  width: 26px;
  height: 26px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 2.5px solid var(--hairline-strong);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.skeleton {
  border-radius: var(--radius);
  background: linear-gradient(100deg, rgba(28,25,21,.05) 40%, rgba(28,25,21,.1) 50%, rgba(28,25,21,.05) 60%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer { to { background-position: -200% 0; } }

/* ------- Toast ------- */
.toast-stack {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 200;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: 999px;
  box-shadow: var(--shadow-pop);
  animation: toast-in 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

.toast.success::before,
.toast.error::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.toast.success::before { background: #8fd0a8; }
.toast.error::before { background: #e08b8b; }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ------- Rodapé ------- */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 32px 0;
}

.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
}

.footer-brand { font-family: var(--font-display); font-style: italic; font-size: 17px; color: var(--ink); }

/* =====================================================================
   Temas — coleção devocional (namespaced tm-*)
   Reaproveita os tokens do Escriba; nenhuma cor nova introduzida.
   ===================================================================== */

.tm-page { flex: 1; }

.tm-head {
  padding: 40px 0 40px;
  border-bottom: 1px solid var(--hairline);
}

.tm-kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}

.tm-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 5.5vw, 60px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  max-width: 16ch;
  text-wrap: balance;
}

.tm-title em { font-style: italic; color: var(--accent); }

.tm-sub {
  margin: 0;
  max-width: 60ch;
  font-size: 16px;
  color: var(--muted);
  text-wrap: pretty;
}

.tm-stats {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 28px;
}

.tm-stat-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 30px;
  color: var(--accent);
  line-height: 1;
}

.tm-stat-label {
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

/* toolbar */
.tm-toolbar {
  position: sticky;
  top: 64px;
  z-index: 30;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
  padding: 18px 0;
}

.tm-search-row { display: flex; gap: 12px; align-items: center; }

.tm-search-box { position: relative; flex: 1; display: flex; align-items: center; }

.tm-search-box svg {
  position: absolute; left: 18px; width: 18px; height: 18px; color: var(--muted); pointer-events: none;
}

.tm-search-box input {
  width: 100%; height: 48px;
  padding: 0 44px 0 48px;
  border: 1px solid var(--hairline-strong);
  background: var(--paper-raised);
  color: var(--ink);
  border-radius: 999px;
  font-family: var(--font-ui); font-size: 15px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.tm-search-box input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }

.tm-search-clear {
  position: absolute; right: 12px; width: 24px; height: 24px;
  border: none; background: var(--accent-tint); color: var(--accent);
  border-radius: 50%; cursor: pointer; display: none; align-items: center; justify-content: center;
}
.tm-search-clear.show { display: flex; }
.tm-search-clear svg { position: static; width: 12px; height: 12px; }

.tm-sort {
  height: 48px; padding: 0 36px 0 16px;
  border: 1px solid var(--hairline-strong); background: var(--paper-raised); color: var(--ink);
  border-radius: 999px; font-family: var(--font-ui); font-size: 13px; font-weight: 600;
  cursor: pointer; outline: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a4b33' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 15px;
}

.tm-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

.tm-chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 14px;
  border: 1px solid var(--hairline-strong); background: transparent; color: var(--ink-soft);
  border-radius: 999px; cursor: pointer;
  font-family: var(--font-ui); font-size: 13px; font-weight: 600;
  white-space: nowrap; transition: all 0.18s ease;
}
.tm-chip:hover { border-color: var(--accent); color: var(--accent); }
.tm-chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* resultados */
.tm-results-bar {
  display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding: 28px 0 6px;
}
.tm-results-count { font-family: var(--font-display); font-size: 22px; color: var(--ink); }
.tm-results-count b { color: var(--accent); font-weight: 700; }
.tm-results-note { font-size: 13px; color: var(--muted); }

/* grid de cartões */
.tm-grid {
  padding: 16px 0 60px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.tm-card {
  position: relative;
  background: var(--paper-raised);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 24px 22px 20px;
  cursor: pointer;
  display: flex; flex-direction: column;
  min-height: 172px;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s;
  overflow: hidden;
}
.tm-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--accent); transform: scaleY(0); transform-origin: top; transition: transform 0.25s ease;
}
.tm-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-pop); border-color: var(--hairline-strong); }
.tm-card:hover::before { transform: scaleY(1); }

.tm-card-num {
  font-family: var(--font-display); font-style: italic; font-size: 13px; color: var(--muted); margin-bottom: 10px;
}
.tm-card-title {
  font-family: var(--font-display); font-size: 22px; line-height: 1.2; font-weight: 500; color: var(--ink);
  margin: 0 0 12px; text-wrap: balance;
}
.tm-card-title mark { background: var(--accent-tint); color: var(--accent-strong); border-radius: 2px; }
.tm-card-books { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.tm-book-tag {
  font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px;
  background: var(--accent-tint); color: var(--accent-strong);
}
.tm-card-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--hairline);
}
.tm-card-count { font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); }
.tm-card-read { font-size: 13px; font-weight: 600; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 5px; transition: gap 0.2s, color 0.2s; }
.tm-card:hover .tm-card-read { gap: 9px; color: var(--accent); }
.tm-card-read svg { width: 14px; height: 14px; }

.tm-empty { grid-column: 1/-1; text-align: center; padding: 64px 20px; color: var(--muted); }
.tm-empty h3 { font-family: var(--font-display); font-size: 26px; color: var(--ink); margin: 0 0 8px; font-weight: 500; }

.tm-load-more-wrap { text-align: center; padding: 6px 0 56px; }

/* modais */
.tm-overlay, .tm-v-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(28, 25, 21, 0.55);
  backdrop-filter: blur(5px);
  display: flex; justify-content: center; align-items: flex-start;
  padding: 40px 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
  overflow-y: auto;
}
.tm-v-overlay { align-items: center; }
.tm-overlay.is-open, .tm-v-overlay.is-open { opacity: 1; pointer-events: auto; }

.tm-reader, .tm-v-modal {
  position: relative;
  width: min(680px, 100%);
  background: var(--paper-raised);
  border: 1px solid var(--hairline-strong);
  border-radius: 14px;
  box-shadow: var(--shadow-pop);
  transform: translateY(24px) scale(0.98);
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1);
  margin: auto 0;
}
.tm-v-modal { max-height: calc(100svh - 64px); display: flex; flex-direction: column; }
.tm-overlay.is-open .tm-reader, .tm-v-overlay.is-open .tm-v-modal { transform: translateY(0) scale(1); }

.tm-reader-inner { padding: 40px clamp(24px, 5vw, 52px) 34px; }
.tm-reader-head { text-align: center; margin-bottom: 6px; position: relative; }
.tm-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--hairline-strong); background: var(--paper-raised); color: var(--ink-soft);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
.tm-close:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tm-close svg { width: 16px; height: 16px; }
.tm-reader-eyebrow { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 14px; }
.tm-reader-title {
  font-family: var(--font-display); font-weight: 500; font-size: clamp(26px, 4.5vw, 38px); line-height: 1.12;
  color: var(--ink); margin: 0 0 10px; text-wrap: balance;
}
.tm-reader-meta { font-size: 13px; color: var(--muted); }
.tm-reader-rule { height: 1px; background: var(--hairline); margin: 22px 0 24px; }

.tm-verse {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 6px; border-bottom: 1px solid var(--hairline);
  cursor: pointer; border-radius: 6px; transition: background 0.15s ease;
}
.tm-verse:hover { background: var(--accent-tint); }
.tm-verse:last-child { border-bottom: none; }
.tm-verse-idx { font-family: var(--font-display); font-style: italic; font-size: 14px; color: var(--muted); width: 24px; flex: none; text-align: right; padding-top: 2px; }
.tm-verse-body { flex: 1; min-width: 0; }
.tm-verse-ref { font-size: 13.5px; font-weight: 700; color: var(--accent); display: flex; align-items: center; gap: 6px; }
.tm-verse-prev { margin: 4px 0 0; font-family: var(--font-display); font-size: 16.5px; line-height: 1.4; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tm-verse-prev.is-empty { font-style: italic; color: var(--muted); font-size: 14px; }
.tm-verse-actions { display: flex; gap: 6px; flex: none; padding-top: 2px; }
.tm-v-act {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--hairline); background: transparent; color: var(--muted);
  cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.18s ease;
}
.tm-v-act:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-tint); }
.tm-v-act svg { width: 15px; height: 15px; }
.tm-v-act.is-starred { color: var(--accent); border-color: var(--accent); }
.tm-v-act.is-starred svg { fill: var(--accent); }

.tm-reader-foot {
  background: var(--paper);
  border-top: 1px solid var(--hairline);
  border-radius: 0 0 14px 14px;
  padding: 16px clamp(24px, 5vw, 52px);
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.tm-reader-foot .tm-hint { font-size: 12px; color: var(--muted); }
.tm-reader-nav { display: flex; gap: 8px; }
.tm-reader-nav button {
  height: 38px; padding: 0 15px; border-radius: 999px;
  border: 1px solid var(--hairline-strong); background: var(--paper-raised); color: var(--ink);
  font-family: var(--font-ui); font-size: 13px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; transition: all 0.18s ease;
}
.tm-reader-nav button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.tm-reader-nav button:disabled { opacity: 0.4; cursor: default; }
.tm-reader-nav button svg { width: 14px; height: 14px; }

/* modal do versículo em destaque */
.tm-v-body { position: relative; z-index: 2; padding: 48px clamp(26px, 6vw, 58px) 28px; overflow-y: auto; text-align: center; }
.tm-v-eyebrow { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 22px; }
.tm-v-quote { font-family: var(--font-display); font-size: 84px; line-height: 0.5; color: var(--accent); height: 38px; display: block; opacity: 0.85; }
.tm-v-text { font-family: var(--font-display); font-size: clamp(22px, 3.4vw, 30px); line-height: 1.42; font-weight: 500; color: var(--ink); margin: 16px auto 0; max-width: 30ch; text-wrap: pretty; }
.tm-v-text.is-unavailable { font-size: 17px; font-style: italic; color: var(--muted); }
.tm-v-ref { display: inline-block; margin-top: 22px; font-family: var(--font-ui); font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.tm-v-ref::before, .tm-v-ref::after { content: "—"; opacity: 0.5; margin: 0 10px; }

.tm-v-foot {
  border-top: 1px solid var(--hairline); background: var(--paper);
  border-radius: 0 0 14px 14px;
  padding: 14px clamp(18px, 4vw, 28px);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.tm-v-foot-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.tm-v-pill {
  height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--hairline-strong); background: var(--paper-raised); color: var(--ink);
  font-family: var(--font-ui); font-size: 13px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px; transition: all 0.18s ease; text-decoration: none;
}
.tm-v-pill:hover { border-color: var(--accent); color: var(--accent); }
.tm-v-pill svg { width: 15px; height: 15px; }
.tm-v-pill.is-primary { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.tm-v-pill.is-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
.tm-v-pill.is-starred { color: var(--accent); border-color: var(--accent); }
.tm-v-pill.is-starred svg { fill: var(--accent); }
.tm-v-pill.is-ghost { border-color: transparent; color: var(--muted); }
.tm-v-nav { display: flex; gap: 8px; align-items: center; }
.tm-v-nav button {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--hairline-strong); background: var(--paper-raised); color: var(--ink);
  cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.18s ease;
}
.tm-v-nav button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.tm-v-nav button:disabled { opacity: 0.35; cursor: default; }
.tm-v-nav button svg { width: 16px; height: 16px; }
.tm-v-counter { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* toast local (namespaced, não colide com o toast do blog) */
.tm-toast {
  position: fixed; bottom: max(24px, env(safe-area-inset-bottom)); left: 50%;
  transform: translateX(-50%) translateY(16px);
  z-index: 200;
  background: var(--ink); color: var(--paper);
  padding: 12px 20px; border-radius: 999px;
  font-family: var(--font-ui); font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-pop);
  display: flex; align-items: center; gap: 10px;
  opacity: 0; pointer-events: none; transition: all 0.3s cubic-bezier(.2,.8,.2,1);
}
.tm-toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }
.tm-toast svg { width: 17px; height: 17px; color: #8fd0a8; }

@media (max-width: 720px) {
  .tm-head { padding: 44px 0 32px; }
  .tm-toolbar { top: 0; }
  .tm-search-row { flex-wrap: wrap; }
  .tm-sort { flex: 1; }
}

/* ------- Responsivo ------- */
@media (max-width: 720px) {
  .hero { padding: 56px 0 44px; }
  .feed { padding: 40px 0 72px; }
  .post-card, .post-card.is-featured { padding: 26px 22px 24px; }
  .editor-grid { grid-template-columns: 1fr; }
  .admin-row { grid-template-columns: 1fr auto; row-gap: 10px; }
  .admin-row .row-actions { grid-column: 1 / -1; display: flex; gap: 8px; }
  .article-body { font-size: 18px; }
  .auth-card { padding: 34px 26px 30px; }
  .brand-tag { display: none; }
}
