/* Authors index — Vision2030 */

.authors-page {
  position: relative;
  flex: 1;
  overflow: hidden;
  padding-top: 8rem;
  padding-bottom: 5rem;
  background: #faf9f7;
}

html.dark .authors-page {
  background: #020617;
}

.authors-page__glow {
  pointer-events: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.authors-page__glow::before,
.authors-page__glow::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
}

.authors-page__glow::before {
  top: -8rem;
  left: 50%;
  width: 36rem;
  height: 22rem;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(20, 184, 166, 0.35) 0%, transparent 70%);
}

.authors-page__glow::after {
  right: -6rem;
  top: 28%;
  width: 20rem;
  height: 20rem;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
}

html.dark .authors-page__glow::before {
  opacity: 0.25;
}

.authors-page__inner {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  max-width: 72rem;
  padding: 0 1.5rem;
}

@media (min-width: 1024px) {
  .authors-page__inner {
    padding: 0 2rem;
  }
}

/* Breadcrumb */
.authors-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: 0.875rem;
  color: #94a3b8;
}

.authors-crumb a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.authors-crumb a:hover {
  color: #2dd4bf;
}

.authors-crumb__current {
  color: #475569;
}

html.dark .authors-crumb__current {
  color: #cbd5e1;
}

/* Hero */
.authors-hero {
  text-align: center;
  margin-bottom: 2.5rem;
}

.authors-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(20, 184, 166, 0.25);
  background: rgba(255, 255, 255, 0.7);
  padding: 0.35rem 1rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #0d9488;
  backdrop-filter: blur(8px);
}

html.dark .authors-hero__eyebrow {
  border-color: rgba(45, 212, 191, 0.2);
  background: rgba(15, 23, 42, 0.6);
  color: #5eead4;
}

.authors-hero__eyebrow-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 9999px;
  background: #14b8a6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.25);
}

.authors-hero__title {
  margin: 1.25rem 0 0;
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #0f172a;
}

html.dark .authors-hero__title {
  color: #f8fafc;
}

.authors-hero__title em {
  font-style: italic;
  color: #14b8a6;
}

.authors-hero__lead {
  margin: 1rem auto 0;
  max-width: 36rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: #64748b;
}

html.dark .authors-hero__lead {
  color: #94a3b8;
}

/* Stats */
.authors-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 2rem;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 640px) {
  .authors-stats {
    gap: 1rem;
  }
}

.authors-stat {
  border-radius: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.85);
  padding: 1rem 0.75rem;
  text-align: center;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.04);
}

html.dark .authors-stat {
  border-color: rgba(51, 65, 85, 0.7);
  background: rgba(15, 23, 42, 0.75);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.authors-stat__value {
  display: block;
  font-size: 1.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  color: #0f172a;
}

html.dark .authors-stat__value {
  color: #f1f5f9;
}

.authors-stat__label {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

html.dark .authors-stat__label {
  color: #94a3b8;
}

/* Guide */
.authors-guide {
  margin-bottom: 3rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 50%, rgba(204, 251, 241, 0.35) 100%);
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: 0 8px 40px rgba(15, 23, 42, 0.06);
}

html.dark .authors-guide {
  border-color: rgba(51, 65, 85, 0.8);
  background: linear-gradient(145deg, #0f172a 0%, #0f172a 40%, rgba(19, 78, 74, 0.35) 100%);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
}

.authors-guide__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.authors-guide__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #0f172a;
}

html.dark .authors-guide__title {
  color: #f8fafc;
}

.authors-guide__subtitle {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  color: #64748b;
}

html.dark .authors-guide__subtitle {
  color: #94a3b8;
}

.authors-guide__jump {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 9999px;
  background: #0f172a;
  padding: 0.55rem 1.1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.authors-guide__jump:hover {
  background: #134e4a;
  transform: translateY(-1px);
}

html.dark .authors-guide__jump {
  background: #14b8a6;
  color: #042f2e;
}

html.dark .authors-guide__jump:hover {
  background: #2dd4bf;
}

.authors-guide__steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: guide-step;
}

@media (min-width: 768px) {
  .authors-guide__steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

.authors-guide__step {
  position: relative;
  counter-increment: guide-step;
  border-radius: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.8);
  background: rgba(255, 255, 255, 0.9);
  padding: 1.15rem 1rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

html.dark .authors-guide__step {
  border-color: rgba(51, 65, 85, 0.6);
  background: rgba(15, 23, 42, 0.85);
}

.authors-guide__step:hover {
  border-color: rgba(20, 184, 166, 0.45);
  box-shadow: 0 8px 24px rgba(20, 184, 166, 0.08);
}

.authors-guide__step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.65rem;
  background: linear-gradient(135deg, #14b8a6, #0d9488);
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.35);
}

.authors-guide__step-num::before {
  content: counter(guide-step);
}

.authors-guide__icon {
  margin-top: 0.85rem;
  width: 1.35rem;
  height: 1.35rem;
  color: #14b8a6;
}

.authors-guide__step-title {
  margin: 0.5rem 0 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #0f172a;
}

html.dark .authors-guide__step-title {
  color: #f1f5f9;
}

.authors-guide__step-text {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #64748b;
}

html.dark .authors-guide__step-text {
  color: #94a3b8;
}

/* List section */
.authors-list {
  scroll-margin-top: 6rem;
}

.authors-list__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

html.dark .authors-list__head {
  border-bottom-color: rgba(51, 65, 85, 0.7);
}

.authors-list__title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: #0f172a;
}

