/**
 * EBD 360 — Devocional Publico (Editorial Premium)
 *
 * Reescrita alinhada ao Design System oficial.
 * Usa exclusivamente tokens --ebd-* definidos em design-system.css.
 *
 * @package EBD360_Theme
 * @since   2.3.0
 */

/* =========================================================
   ESCOPO LOCAL (nao sobrescreve tokens globais)
   ========================================================= */
.dev-single {
  --dev-font-scale: 1;
  --dev-hero-image: none;
  --dev-hero-ink: #FFFFFF;
  --dev-hero-muted: rgba(255, 255, 255, 0.72);
  --dev-hero-line: rgba(255, 255, 255, 0.14);
  --dev-hero-surface: rgba(255, 255, 255, 0.06);
  --dev-hero-surface-strong: rgba(255, 255, 255, 0.12);
}

/* =========================================================
   PROGRESS BAR DE LEITURA (fixa no topo)
   ========================================================= */
.dev-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ebd-gold), #e8c97a);
  box-shadow: 0 0 12px rgba(197, 160, 89, 0.35);
  transition: width 0.1s linear;
}

/* =========================================================
   BASE DO ARTIGO
   ========================================================= */
body.single-ebd360_devocional {
  background: var(--ebd-bg);
  color: var(--ebd-neutral-800);
  font-family: var(--ebd-font-sans);
}

.dev-single {
  overflow: visible;
  background:
    radial-gradient(circle at 14% 6%, rgba(197, 160, 89, 0.06), transparent 32rem),
    linear-gradient(180deg, var(--ebd-neutral-50) 0%, #FFFFFF 55%, var(--ebd-bg) 100%);
}

/* Header integrado ao hero (dark) */
body.single-ebd360_devocional .ebd360-header {
  background: transparent !important;
  box-shadow: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}
body.single-ebd360_devocional .ebd360-header.ebd360-scrolled {
  background: rgba(12, 21, 33, 0.94) !important;
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24) !important;
  border-color: rgba(255, 255, 255, 0.08);
}

/* =========================================================
   HERO EDITORIAL
   ========================================================= */
.dev-hero {
  position: relative;
  margin-top: -80px;
  padding: 132px 20px 72px;
  color: var(--dev-hero-ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 18%),
    radial-gradient(circle at 50% -18%, rgba(197, 160, 89, 0.14), transparent 34%),
    radial-gradient(circle at 82% 12%, rgba(197, 160, 89, 0.08), transparent 34%),
    linear-gradient(145deg, #142238 0%, #101c2d 48%, #0C1521 100%);
  border-bottom: 1px solid rgba(197, 160, 89, 0.14);
  overflow: hidden;
}

.dev-hero.has-image {
  background:
    linear-gradient(180deg, rgba(12, 21, 33, 0.78), rgba(12, 21, 33, 0.92)),
    var(--dev-hero-image) center/cover no-repeat;
}

.dev-hero::before {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(197, 160, 89, 0.42), transparent);
  pointer-events: none;
  animation: none;
}

@keyframes dev-hero-pulse {
  from { opacity: 0.5; transform: scale(0.95); }
  to   { opacity: 1;   transform: scale(1.08); }
}

.dev-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

/* --- Breadcrumb --- */
.dev-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  font-family: var(--ebd-font-sans);
  font-size: 12.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.64);
}
.dev-breadcrumb a {
  color: var(--dev-hero-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.dev-breadcrumb a:hover,
.dev-breadcrumb a:focus-visible {
  color: var(--ebd-gold);
}
.dev-breadcrumb > span {
  opacity: 0.45;
  font-weight: 400;
}

/* --- Meta pills --- */
.dev-hero__meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 22px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--ebd-radius-full);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.dev-pill,
.dev-hero__meta span {
  display: inline-flex;
  align-items: center;
  padding: 6px 13px;
  border: none;
  border-radius: var(--ebd-radius-full);
  background: transparent;
  color: var(--dev-hero-muted);
  font-family: var(--ebd-font-sans);
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.dev-pill {
  background: rgba(197, 160, 89, 0.18);
  color: #F1D6A2;
}

.dev-hero__theme {
  width: fit-content;
  max-width: min(680px, 100%);
  margin: 0 auto 18px;
  padding: 7px 16px;
  border: 1px solid rgba(197, 160, 89, 0.28);
  border-radius: var(--ebd-radius-full);
  background: rgba(197, 160, 89, 0.10);
  color: #F2D18E;
  font-family: var(--ebd-font-sans);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* --- Titulo --- */
.dev-hero h1 {
  max-width: 860px;
  margin: 0 auto;
  font-family: var(--ebd-font-serif);
  font-size: clamp(34px, 4vw, 60px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0;
  color: #FFFFFF;
  text-wrap: balance;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.30);
}

.dev-hero__summary {
  max-width: 650px;
  margin: 20px auto 0;
  font-family: var(--ebd-font-sans);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.68;
  color: rgba(226, 232, 240, 0.76);
  text-wrap: pretty;
}

/* --- Autor no hero (chip elegante) --- */
.dev-hero__author {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 30px auto 0;
  padding: 6px 16px 6px 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--ebd-radius-full);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  text-align: left;
}
.dev-hero__author img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(197, 160, 89, 0.5);
  object-fit: cover;
}
.dev-hero__author > div {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.dev-hero__author span {
  font-family: var(--ebd-font-sans);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1;
}
.dev-hero__author strong {
  font-family: var(--ebd-font-sans);
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
}

/* --- Acoes do hero (botoes discretos) --- */
.dev-hero__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  width: fit-content;
  margin: 26px auto 0;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--ebd-radius-full);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.dev-hero .dev-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border: none;
  border-radius: var(--ebd-radius-full);
  background: transparent;
  color: rgba(255, 255, 255, 0.74);
  font-family: var(--ebd-font-sans);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}
