.mbc-author-page {
  --author-accent: #49A2A4;
  --author-accent-dark: #2d7a7c;
  --author-accent-soft: #eaf5f5;
  --author-text: #1a1e2e;
  --author-muted: #6b7280;
  --author-border: #e2e8ec;
  --author-bg: #f4f7f8;
  --author-card: #fff;
  --author-radius: 12px;
  --author-shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 4px 14px rgba(0, 0, 0, .04);
  font-family: 'DM Sans', 'Red Hat Text', system-ui, sans-serif;
  color: var(--author-text);
  background: var(--author-bg);
  padding-top: 88px;
  padding-bottom: 8px;
}

.mbc-author-page a {
  text-decoration: none;
  color: inherit;
}

.mbc-author-page h1,
.mbc-author-page h2,
.mbc-author-page h3 {
  font-family: 'Plus Jakarta Sans', 'Red Hat Text', system-ui, sans-serif;
}

/* Breadcrumb */
.author-breadcrumb {
  max-width: 1140px;
  margin: 0 auto;
  padding: 20px 20px 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--author-muted);
}

.author-breadcrumb a {
  color: var(--author-accent-dark);
  font-weight: 500;
}

.author-breadcrumb a:hover {
  text-decoration: underline;
}

.author-breadcrumb [aria-current="page"] {
  color: var(--author-text);
  font-weight: 600;
}

/* Page grid */
.author-page-wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 24px 20px 56px;
  display: grid;
  grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

/* Sidebar */
.author-sidebar {
  position: sticky;
  top: 108px;
  max-height: calc(100vh - 120px);
  overflow-y: hidden;
  overflow-x: hidden;
  padding-right: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.author-sidebar:hover {
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.author-sidebar::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.author-profile-card {
  background: var(--author-card);
  border: 1px solid var(--author-border);
  border-radius: var(--author-radius);
  padding: 28px 24px 24px;
  text-align: center;
  box-shadow: var(--author-shadow);
}

.author-avatar-wrap {
  position: relative;
  display: inline-block;
  margin: 0 auto 18px;
}

.author-avatar,
.author-avatar-fallback {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto;
  border: 4px solid var(--author-accent-soft);
}

.author-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0c3435, var(--author-accent));
  color: #fff;
  font-size: 30px;
  font-weight: 700;
}

.author-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--author-accent);
  border: 3px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
}

.author-staff-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--author-accent-dark);
  background: var(--author-accent-soft);
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 10px;
}

.author-name {
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 6px;
  color: var(--author-text);
}

.author-role {
  font-size: 14px;
  line-height: 1.5;
  color: var(--author-muted);
  margin: 0 0 20px;
}

.author-email-btn {
  display: block;
  width: 100%;
  padding: 11px 16px;
  background: var(--author-accent);
  color: #fff !important;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  transition: background .2s, transform .15s;
  margin-bottom: 0;
}

.author-email-btn:hover {
  background: var(--author-accent-dark);
  transform: translateY(-1px);
}

.author-meta-list {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--author-border);
  text-align: left;
}

.author-meta-item {
  padding: 14px 0;
}

.author-meta-item + .author-meta-item {
  border-top: 1px solid var(--author-border);
}

.author-meta-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #4b5563;
  margin-bottom: 6px;
}

.author-meta-value {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--author-text);
}

.author-social-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 2px;
}

.author-social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--author-text);
  padding: 6px 0;
  transition: color .2s;
}

.author-social-link:hover {
  color: var(--author-accent-dark);
}

.author-social-link i {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--author-accent-soft);
  color: var(--author-accent-dark);
  font-size: 12px;
  flex-shrink: 0;
}

/* Main content panels */
.author-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.author-panel {
  background: var(--author-card);
  border: 1px solid var(--author-border);
  border-radius: var(--author-radius);
  padding: 28px 32px 32px;
  box-shadow: var(--author-shadow);
}

.author-section-title {
  font-size: clamp(24px, 2.5vw, 30px);
  font-weight: 700;
  margin: 0 0 16px;
  line-height: 1.2;
  color: var(--author-text);
}

.mbc-author-page .author-about-text,
.mbc-author-page .author-about-text * {
  max-width: 100%;
}

.mbc-author-page .author-about-text p,
.mbc-author-page .author-about-text div {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.75;
  color: #374151;
}

.mbc-author-page .author-about-text p:last-child,
.mbc-author-page .author-about-text div:last-child {
  margin-bottom: 0;
}

.mbc-author-page .author-about-text a {
  color: var(--author-accent-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mbc-author-page .author-about-text a:hover {
  color: var(--author-accent);
}

/* Articles section */
.author-articles-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.author-articles-header .author-section-title {
  margin-bottom: 0;
}

.author-articles-count {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--author-accent-dark);
  background: var(--author-accent-soft);
  padding: 6px 12px;
  border-radius: 100px;
  white-space: nowrap;
}

.author-articles-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  min-height: 120px;
}

.author-article-card {
  display: flex;
  flex-direction: column;
  background: var(--author-card);
  border: 1px solid var(--author-border);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow .2s, border-color .2s, transform .2s;
  height: 100%;
}

.author-article-card:hover {
  border-color: #c8e8e9;
  box-shadow: 0 10px 28px rgba(73, 162, 164, .12);
  transform: translateY(-2px);
}

.author-article-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.author-article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.author-article-tag {
  color: var(--author-accent-dark);
}

.author-article-tag:hover {
  text-decoration: underline;
}

.author-article-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 10px;
  color: var(--author-text);
}

.author-article-card:hover .author-article-title {
  color: var(--author-accent-dark);
}

.author-article-excerpt {
  font-size: 14px;
  line-height: 1.65;
  color: var(--author-muted);
  margin: 0 0 14px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.author-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: var(--author-muted);
  padding-top: 12px;
  margin-top: auto;
  border-top: 1px solid var(--author-border);
}

.author-article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.author-article-meta i {
  color: var(--author-accent);
}

.author-loading,
.author-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 40px 20px;
  color: var(--author-muted);
  font-size: 15px;
  background: var(--author-accent-soft);
  border: 1px dashed #c8e8e9;
  border-radius: 10px;
}

.author-loading i {
  font-size: 22px;
  color: var(--author-accent);
}

.author-pagination-wrap {
  margin-top: 28px;
  padding-top: 8px;
}

.author-pagination-wrap:empty,
.author-pagination-wrap .pagination:empty {
  display: none;
}

.author-pagination-wrap .pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .5rem;
}

.author-pagination-wrap .pagination-btn {
  min-width: 40px;
}

/* Responsive */
@media (max-width: 991px) {
  .author-page-wrap {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-bottom: 40px;
  }

  .author-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .author-profile-card {
    max-width: 420px;
    margin: 0 auto;
  }

  .author-panel {
    padding: 24px 22px 26px;
  }

  .author-articles-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575px) {
  .mbc-author-page {
    padding-top: 72px;
  }

  .author-breadcrumb {
    padding: 14px 16px 0;
  }

  .author-page-wrap {
    padding: 16px 16px 36px;
  }

  .author-profile-card {
    padding: 24px 20px 20px;
  }

  .author-panel {
    padding: 20px 18px 22px;
  }

  .author-articles-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
