/* Compact biography disclosure for article and news author cards. */
.yn-author-profile-preview p {
  margin: 0 !important;
}

.yn-author-profile-readmore {
  display: block !important;
  margin-top: 4px !important;
}

.yn-author-profile-readmore summary {
  min-height: 44px !important;
  padding: 9px 13px !important;
  border: 1px solid #bfdbfe !important;
  border-radius: 9px !important;
  background: #eff6ff !important;
}

.yn-author-less-label {
  display: none !important;
}

.yn-author-profile-readmore[open] .yn-author-more-label {
  display: none !important;
}

.yn-author-profile-readmore[open] .yn-author-less-label {
  display: inline !important;
}

.yn-author-profile-full {
  animation: ynAuthorBioReveal .18s ease-out;
}

@keyframes ynAuthorBioReveal {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 760px) {
  .yn-author-profile-readmore summary {
    width: 100% !important;
    justify-content: center !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .yn-author-profile-full { animation: none; }
}