.dev-hero .dev-btn:hover,
.dev-hero .dev-btn:focus-visible {
  background: rgba(197, 160, 89, 0.16);
  color: #F1D6A2;
}
.dev-hero .dev-btn.is-active {
  background: rgba(197, 160, 89, 0.24);
  color: #FFFFFF;
}
.dev-hero .dev-btn .dashicons {
  width: 14px;
  height: 14px;
  font-size: 14px;
}

/* =========================================================
   LAYOUT PRINCIPAL
   ========================================================= */
.dev-wrap {
  width: min(1280px, calc(100% - 56px));
  margin: 0 auto;
  padding: 56px 0 var(--ebd-space-6xl);
}

.dev-layout {
  display: grid;
  grid-template-columns: minmax(0, 850px) 340px;
  justify-content: center;
  gap: 44px;
  align-items: start;
  overflow: visible;
}

.dev-main {
  min-width: 0;
  max-width: 850px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* =========================================================
   CARD BASE (todos os blocos editoriais)
   ========================================================= */
.dev-section,
.dev-scripture,
.dev-feature-card,
.dev-prayer,
.dev-reminder,
.dev-question,
.dev-author,
.dev-newsletter,
.dev-comments {
  padding: clamp(28px, 4vw, 38px);
  background: #FFFFFF;
  border: 1px solid #e8edf3;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.035);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.dev-section:hover,
.dev-feature-card:hover {
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.055);
}

/* Titulos de secao */
.dev-section h2,
.dev-feature-card h2,
.dev-prayer h2,
.dev-question h2,
.dev-author h2,
.dev-newsletter h2 {
  margin: 0 0 var(--ebd-space-lg);
  font-family: var(--ebd-font-serif);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--ebd-primary);
  letter-spacing: -0.01em;
}

