/* Author / profile page — editorial hero */

.author-hero {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  background: #F7F9FB;
  overflow: visible;
}

.author-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 70px 24px;
  box-sizing: border-box;
}

.author-hero-layout {
  display: flex;
  align-items: center;
  gap: 55px;
}

.author-photo-wrapper {
  position: relative;
  flex-shrink: 0;
  width: 230px;
  height: 230px;
}

.author-photo-wrapper::before {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  left: -28px;
  top: -28px;
  background: #E4EEF8;
  border-radius: 20px;
  z-index: 0;
}

.author-photo {
  position: relative;
  z-index: 1;
  display: block;
  width: 230px;
  height: 230px;
  max-width: 230px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  border-radius: 16px;
}

.author-copy {
  min-width: 0;
  flex: 1 1 auto;
  text-align: left;
}

.author-eyebrow {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue, #055296);
}

.author-eyebrow-rule {
  display: block;
  width: 30px;
  height: 2px;
  background: var(--blue, #055296);
  margin-top: 14px;
  margin-bottom: 26px;
}

.author-name {
  margin: 0;
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #111;
}

.author-role {
  margin: 14px 0 0;
  font-size: 18px;
  font-weight: 400;
  color: #657184;
}

.author-golden {
  display: inline-flex;
  margin-top: 16px;
}

.author-bio {
  margin: 26px 0 0;
  max-width: 610px;
  font-size: 16px;
  line-height: 1.65;
  color: #4F5D70;
}

.author-articles {
  background: #fff;
  padding: 48px 8px 80px;
}

.author-articles-head {
  margin: 0 0 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid #DCE2E8;
}

.author-articles-title {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  color: var(--text, #111827);
  letter-spacing: -0.01em;
}

.author-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.author-article-card,
.author-article-card:visited,
.author-article-card:hover {
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  text-decoration: none;
  color: inherit;
  display: block;
}

.author-article-card:hover {
  box-shadow: 0 8px 24px rgba(5, 82, 150, 0.1);
}

.author-article-card:hover .author-article-title {
  color: var(--blue, #055296);
}

.author-article-image,
.author-article-image-fallback {
  width: 100%;
  height: 180px;
  max-height: 180px;
  object-fit: cover;
  object-position: center;
  display: block;
  background: #eef2f6;
}

.author-article-body {
  padding: 16px;
}

.author-article-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
  line-height: 1.3;
  color: var(--text, #111827);
}

.author-article-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted, #6b7280);
}

.author-article-category {
  text-transform: capitalize;
  color: var(--blue, #055296);
}

.author-empty {
  text-align: center;
  padding: 40px 20px 20px;
  color: #657184;
}

.author-empty-icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  margin: 0 auto 14px;
  color: #9aa8b8;
}

.author-empty-icon svg {
  width: 40px;
  height: 40px;
  display: block;
}

.author-empty h3 {
  font-size: 20px;
  margin: 0 0 8px;
  color: var(--text, #111827);
  font-weight: 700;
}

.author-empty p {
  margin: 0 auto;
  max-width: 42ch;
  font-size: 15px;
  line-height: 1.55;
}

@media (max-width: 768px) {
  .author-hero-inner {
    padding: 40px 20px;
  }

  .author-hero-layout {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }

  .author-photo-wrapper {
    width: 150px;
    height: 150px;
    margin-left: auto;
    margin-right: auto;
  }

  .author-photo-wrapper::before {
    width: 128px;
    height: 128px;
    left: -14px;
    top: -14px;
    border-radius: 16px;
  }

  .author-photo {
    width: 150px;
    height: 150px;
    max-width: 150px;
    border-radius: 14px;
  }

  .author-name {
    font-size: 34px;
  }

  .author-bio {
    max-width: none;
  }

  .author-articles {
    padding: 36px 4px 64px;
  }

  .author-articles-title {
    font-size: 26px;
  }
}