html.dark .authors-list__title {
  color: #f8fafc;
}

.authors-list__hint {
  margin: 0;
  font-size: 0.875rem;
  color: #94a3b8;
}

.authors-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .authors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .authors-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.authors-grid__item {
  min-width: 0;
}

.authors-grid.is-ready .authors-grid__item {
  opacity: 0;
}

.authors-grid.is-ready .authors-grid__item.is-visible {
  animation: authors-card-in 0.55s ease forwards;
}

@media (prefers-reduced-motion: reduce) {
  .authors-grid.is-ready .authors-grid__item {
    opacity: 1;
  }

  .authors-grid.is-ready .authors-grid__item.is-visible {
    animation: none;
  }
}

@keyframes authors-card-in {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Author card */
.author-card {
  position: relative;
  height: 100%;
  border-radius: 1.25rem;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: #fff;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

html.dark .author-card {
  border-color: rgba(51, 65, 85, 0.85);
  background: #0f172a;
}

.author-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #14b8a6, #2dd4bf, #5eead4);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.author-card:hover {
  border-color: rgba(20, 184, 166, 0.4);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.1);
  transform: translateY(-4px);
}

.author-card:hover::before {
  opacity: 1;
}

html.dark .author-card:hover {
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
}

.author-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem 1.35rem 1.35rem;
  text-decoration: none;
  color: inherit;
}

.author-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.author-card__photo-wrap {
  position: relative;
  flex-shrink: 0;
}

.author-card__photo {
  display: block;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 9999px;
  object-fit: cover;
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 4px #e2e8f0,
    0 8px 20px rgba(15, 23, 42, 0.12);
  transition: transform 0.3s ease;
}

html.dark .author-card__photo {
  box-shadow:
    0 0 0 3px #0f172a,
    0 0 0 4px #475569,
    0 8px 20px rgba(0, 0, 0, 0.35);
}

.author-card:hover .author-card__photo {
  transform: scale(1.04);
}

.author-card__badge {
  flex-shrink: 0;
  border-radius: 9999px;
  background: rgba(20, 184, 166, 0.12);
  padding: 0.3rem 0.65rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #0d9488;
  white-space: nowrap;
}

html.dark .author-card__badge {
  background: rgba(45, 212, 191, 0.15);
  color: #5eead4;
}

.author-card__badge--muted {
  background: rgba(148, 163, 184, 0.15);
  color: #64748b;
}

html.dark .author-card__badge--muted {
  background: rgba(71, 85, 105, 0.4);
  color: #94a3b8;
}

.author-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin-top: 1.1rem;
}

.author-card__name {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
  color: #0f172a;
}

html.dark .author-card__name {
  color: #f8fafc;
}

.author-card__role {
  margin: 0.3rem 0 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #14b8a6;
}

.author-card__tagline {
  margin: 0.65rem 0 0;
  flex: 1;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #64748b;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

html.dark .author-card__tagline {
  color: #94a3b8;
}

.author-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
}

.author-card__tags li {
  border-radius: 0.5rem;
  border: 1px solid rgba(20, 184, 166, 0.2);
  background: rgba(240, 253, 250, 0.8);
  padding: 0.2rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 500;
  color: #0f766e;
}

html.dark .author-card__tags li {
  border-color: rgba(45, 212, 191, 0.2);
  background: rgba(19, 78, 74, 0.25);
  color: #5eead4;
}

.author-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
}

html.dark .author-card__footer {
  border-top-color: rgba(51, 65, 85, 0.7);
}

.author-card__cta {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #14b8a6;
}

.author-card__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: #f1f5f9;
  color: #64748b;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

html.dark .author-card__arrow {
  background: #1e293b;
  color: #94a3b8;
}

.author-card:hover .author-card__arrow {
  background: #14b8a6;
  color: #fff;
  transform: translateX(2px);
}

/* Bottom CTA */
.authors-bottom-cta {
  margin-top: 3rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: #0f172a;
  padding: 2rem 1.5rem;
  text-align: center;
}

html.dark .authors-bottom-cta {
  border-color: rgba(51, 65, 85, 0.8);
  background: linear-gradient(135deg, #0f172a, #134e4a);
}

.authors-bottom-cta__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #f8fafc;
}

.authors-bottom-cta__text {
  margin: 0.5rem auto 0;
  max-width: 28rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #94a3b8;
}

.authors-bottom-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.authors-bottom-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 9999px;
  padding: 0.65rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.authors-bottom-cta__btn:hover {
  transform: translateY(-1px);
}

.authors-bottom-cta__btn--primary {
  background: #14b8a6;
  color: #042f2e;
  box-shadow: 0 8px 24px rgba(20, 184, 166, 0.35);
}

.authors-bottom-cta__btn--ghost {
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: #e2e8f0;
}

.authors-bottom-cta__btn--ghost:hover {
  border-color: #5eead4;
  color: #5eead4;
}

/* Empty state */
.authors-empty {
  border-radius: 1.25rem;
  border: 1px dashed rgba(148, 163, 184, 0.5);
  background: rgba(255, 255, 255, 0.6);
  padding: 3rem 1.5rem;
  text-align: center;
}

html.dark .authors-empty {
  background: rgba(15, 23, 42, 0.5);
}

.authors-empty p {
  margin: 0;
  color: #64748b;
}

html.dark .authors-empty p {
  color: #94a3b8;
}

.authors-empty a {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  color: #14b8a6;
  text-decoration: none;
}

.authors-empty a:hover {
  text-decoration: underline;
}