/* Texto padrao (Refinado para leitura premium de alta qualidade) */
.dev-prose {
  font-family: var(--ebd-font-serif), 'Merriweather', Georgia, serif;
  max-width: 72ch;
  font-size: calc(18px * var(--dev-font-scale));
  line-height: 1.78;
  color: #1e293b; /* Slate-800 para leitura confortável */
  letter-spacing: 0;
}
.dev-prose p {
  margin: 0 0 1.05em;
}
.dev-prose p + p {
  margin-top: 0.2em;
}
.dev-prose p:last-child {
  margin-bottom: 0;
}
.dev-prose strong {
  color: var(--ebd-primary);
  font-weight: 700;
}
.dev-prose h2,
.dev-prose h3,
.dev-prose h4,
.dev-prose h5,
.dev-prose h6 {
  margin: var(--ebd-space-2xl) 0 var(--ebd-space-md);
  font-family: var(--ebd-font-serif), 'Merriweather', Georgia, serif;
  color: var(--ebd-primary);
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.dev-prose h2 { font-size: 24px; font-weight: 700; }
.dev-prose h3 { font-size: 20px; font-weight: 700; }
.dev-prose h4 { font-size: 18px; font-weight: 700; }
.dev-prose h5,
.dev-prose h6 { font-size: 16px; font-weight: 700; }
.dev-prose a {
  color: var(--ebd-primary);
  text-decoration: underline;
  text-decoration-color: rgba(197, 160, 89, 0.5);
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}
.dev-prose a:hover { color: var(--ebd-gold); }
.dev-prose ul,
.dev-prose ol {
  margin: 0 0 1.4em 24px;
  padding: 0;
}
.dev-prose li {
  margin-bottom: 8px;
  line-height: 1.7;
}
.dev-prose blockquote {
  margin: var(--ebd-space-xl) 0;
  padding: 18px 24px;
  border-left: 4px solid var(--ebd-gold);
  background: #f8fafc;
  font-family: var(--ebd-font-serif), 'Merriweather', Georgia, serif;
  font-style: italic;
  font-size: 1.05em;
  color: #475569;
  line-height: 1.85;
  border-radius: 0 var(--ebd-radius-md) var(--ebd-radius-md) 0;
}

/* Drop-cap elegante para a abertura do devocional */
.dev-prose--lead > p:first-of-type::first-letter {
  float: left;
  font-size: 3rem;
  line-height: 0.85;
  padding: 4px 10px 0 0;
  font-family: var(--ebd-font-serif), 'Merriweather', Georgia, serif;
  font-weight: 700;
  color: var(--ebd-gold);
}

/* Introducao: leve destaque */
.dev-section--intro {
  border-left: 4px solid var(--ebd-gold);
}

/* =========================================================
   ESCRITURA (Palavra de Deus)
   ========================================================= */
.dev-scripture {
  position: relative;
  padding: 28px 34px;
  background: linear-gradient(135deg, #fffbf0 0%, #fef3cd 100%);
  border: 1px solid rgba(197, 160, 89, 0.30);
  border-left: 5px solid var(--ebd-gold);
}
.dev-scripture::before {
  content: '\201C';
  position: absolute;
  top: -14px;
  right: 24px;
  font-family: var(--ebd-font-serif);
  font-size: 130px;
  line-height: 1;
  color: rgba(197, 160, 89, 0.12);
  pointer-events: none;
}
.dev-scripture > .dashicons {
  width: 22px;
  height: 22px;
  margin-bottom: 12px;
  font-size: 22px;
  color: var(--ebd-gold);
}
.dev-scripture__ref {
  margin: 0 0 var(--ebd-space-md);
  font-family: var(--ebd-font-sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #a07830;
}
.dev-scripture__text {
  font-family: var(--ebd-font-serif);
  max-width: 62ch;
  font-size: calc(18px * var(--dev-font-scale));
  line-height: 1.7;
  color: #5a3e0a;
  font-style: italic;
}
.dev-scripture__text p:last-child { margin-bottom: 0; }
.dev-scripture__version {
  margin: var(--ebd-space-md) 0 0;
  font-family: var(--ebd-font-sans);
  font-size: 12px;
  font-weight: 600;
  color: rgba(90, 62, 10, 0.72);
}

/* =========================================================
   APLICACAO PRATICA (destaque verde)
   ========================================================= */
.dev-feature-card {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 18px;
  border-left: 4px solid var(--ebd-success);
  background: linear-gradient(135deg, var(--ebd-success-light) 0%, #FFFFFF 65%);
}
.dev-feature-card__icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--ebd-radius-full);
  background: #FFFFFF;
  color: var(--ebd-success);
  box-shadow: var(--ebd-shadow-xs);
}
.dev-feature-card__icon .dashicons {
  width: 22px;
  height: 22px;
  font-size: 22px;
}

/* =========================================================
   ORACAO FINAL (destaque dourado suave)
   ========================================================= */
.dev-prayer {
  position: relative;
  padding-left: clamp(28px, 4vw, 38px);
  border-left: 4px solid var(--ebd-gold);
  background: linear-gradient(135deg, var(--ebd-gold-light) 0%, #FFFFFF 65%);
}
.dev-prayer > .dashicons {
  width: 22px;
  height: 22px;
  margin-bottom: 12px;
  font-size: 22px;
  color: var(--ebd-gold);
}

/* =========================================================
   DESAFIO DO DIA (destaque success)
   ========================================================= */
.dev-reminder {
  padding: 24px 32px;
  background: linear-gradient(135deg, var(--ebd-success-light) 0%, #FFFFFF 65%);
  border: 1px solid rgba(16, 185, 129, 0.24);
  border-left: 4px solid var(--ebd-success);
  border-radius: var(--ebd-radius-lg);
}
.dev-reminder > span {
  display: block;
  margin-bottom: 8px;
  font-family: var(--ebd-font-sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ebd-success);
}
.dev-reminder .dev-prose {
  font-size: calc(16px * var(--dev-font-scale));
  line-height: 1.7;
  color: var(--ebd-neutral-800);
}

/* =========================================================
   PERGUNTA PARA REFLEXAO (info blue)
   ========================================================= */
.dev-question {
  border-left: 4px solid var(--ebd-info);
  background: linear-gradient(135deg, var(--ebd-info-light) 0%, #FFFFFF 65%);
}
.dev-question .dev-btn--gold {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--ebd-space-lg);
  padding: 10px 18px;
  border: 1px solid var(--ebd-gold);
  border-radius: var(--ebd-radius-full);
  background: var(--ebd-gold);
  color: #FFFFFF;
  font-family: var(--ebd-font-sans);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
}
.dev-question .dev-btn--gold:hover {
  background: var(--ebd-gold-hover);
  border-color: var(--ebd-gold-hover);
  transform: translateY(-1px);
  box-shadow: var(--ebd-shadow-md);
}

/* =========================================================
   FAQ (Perguntas frequentes)
   ========================================================= */
.dev-faq {
  display: flex;
  flex-direction: column;
  gap: var(--ebd-space-sm);
}
.dev-faq details {
  border: 1px solid var(--ebd-neutral-200);
  border-radius: var(--ebd-radius-md);
  background: var(--ebd-neutral-50);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.dev-faq details[open] {
  border-color: rgba(197, 160, 89, 0.4);
  background: #FFFFFF;
  box-shadow: var(--ebd-shadow-xs);
}
.dev-faq summary {
  position: relative;
  padding: 14px 44px 14px 18px;
  font-family: var(--ebd-font-sans);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ebd-primary);
  cursor: pointer;
  list-style: none;
  transition: color 0.2s ease;
}
.dev-faq summary::-webkit-details-marker { display: none; }
.dev-faq summary::after {
  content: '\f347';
  font-family: dashicons;
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ebd-gold);
  transition: transform 0.3s ease;
}
.dev-faq details[open] summary::after {
  transform: translateY(-50%) rotate(180deg);
}
.dev-faq summary:hover { color: var(--ebd-gold); }
.dev-faq details > div {
  padding: 0 18px 18px;
}
.dev-faq .dev-prose {
  font-size: calc(15px * var(--dev-font-scale));
  color: var(--ebd-neutral-600);
}

/* =========================================================
   LEIA TAMBEM (mini cards)
   ========================================================= */
.dev-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--ebd-space-md);
}
.dev-mini-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--ebd-neutral-200);
  border-radius: var(--ebd-radius-md);
  background: var(--ebd-neutral-50);
  color: var(--ebd-primary);
  text-decoration: none;
  transition: all 0.25s ease;
}
.dev-mini-card:hover {
  border-color: rgba(197, 160, 89, 0.45);
  background: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: var(--ebd-shadow-sm);
}
.dev-mini-card .dashicons {
  width: 18px;
  height: 18px;
  font-size: 18px;
  color: var(--ebd-gold);
}
.dev-mini-card strong {
  font-family: var(--ebd-font-sans);
  font-size: 14px;
  font-weight: 700;
  color: var(--ebd-primary);
  line-height: 1.4;
}
.dev-mini-card small {
  font-family: var(--ebd-font-sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--ebd-neutral-400);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* =========================================================
   CONTEUDOS RELACIONADOS (cards com thumb)
   ========================================================= */
.dev-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--ebd-space-lg);
}
.dev-related-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--ebd-neutral-200);
  border-radius: var(--ebd-radius-lg);
  background: #FFFFFF;
  color: var(--ebd-primary);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.dev-related-card:hover {
  border-color: rgba(197, 160, 89, 0.4);
  transform: translateY(-3px);
  box-shadow: var(--ebd-shadow-md);
}
.dev-related-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--ebd-neutral-100);
  transition: transform 0.5s ease;
}
.dev-related-card:hover img {
  transform: scale(1.04);
}
.dev-related-card span {
  padding: 14px 16px 0;
  font-family: var(--ebd-font-sans);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ebd-gold);
}
.dev-related-card strong {
  padding: 6px 16px 0;
  font-family: var(--ebd-font-sans);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ebd-primary);
}
.dev-related-card small {
  padding: 10px 16px 16px;
  margin-top: auto;
  font-family: var(--ebd-font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--ebd-neutral-400);
}

