/* KPM Pro — custom author directory & profile pages */
body {
  background: #fff;
}

.kpmpro-author-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 20px 64px;
}

.kpmpro-author-breadcrumb {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 24px;
}

.kpmpro-author-breadcrumb a {
  color: #006be1;
  text-decoration: none;
}

.kpmpro-author-breadcrumb a:hover {
  text-decoration: underline;
}

.kpmpro-author-breadcrumb--inset {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 20px 0;
}

.kpmpro-author-hero {
  text-align: center;
  margin-bottom: 48px;
}

.kpmpro-author-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #0f2a48;
  margin: 0 0 12px;
}

.kpmpro-author-hero p {
  font-size: 1.125rem;
  color: #555;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.5;
}

.kpmpro-author-directory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px 24px;
}

/* Authors index — rich cards (3–4 per row) */
.kpmpro-author-list-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 24px;
}

@media (max-width: 1200px) {
  .kpmpro-author-list-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .kpmpro-author-directory-grid,
  .kpmpro-author-list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 544px) {
  .kpmpro-author-directory-grid,
  .kpmpro-author-list-grid {
    grid-template-columns: 1fr;
  }
}

.kpmpro-author-list-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(15, 42, 72, 0.08);
  border: 1px solid #eef1f4;
  padding: 28px 24px 32px;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.kpmpro-author-list-card__image-wrap {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  background: #e8f4fc;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.kpmpro-author-list-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.kpmpro-author-list-card__initials {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 2.5rem;
  font-weight: 700;
  color: #006be1;
}

.kpmpro-author-list-card__name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f2a48;
  margin: 0 0 6px;
}

.kpmpro-author-list-card__role {
  font-size: 0.9375rem;
  color: #006be1;
  font-weight: 600;
  margin: 0 0 12px;
}

.kpmpro-author-list-card__bio {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #555;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.kpmpro-author-list-card__count {
  font-size: 0.875rem;
  color: #888;
  margin: 0 0 20px;
}

.kpmpro-author-list-card__cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 6px;
  background: #006be1;
  color: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: background 0.2s;
}

.kpmpro-author-list-card__cta:hover {
  background: #0056b8;
  color: #fff;
}

.kpmpro-author-directory-card {
  text-align: center;
  text-decoration: none;
  color: inherit;
  display: block;
}

.kpmpro-author-directory-card:hover .kpmpro-author-directory-card__name {
  color: #006be1;
}

.kpmpro-author-directory-card__image-wrap {
  width: 100%;
  max-width: 220px;
  margin: 0 auto 16px;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: #e8f4fc;
  border: 3px solid #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.kpmpro-author-directory-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.kpmpro-author-directory-card__name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e1e1e;
  margin: 0 0 6px;
  transition: color 0.2s;
}

.kpmpro-author-directory-card__title {
  font-size: 0.9375rem;
  color: #666;
  margin: 0;
  line-height: 1.4;
}

/* Profile (single author) */
.kpmpro-author-profile {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: 40px;
  align-items: start;
  padding: 40px;
  background: linear-gradient(135deg, #006be1 0%, #0056b8 100%);
  border-radius: 12px;
  color: #fff;
  margin-bottom: 48px;
}

@media (max-width: 767px) {
  .kpmpro-author-profile {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 32px 24px;
  }
}

.kpmpro-author-profile__avatar {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.35);
  margin: 0 auto;
}

.kpmpro-author-profile__initials {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 200px;
  font-size: 4rem;
  font-weight: 700;
  color: #006be1;
  background: #e8f4fc;
}

.kpmpro-author-profile__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kpmpro-author-profile__name {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: #fff;
}

.kpmpro-author-profile__role {
  font-size: 1.125rem;
  opacity: 0.95;
  margin: 0 0 16px;
  color: inherit;
  font-weight: 400;
}

.kpmpro-author-profile__bio {
  font-size: 1rem;
  line-height: 1.65;
  margin: 0 0 20px;
  opacity: 0.95;
  color: inherit;
}

.kpmpro-author-profile__stat {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  margin: 16px 0 0;
  opacity: 0.95;
}

.kpmpro-author-profile__social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

@media (max-width: 767px) {
  .kpmpro-author-profile__social {
    justify-content: center;
  }
}

.kpmpro-author-profile__social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: #fff;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: background 0.2s;
}

.kpmpro-author-profile__social a:hover {
  background: rgba(255, 255, 255, 0.28);
}

.kpmpro-author-about {
  margin-bottom: 48px;
  padding: 32px;
  background: #fafbfc;
  border-radius: 12px;
  border: 1px solid #eef1f4;
}

.kpmpro-author-about h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f2a48;
  margin: 0 0 16px;
}

.kpmpro-author-about p {
  font-size: 1rem;
  line-height: 1.7;
  color: #444;
  margin: 0;
}

.kpmpro-author-articles h2,
.kpmpro-author-posts-heading {
  font-size: 1.75rem;
  font-weight: 700;
  color: #0f2a48;
  margin: 0 0 28px;
}

.kpmpro-author-empty {
  text-align: center;
  padding: 48px 24px;
  color: #666;
  font-size: 1.0625rem;
  background: #fafbfc;
  border-radius: 12px;
  border: 1px dashed #d9d9d9;
}

.kpmpro-author-posts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 24px;
}

@media (max-width: 1024px) {
  .kpmpro-author-posts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 544px) {
  .kpmpro-author-posts-grid {
    grid-template-columns: 1fr;
  }
}

.kpmpro-author-post-card {
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}

.kpmpro-author-post-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.kpmpro-author-post-card__thumb {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f0f0f0;
}

.kpmpro-author-post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.kpmpro-author-post-card__body {
  padding: 16px 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.kpmpro-author-post-card__category {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #006be1;
  text-decoration: none;
  margin-bottom: 8px;
  display: inline-block;
}

.kpmpro-author-post-card__category:hover {
  text-decoration: underline;
}

.kpmpro-author-post-card__excerpt {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #555;
  margin: 0 0 12px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.kpmpro-author-post-card__meta {
  font-size: 0.8125rem;
  color: #888;
  margin: 0 0 14px;
}

.kpmpro-author-post-card__dot {
  margin: 0 6px;
}

.kpmpro-author-post-card__thumb-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 160px;
  background: linear-gradient(135deg, #e8f4fc, #f0f0f0);
}

.kpmpro-author-post-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 12px;
}

.kpmpro-author-post-card__title a {
  color: #1e1e1e;
  text-decoration: none;
}

.kpmpro-author-post-card__title a:hover {
  color: #006be1;
}

.kpmpro-author-post-card__more {
  margin-top: auto;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #006be1;
  text-decoration: none;
}

.kpmpro-author-post-card__more:hover {
  text-decoration: underline;
}

.kpmpro-author-load-more-wrap {
  text-align: center;
  margin-top: 40px;
}

.kpmpro-author-load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: #006be1;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.kpmpro-author-load-more:hover:not(:disabled) {
  background: #0056b8;
}

.kpmpro-author-load-more:disabled {
  opacity: 0.65;
  cursor: wait;
}

.kpmpro-author-load-more.is-hidden {
  display: none;
}
