/* ============================================================
   AUTHOR BOX — fetalmed.net (.rb-authorbox*)
   Componente autocontido. Poppins já é carregada pelo tema
   (design-system.css) — sem novo import de fonte aqui.
   Enfileirado uma única vez via functions.php (fetalmed-author-box).
============================================================ */

.rb-authorbox, .rb-authorbox * { box-sizing: border-box; margin: 0; }
.rb-authorbox { font-family: "Poppins", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }

.rb-authorbox__avatar {
  border-radius: 50%; object-fit: cover; flex-shrink: 0; display: block;
}

.rb-authorbox__name-link {
  color: #0f172a; text-decoration: none;
  border-bottom: 1.5px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}
.rb-authorbox__name-link:hover,
.rb-authorbox__name-link:focus-visible { color: #0e7490; border-bottom-color: #0e7490; }
.rb-authorbox__name-link:focus-visible { outline: 2px solid #0e7490; outline-offset: 3px; border-radius: 2px; }

.rb-authorbox__cta {
  display: inline-flex; align-items: center; gap: 4px;
  color: #0e7490; font-weight: 600; text-decoration: none;
  transition: gap .15s ease, color .15s ease; white-space: nowrap;
}
.rb-authorbox__cta:hover, .rb-authorbox__cta:focus-visible { color: #155e75; gap: 7px; }
.rb-authorbox__cta:focus-visible { outline: 2px solid #0e7490; outline-offset: 3px; border-radius: 2px; }

/* ---------- Variante 1: COMPACTA (topo do artigo) ---------- */
.rb-authorbox--compact {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px;
  padding: 14px 0;
  border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0;
}
.rb-authorbox--compact .rb-authorbox__avatar { width: 40px; height: 40px; }
.rb-authorbox--compact .rb-authorbox__main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rb-authorbox--compact .rb-authorbox__name { font-size: 15px; font-weight: 600; color: #0f172a; line-height: 1.3; }
.rb-authorbox--compact .rb-authorbox__credentials { font-size: 12px; font-weight: 500; color: #0e7490; line-height: 1.4; }
.rb-authorbox--compact .rb-authorbox__divider { width: 1px; height: 32px; background: #e2e8f0; flex-shrink: 0; }
.rb-authorbox--compact .rb-authorbox__meta {
  display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 300; color: #64748b;
}
.rb-authorbox--compact .rb-authorbox__meta svg { flex-shrink: 0; }
.rb-authorbox--compact .rb-authorbox__cta { font-size: 12.5px; margin-left: auto; }

@media (max-width: 480px) {
  .rb-authorbox--compact { row-gap: 10px; }
  .rb-authorbox--compact .rb-authorbox__divider { display: none; }
  .rb-authorbox--compact .rb-authorbox__meta { flex-basis: 100%; padding-left: 52px; margin-top: -6px; }
  .rb-authorbox--compact .rb-authorbox__cta { margin-left: 0; flex-basis: 100%; padding-left: 52px; }
}

/* ---------- Variante 2: EXPANDIDA (final do artigo) ---------- */
.rb-authorbox--expanded {
  position: relative; display: flex; gap: 20px;
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px;
  padding: 24px 24px 24px 28px; overflow: hidden;
  margin: 24px 0;
}
.rb-authorbox--expanded::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px; background: #0e7490; border-radius: 12px 0 0 12px;
}
.rb-authorbox--expanded .rb-authorbox__avatar { width: 64px; height: 64px; }
.rb-authorbox--expanded .rb-authorbox__body { min-width: 0; }
.rb-authorbox--expanded .rb-authorbox__eyebrow {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; color: #64748b; margin-bottom: 6px;
}
.rb-authorbox--expanded .rb-authorbox__name { font-size: 18px; font-weight: 700; color: #0f172a; margin-bottom: 2px; line-height: 1.3; }
.rb-authorbox--expanded .rb-authorbox__role { font-size: 13.5px; font-weight: 500; color: #334155; margin-bottom: 4px; line-height: 1.5; }
.rb-authorbox--expanded .rb-authorbox__credentials { font-size: 12.5px; font-weight: 500; color: #0e7490; margin-bottom: 10px; line-height: 1.5; }
.rb-authorbox--expanded .rb-authorbox__bio { font-size: 13.5px; font-weight: 300; color: #334155; line-height: 1.75; margin-bottom: 14px; }
.rb-authorbox--expanded .rb-authorbox__footer { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; }
.rb-authorbox--expanded .rb-authorbox__cta { font-size: 13px; }
.rb-authorbox--expanded .rb-authorbox__meta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 300; color: #64748b;
}

@media (max-width: 480px) {
  .rb-authorbox--expanded { flex-direction: column; gap: 14px; padding: 20px 18px 20px 22px; }
}