/* =========================================================
   AUTOR (bloco discreto)
   ========================================================= */
.dev-author {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: var(--ebd-space-lg);
  padding: var(--ebd-space-xl);
  background: var(--ebd-neutral-50);
}
.dev-author img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid rgba(197, 160, 89, 0.4);
  object-fit: cover;
}
.dev-author > div > span {
  display: block;
  margin-bottom: 4px;
  font-family: var(--ebd-font-sans);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ebd-gold);
}
.dev-author h2 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.3;
}
.dev-author p {
  margin: 0 0 var(--ebd-space-md);
  font-family: var(--ebd-font-sans);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ebd-neutral-600);
}
.dev-author > div > div {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ebd-space-sm);
}
.dev-author .dev-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid var(--ebd-neutral-300);
  border-radius: var(--ebd-radius-full);
  background: #FFFFFF;
  color: var(--ebd-neutral-800);
  font-family: var(--ebd-font-sans);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}
.dev-author .dev-btn:hover {
  border-color: var(--ebd-gold);
  color: var(--ebd-gold);
}

/* =========================================================
   NAVEGACAO ENTRE POSTS
   ========================================================= */
.dev-post-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--ebd-space-md);
}
.dev-post-nav > div,
.dev-post-nav > a {
  display: block;
}
.dev-post-nav a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 80px;
  padding: 16px 18px;
  border: 1px solid var(--ebd-neutral-200);
  border-radius: var(--ebd-radius-lg);
  background: #FFFFFF;
  color: var(--ebd-primary);
  text-decoration: none;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
.dev-post-nav a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--ebd-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.dev-post-nav a:hover {
  border-color: rgba(197, 160, 89, 0.4);
  transform: translateY(-2px);
  box-shadow: var(--ebd-shadow-sm);
}
.dev-post-nav a:hover::before { transform: scaleX(1); }
.dev-post-nav span {
  font-family: var(--ebd-font-sans);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ebd-neutral-400);
}
.dev-post-nav strong {
  font-family: var(--ebd-font-sans);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ebd-primary);
}

/* =========================================================
   NEWSLETTER (CTA final premium)
   ========================================================= */
.dev-newsletter {
  padding: var(--ebd-space-4xl);
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(197, 160, 89, 0.18) 0%, transparent 60%),
    linear-gradient(135deg, var(--ebd-primary) 0%, #253548 100%);
  border: none;
  color: #FFFFFF;
  box-shadow: var(--ebd-shadow-md);
}
.dev-newsletter > span {
  display: block;
  margin-bottom: var(--ebd-space-md);
  font-family: var(--ebd-font-sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ebd-gold);
}
.dev-newsletter h2 {
  margin: 0 0 var(--ebd-space-md);
  font-family: var(--ebd-font-serif);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.3;
  color: #FFFFFF;
}
.dev-newsletter p {
  max-width: 520px;
  margin: 0 auto var(--ebd-space-xl);
  font-family: var(--ebd-font-sans);
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.7);
}
.dev-newsletter form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 460px;
  margin: 0 auto;
}
.dev-newsletter input {
  flex: 1;
  min-width: 200px;
  height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--ebd-radius-full);
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  font-family: var(--ebd-font-sans);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.dev-newsletter input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}
.dev-newsletter input:focus {
  border-color: var(--ebd-gold);
  background: rgba(255, 255, 255, 0.12);
}
.dev-newsletter button {
  height: 44px;
  padding: 0 24px;
  border: none;
  border-radius: var(--ebd-radius-full);
  background: var(--ebd-gold);
  color: var(--ebd-primary);
  font-family: var(--ebd-font-sans);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}
.dev-newsletter button:hover {
  background: #E8C97A;
  transform: translateY(-1px);
}

/* =========================================================
   COMENTARIOS
   ========================================================= */
.dev-comments {
  display: flex;
  flex-direction: column;
  gap: var(--ebd-space-xl);
  scroll-margin-top: 96px;
}

.dev-comments__header {
  padding-bottom: var(--ebd-space-lg);
  border-bottom: 1px solid var(--ebd-neutral-200);
}

.dev-comments__title {
  margin: 0;
  font-family: var(--ebd-font-serif);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--ebd-primary);
  display: flex;
  align-items: center;
  gap: var(--ebd-space-sm);
}

.dev-comments__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: var(--ebd-radius-full);
  background: rgba(197, 160, 89, 0.15);
  color: #a07830;
  font-family: var(--ebd-font-sans);
  font-size: 13px;
  font-weight: 700;
}

.dev-comments__count.is-hidden {
  display: none;
}

.dev-comments__thread {
  display: flex;
  flex-direction: column;
  gap: var(--ebd-space-lg);
}

.dev-comments__subtitle {
  margin: var(--ebd-space-sm) 0 0;
  font-family: var(--ebd-font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ebd-neutral-600);
}

.dev-comments__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--ebd-space-md);
  padding: var(--ebd-space-2xl) var(--ebd-space-lg);
  text-align: center;
  border: 1px dashed var(--ebd-neutral-200);
  border-radius: var(--ebd-radius-md);
  background: var(--ebd-neutral-50);
}

.dev-comments__empty::before {
  content: "";
  width: 44px;
  height: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C5A059' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.85;
}

.dev-comments__empty p {
  margin: 0;
  max-width: 360px;
  font-family: var(--ebd-font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ebd-neutral-600);
}

.dev-comments__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--ebd-space-lg);
}

.dev-comments__list .children {
  list-style: none;
  margin: var(--ebd-space-md) 0 0;
  padding: 0 0 0 calc(var(--ebd-space-xl) - 4px);
  border-left: 2px solid rgba(197, 160, 89, 0.28);
  display: flex;
  flex-direction: column;
  gap: var(--ebd-space-md);
}

.dev-comment {
  list-style: none;
}

.dev-comment__body {
  position: relative;
  padding: var(--ebd-space-lg) var(--ebd-space-lg) var(--ebd-space-lg) calc(var(--ebd-space-lg) + 6px);
  background: linear-gradient(180deg, #FFFFFF 0%, var(--ebd-neutral-50) 100%);
  border: 1px solid var(--ebd-neutral-200);
  border-radius: var(--ebd-radius-lg);
  box-shadow: var(--ebd-shadow-xs);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  overflow: hidden;
}

.dev-comment__body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--ebd-gold) 0%, rgba(197, 160, 89, 0.35) 100%);
}

.dev-comment__body:hover {
  border-color: rgba(197, 160, 89, 0.35);
  box-shadow: var(--ebd-shadow-sm);
}

.dev-comment--reply .dev-comment__body {
  background: #FFFFFF;
  padding-left: var(--ebd-space-lg);
}

.dev-comment--reply .dev-comment__body::before {
  width: 3px;
  opacity: 0.65;
}

.dev-comment--new .dev-comment__body {
  animation: devCommentIn 0.55s ease;
}

@keyframes devCommentIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dev-comment__header {
  display: flex;
  align-items: center;
  gap: var(--ebd-space-md);
  margin-bottom: var(--ebd-space-md);
}

.dev-comment__avatar-img {
  width: 48px;
  height: 48px;
  border-radius: var(--ebd-radius-full);
  object-fit: cover;
  border: 2px solid #FFFFFF;
  box-shadow: var(--ebd-shadow-xs);
}

.dev-comment__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dev-comment__author {
  font-family: var(--ebd-font-sans);
  font-size: 15px;
  font-weight: 700;
  color: var(--ebd-primary);
}

.dev-comment__date {
  font-family: var(--ebd-font-sans);
  font-size: 12.5px;
  color: var(--ebd-neutral-400);
}

.dev-comment__content {
  font-family: var(--ebd-font-sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ebd-neutral-600);
}

.dev-comment__content p {
  margin: 0 0 0.75em;
}

.dev-comment__content p:last-child {
  margin-bottom: 0;
}

.dev-comment__moderation {
  margin: 0 0 var(--ebd-space-sm);
  padding: var(--ebd-space-sm) var(--ebd-space-md);
  border-radius: var(--ebd-radius-sm);
  background: rgba(197, 160, 89, 0.12);
  color: #a07830;
  font-size: 13px;
}

.dev-comment__footer {
  margin-top: var(--ebd-space-md);
}

.dev-comment__reply {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid rgba(197, 160, 89, 0.28);
  border-radius: var(--ebd-radius-full);
  background: rgba(197, 160, 89, 0.08);
  color: #a07830;
  font-family: var(--ebd-font-sans);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.dev-comment__reply:hover {
  background: rgba(197, 160, 89, 0.16);
  border-color: rgba(197, 160, 89, 0.45);
  color: var(--ebd-primary);
}

.dev-comments__pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--ebd-space-sm);
  padding-top: var(--ebd-space-md);
  border-top: 1px solid var(--ebd-neutral-200);
}

.dev-comments__pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--ebd-neutral-200);
  border-radius: var(--ebd-radius-md);
  background: #FFFFFF;
  color: var(--ebd-primary);
  font-family: var(--ebd-font-sans);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.dev-comments__pagination .page-numbers.current,
.dev-comments__pagination .page-numbers:hover {
  border-color: var(--ebd-gold);
  background: rgba(197, 160, 89, 0.08);
}

.dev-comments__form {
  padding: var(--ebd-space-xl);
  border: 1px solid var(--ebd-neutral-200);
  border-radius: var(--ebd-radius-lg);
  background:
    radial-gradient(ellipse at 100% 0%, rgba(197, 160, 89, 0.08) 0%, transparent 55%),
    linear-gradient(180deg, #FFFFFF 0%, var(--ebd-neutral-50) 100%);
  box-shadow: var(--ebd-shadow-xs);
}

.dev-comments__form::before {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin-bottom: var(--ebd-space-lg);
  border-radius: var(--ebd-radius-full);
  background: linear-gradient(90deg, var(--ebd-gold) 0%, rgba(197, 160, 89, 0.35) 100%);
}

.dev-comments #respond,
.dev-comments .comment-respond {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
}

.dev-comments #reply-title,
.dev-comments .comment-reply-title {
  margin: 0 0 var(--ebd-space-md);
  font-family: var(--ebd-font-serif);
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 700;
  color: var(--ebd-primary);
}

.dev-comments #cancel-comment-reply-link {
  margin-left: var(--ebd-space-sm);
  font-family: var(--ebd-font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--ebd-neutral-400);
  text-decoration: none;
}

.dev-comments #cancel-comment-reply-link:hover {
  color: var(--ebd-primary);
}

.dev-comment-form {
  display: grid;
  gap: var(--ebd-space-md);
}

.dev-comment-form__field label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--ebd-font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--ebd-primary);
}

.dev-comment-form__field input,
.dev-comment-form__field textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--ebd-neutral-200);
  border-radius: var(--ebd-radius-md);
  background: #FFFFFF;
  color: var(--ebd-neutral-800);
  font-family: var(--ebd-font-sans);
  font-size: 15px;
  line-height: 1.5;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.dev-comment-form__field textarea {
  min-height: 148px;
  resize: vertical;
  line-height: 1.65;
}

.dev-comment-form__field textarea::placeholder {
  color: var(--ebd-neutral-400);
  font-size: 14.5px;
}

.dev-comment-form__field input:focus,
.dev-comment-form__field textarea:focus {
  border-color: var(--ebd-gold);
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.15);
}

.dev-comment-form__field--comment {
  grid-column: 1 / -1;
}

@media (min-width: 640px) {
  .dev-comment-form {
    grid-template-columns: 1fr 1fr;
  }

  .dev-comment-form__field--comment,
  .dev-comment-form__cookies,
  .dev-comment-form__logged-in,
  .dev-comment-form__login,
  .dev-comment-form__actions {
    grid-column: 1 / -1;
  }
}

.dev-comment-form__cookies {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-family: var(--ebd-font-sans);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ebd-neutral-600);
}

.dev-comment-form__cookies input {
  margin-top: 3px;
}

.dev-comment-form__logged-in,
.dev-comment-form__login {
  display: flex;
  align-items: center;
  gap: var(--ebd-space-md);
  margin: 0;
  padding: var(--ebd-space-md) var(--ebd-space-lg);
  border: 1px solid var(--ebd-neutral-200);
  border-radius: var(--ebd-radius-md);
  background: #FFFFFF;
  font-family: var(--ebd-font-sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ebd-neutral-600);
}

.dev-comment-form__avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--ebd-radius-full);
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(197, 160, 89, 0.25);
}

.dev-comment-form__logged-in a,
.dev-comment-form__login a {
  color: var(--ebd-primary);
  font-weight: 600;
}

.dev-comment-form__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.dev-comment-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 28px;
  border: none;
  border-radius: var(--ebd-radius-full);
  background: linear-gradient(135deg, var(--ebd-primary) 0%, #253548 100%);
  color: #FFFFFF;
  font-family: var(--ebd-font-sans);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(30, 41, 59, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.dev-comment-form__submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(30, 41, 59, 0.22);
}

.dev-comment-form.is-submitting {
  opacity: 0.72;
  pointer-events: none;
}

.dev-comment-form.is-submitting .dev-comment-form__submit {
  cursor: wait;
}

.dev-comments .comment-form-url,
.dev-comments .required,
.dev-comments .screen-reader-text,
.dev-comments .says {
  display: none !important;
}

/* =========================================================
   SIDEBAR (widgets)
   ========================================================= */
.dev-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
  z-index: 3;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid rgba(214, 224, 236, 0.78);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.92)),
    #ffffff;
  box-shadow:
    0 28px 70px rgba(15, 23, 42, 0.10),
    0 1px 0 rgba(255, 255, 255, 0.86) inset;
  backdrop-filter: blur(16px);
}

@media (min-width: 1025px) {
  .dev-sidebar.is-fixed {
    position: fixed;
    top: 100px;
    left: var(--dev-sidebar-left);
    width: var(--dev-sidebar-width, 300px);
  }
}

.dev-sidebar__card {
  padding: 16px;
  background: transparent;
  border: 0;
  border-radius: 16px;
  box-shadow: none;
}
.dev-sidebar__card:first-child {
  position: relative;
  overflow: visible;
  background:
    radial-gradient(circle at 92% 12%, rgba(233, 194, 117, 0.24), transparent 36%),
    linear-gradient(135deg, #111f31 0%, #1b334e 100%);
  border: 1px solid rgba(197, 160, 89, 0.24);
  color: #FFFFFF;
  box-shadow: 0 16px 34px rgba(17, 31, 49, 0.22);
}
.dev-sidebar__card:first-child::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.dev-sidebar__card strong {
  display: block;
  margin-bottom: 11px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  font-family: var(--ebd-font-sans);
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #8fa0b7;
}
.dev-sidebar__card:first-child strong,
.dev-sidebar__card:first-child small {
  color: rgba(255, 255, 255, 0.78);
}
.dev-sidebar__card:first-child strong {
  margin-bottom: 14px;
  padding-bottom: 0;
  border-bottom: 0;
  color: #FFFFFF;
}

.dev-sidebar__focus {
  border: 1px solid rgba(197, 160, 89, 0.22);
  background:
    radial-gradient(circle at 100% 0%, rgba(197, 160, 89, 0.11), transparent 42%),
    linear-gradient(180deg, #fffaf3 0%, #FFFFFF 74%),
    #FFFFFF;
  box-shadow: 0 10px 22px rgba(120, 92, 35, 0.06);
}
.dev-sidebar__focus p {
  margin: 0 0 15px;
  font-family: var(--ebd-font-serif);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.22;
  color: var(--ebd-primary);
}
.dev-sidebar__focus dl {
  display: grid;
  gap: 8px;
  margin: 0;
}
.dev-sidebar__focus dl div {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(224, 231, 241, 0.92);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
}
.dev-sidebar__focus dt {
  margin: 0;
  font-family: var(--ebd-font-sans);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #9a7a3a;
}
.dev-sidebar__focus dd {
  margin: 0;
  font-family: var(--ebd-font-sans);
  font-size: 12.5px;
  font-weight: 700;
  color: #243449;
}

/* Progresso da leitura */
.dev-sidebar-progress {
  overflow: hidden;
  height: 8px;
  border-radius: var(--ebd-radius-full);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.18);
}
.dev-sidebar-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f2d18e, var(--ebd-gold));
  box-shadow: 0 0 16px rgba(197, 160, 89, 0.42);
  transition: width 0.3s ease;
}
[data-dev-progress-label] {
  font-weight: 700;
  color: var(--ebd-gold);
}
.dev-sidebar__card small {
  display: block;
  margin-top: 11px;
  font-family: var(--ebd-font-sans);
  font-size: 12px;
  color: var(--ebd-neutral-500, #64748B);
}

/* Modo leitura */
.dev-reading-tools {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 14px;
  border-top: 1px solid rgba(214, 224, 236, 0.72);
  border-radius: 0;
}
.dev-reading-tools button {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(214, 224, 236, 0.92);
  border-radius: 12px;
  background: #f8fafc;
  color: #243449;
  font-family: var(--ebd-font-sans);
  font-size: 12.5px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}
.dev-reading-tools button:hover {
  border-color: var(--ebd-gold);
  background: #fff8e5;
  color: var(--ebd-primary);
  box-shadow: 0 8px 18px rgba(197, 160, 89, 0.12);
}

/* Indice (TOC) */
.dev-toc {
  padding-top: 14px;
  border-top: 1px solid rgba(214, 224, 236, 0.72);
  border-radius: 0;
}
.dev-toc nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.dev-toc a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  border-left: 0;
  font-family: var(--ebd-font-sans);
  font-size: 12.5px;
  color: var(--ebd-neutral-600);
  text-decoration: none;
  line-height: 1.4;
  transition: all 0.2s ease;
}
.dev-toc a::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ebd-neutral-300);
  flex-shrink: 0;
  transition: background 0.2s ease;
}
.dev-toc a:hover {
  background: #f8fafc;
  color: var(--ebd-primary);
}
.dev-toc a:hover::before { background: var(--ebd-gold); }
.dev-toc a.is-active {
  background: linear-gradient(90deg, #fff4d3 0%, #fff9e9 100%);
  color: #7a5c1e;
  font-weight: 800;
  box-shadow: inset 3px 0 0 var(--ebd-gold);
}
.dev-toc a.is-active::before { background: var(--ebd-gold); }

/* Tags */
.dev-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.dev-tags a {
  padding: 6px 10px;
  border: 1px solid rgba(214, 224, 236, 0.92);
  border-radius: var(--ebd-radius-full);
  background: #ffffff;
  color: var(--ebd-neutral-600);
  font-family: var(--ebd-font-sans);
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}
.dev-tags a:hover {
  border-color: var(--ebd-gold);
  background: var(--ebd-gold-light);
  color: var(--ebd-primary);
}

/* Links sugeridos */
.dev-sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dev-sidebar-links a {
  padding: 9px 10px;
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.74);
  font-family: var(--ebd-font-sans);
  font-size: 12.5px;
  font-weight: 650;
  color: var(--ebd-neutral-600);
  text-decoration: none;
  transition: all 0.2s ease;
}
.dev-sidebar-links a:hover {
  background: #fff8e5;
  color: #8a651d;
}

/* =========================================================
   ACOES MOBILE (fixas no fim da tela)
   ========================================================= */
.dev-mobile-actions {
  display: none;
}

/* =========================================================
   TOAST
   ========================================================= */
.dev-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1200;
  padding: 12px 18px;
  border-radius: var(--ebd-radius-md);
  background: var(--ebd-primary);
  color: #FFFFFF;
  font-family: var(--ebd-font-sans);
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--ebd-shadow-lg);
}

/* =========================================================
   MODO LEITURA / MODO ESCURO
   ========================================================= */
body.dev-reading-mode .dev-sidebar {
  display: none;
}
body.dev-reading-mode .dev-layout {
  grid-template-columns: minmax(0, 850px);
  justify-content: center;
}

body.dev-dark-mode {
  background: var(--ebd-neutral-900);
}
body.dev-dark-mode .dev-single {
  background: var(--ebd-neutral-900);
}
body.dev-dark-mode .dev-sidebar {
  border-color: rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(18, 29, 45, 0.96), rgba(15, 23, 42, 0.94)),
    #111827;
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.28),
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
}
body.dev-dark-mode .dev-section,
body.dev-dark-mode .dev-feature-card,
body.dev-dark-mode .dev-prayer,
body.dev-dark-mode .dev-reminder,
body.dev-dark-mode .dev-question,
body.dev-dark-mode .dev-author,
body.dev-dark-mode .dev-sidebar__card {
  background: #182235;
  border-color: rgba(255, 255, 255, 0.08);
  color: #E5EDF6;
}
body.dev-dark-mode .dev-sidebar__card:first-child {
  background:
    radial-gradient(circle at 92% 12%, rgba(233, 194, 117, 0.20), transparent 36%),
    linear-gradient(135deg, #0c1726 0%, #162941 100%);
}
body.dev-dark-mode .dev-reading-tools,
body.dev-dark-mode .dev-toc {
  border-top-color: rgba(255, 255, 255, 0.08);
}
body.dev-dark-mode .dev-prose,
body.dev-dark-mode .dev-section h2,
body.dev-dark-mode .dev-feature-card h2,
body.dev-dark-mode .dev-prayer h2,
body.dev-dark-mode .dev-question h2,
body.dev-dark-mode .dev-author h2 {
  color: #E5EDF6;
}

/* =========================================================
   ANIMACOES DE ENTRADA
   ========================================================= */
.dev-main > * {
  animation: dev-fade-up 0.55s ease both;
}
.dev-main > *:nth-child(2)  { animation-delay: 0.05s; }
.dev-main > *:nth-child(3)  { animation-delay: 0.10s; }
.dev-main > *:nth-child(4)  { animation-delay: 0.15s; }
.dev-main > *:nth-child(5)  { animation-delay: 0.20s; }
.dev-main > *:nth-child(6)  { animation-delay: 0.25s; }
.dev-main > *:nth-child(7)  { animation-delay: 0.30s; }
.dev-main > *:nth-child(8)  { animation-delay: 0.35s; }
.dev-main > *:nth-child(9)  { animation-delay: 0.40s; }
.dev-main > *:nth-child(10) { animation-delay: 0.45s; }

@keyframes dev-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   RESPONSIVIDADE
   ========================================================= */
@media (max-width: 1024px) {
  .dev-layout {
    grid-template-columns: minmax(0, 850px);
    justify-content: center;
    gap: 32px;
  }
  .dev-main {
    max-width: 850px;
  }
  .dev-sidebar {
    position: static;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--ebd-space-md);
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }
  .dev-sidebar__card {
    background: #ffffff;
    border: 1px solid #dfe7f1;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
  }
}

@media (max-width: 768px) {
  .dev-hero {
    padding: 112px 20px 48px;
  }
  .dev-hero h1 {
    font-size: clamp(28px, 8vw, 40px);
  }
  .dev-hero__meta {
    gap: 6px;
  }
  .dev-wrap {
    width: min(100% - 28px, 850px);
    padding: var(--ebd-space-2xl) 0 var(--ebd-space-4xl);
  }
  .dev-section,
  .dev-scripture,
  .dev-feature-card,
  .dev-prayer,
  .dev-reminder,
  .dev-question,
  .dev-author,
  .dev-newsletter,
  .dev-comments {
    padding: var(--ebd-space-xl);
  }
  .dev-scripture {
    padding-left: var(--ebd-space-xl);
  }
  .dev-prayer {
    padding-left: var(--ebd-space-xl);
  }
  .dev-prose {
    font-size: calc(17px * var(--dev-font-scale));
    line-height: 1.72;
  }
  .dev-feature-card {
    grid-template-columns: 1fr;
    gap: var(--ebd-space-md);
  }
  .dev-author {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .dev-author img {
    margin: 0 auto;
  }
  .dev-author > div > div {
    justify-content: center;
  }
  .dev-post-nav {
    grid-template-columns: 1fr;
  }
  .dev-newsletter {
    padding: var(--ebd-space-2xl);
  }
  .dev-newsletter form {
    flex-direction: column;
  }
  .dev-sidebar {
    grid-template-columns: 1fr;
  }
  .dev-mobile-actions {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 1100;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--ebd-neutral-200);
    border-radius: var(--ebd-radius-lg);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    box-shadow: var(--ebd-shadow-lg);
  }
  .dev-mobile-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 42px;
    border: none;
    border-radius: var(--ebd-radius-md);
    background: var(--ebd-primary);
    color: #FFFFFF;
    font-family: var(--ebd-font-sans);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
  }
}

/* =========================================================
   PRINT
   ========================================================= */
@media print {
  @page { margin: 1.5cm; }
  body { background: #fff !important; color: #000 !important; overflow: visible !important; }
  
  /* Hides global UI elements */
  header, 
  footer, 
  .ebd360-header, 
  .ebd360-footer,
  #wpadminbar,
  .ebd360-mobile-toggle,
  .dev-toast,
  .dev-floating-btn,
  .edit-post-btn,
  [data-dev-progress],
  .dev-hero__actions,
  .dev-sidebar,
  .dev-mobile-actions,
  .dev-newsletter,
  .dev-post-nav,
  .dev-comments,
  #conteudos-relacionados,
  #leia-tambem,
  .ebd360-text-editor-toggle,
  .ebd360-text-editor-toast {
    display: none !important;
  }

  /* Reset layout for print */
  .dev-wrap { padding: 0 !important; width: 100% !important; max-width: 100% !important; margin: 0 !important; }
  .dev-layout { display: block !important; width: 100% !important; max-width: 100% !important; }
  .dev-main { width: 100% !important; max-width: 100% !important; margin: 0 !important; padding: 0 !important; gap: 20px !important; }
  .dev-single { background: transparent !important; }
  
  /* Hero adjustments */
  .dev-hero {
    padding: 0 0 24px 0 !important;
    background: transparent !important;
    border: none !important;
    color: #000 !important;
    page-break-after: avoid;
  }
  .dev-hero::before, .dev-hero::after { display: none !important; }
  .dev-hero h1 { color: #000 !important; text-shadow: none !important; margin-bottom: 16px !important; }
  .dev-hero__summary, .dev-hero__author { display: none !important; }
  .dev-breadcrumb a, .dev-hero__meta span, .dev-pill { color: #333 !important; }
  
  /* Components */
  .dev-section,
  .dev-scripture,
  .dev-feature-card,
  .dev-prayer,
  .dev-reminder,
  .dev-question,
  .dev-author {
    padding: 0 !important;
    margin: 0 0 24px 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .dev-scripture { border-left: 4px solid #ddd !important; padding-left: 16px !important; }
  .dev-scripture::before, .dev-scripture::after { display: none !important; }
  .dev-feature-card { display: block !important; }
  .dev-feature-card__icon { display: none !important; }
  
  .dev-prose { color: #000 !important; font-size: 14pt !important; line-height: 1.5 !important; max-width: 100% !important; text-align: justify !important; }
  
  /* Força a cor dos títulos, tags e avisos para preto */
  .dev-section h2, .dev-feature-card h2, .dev-prayer h2, .dev-reminder span, .dev-question h2, .dev-author h2 {
    color: #000 !important;
  }
  
  /* Oculta botoes globalmente na impressão */
  .dev-btn, button { display: none !important; }

  .dev-main > * { animation: none !important; opacity: 1 !important; transform: none !important; }
  
  /* Links */
  a { color: #000 !important; text-decoration: none !important; }
  
  /* Ajusta o autor para ficar mais enxuto */
  .dev-author { border-top: 1px solid #ddd !important; padding-top: 24px !important; margin-top: 40px !important; }
  .dev-author img { width: 64px !important; height: 64px !important; }
}
