.nanews-author-box {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin-block: 42px 20px;
  padding: 24px;
  border: 1px solid rgba(20, 30, 45, 0.14);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(20, 30, 45, 0.06);
  color: inherit;
  clear: both;
  isolation: isolate;
  min-width: 0;
}


.nanews-author-box__media a {
  display: block;
}

.nanews-author-box__photo {
  display: block;
  width: 112px;
  height: 112px;
  object-fit: cover;
  border-radius: 50%;
}

.nanews-author-box__eyebrow {
  margin: 0 0 5px;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.62;
}

.nanews-author-box__name {
  margin: 0;
  font-size: 23px;
  line-height: 1.2;
  font-weight: 750;
}

.nanews-author-box__name a,
.nanews-author-box__more a {
  color: inherit;
  text-decoration: none;
}

.nanews-author-box__name a:hover,
.nanews-author-box__name a:focus,
.nanews-author-box__more a:hover,
.nanews-author-box__more a:focus {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nanews-author-box__role {
  margin: 6px 0 0;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 650;
  opacity: 0.78;
}

.nanews-author-box__bio {
  margin-block-start: 12px;
  font-size: 16px;
  line-height: 1.65;
}

.nanews-author-box__bio p {
  margin: 0 0 8px;
}

.nanews-author-box__bio p:last-child {
  margin-bottom: 0;
}

.nanews-author-box__more {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 700;
}

@media (max-width: 640px) {
  .nanews-author-box {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 15px;
    padding: 18px;
    border-radius: 13px;
  }

  .nanews-author-box__photo {
    width: 76px;
    height: 76px;
  }

  .nanews-author-box__name {
    font-size: 20px;
  }

  .nanews-author-box__bio,
  .nanews-author-box__more {
    grid-column: 1 / -1;
  }
}


/* Author archive header */
.nanews-author-archive {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin: 12px 0 28px;
}

.nanews-author-archive__media {
  width: 150px;
}

.nanews-author-archive__photo {
  display: block;
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 12px;
}

.nanews-author-archive__description {
  min-width: 0;
}

.nanews-author-archive__description > :first-child {
  margin-top: 0;
}

.nanews-author-archive__description > :last-child {
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .nanews-author-archive {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 16px;
    margin-bottom: 22px;
  }

  .nanews-author-archive__media,
  .nanews-author-archive__photo {
    width: 96px;
    height: 96px;
  }

  .nanews-author-archive__photo {
    border-radius: 10px;
  }
}

/* All authors directory on author archive pages */
.nanews-all-authors {
  margin: 26px 0 34px;
  clear: both;
}

.nanews-all-authors__title {
  margin: 0 0 16px;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 750;
}

.nanews-all-authors__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.nanews-all-authors__item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(20, 30, 45, 0.14);
  border-radius: 12px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.nanews-all-authors__item:hover,
.nanews-all-authors__item:focus-visible {
  border-color: rgba(20, 30, 45, 0.28);
  box-shadow: 0 6px 18px rgba(20, 30, 45, 0.08);
  transform: translateY(-1px);
  text-decoration: none;
}

.nanews-all-authors__media {
  flex: 0 0 68px;
  width: 68px;
  height: 68px;
}

.nanews-all-authors__photo {
  display: block;
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 10px;
}

.nanews-all-authors__name {
  min-width: 0;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 700;
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  .nanews-all-authors {
    margin-top: 22px;
  }

  .nanews-all-authors__title {
    margin-bottom: 13px;
    font-size: 22px;
  }

  .nanews-all-authors__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .nanews-all-authors__item {
    display: block;
    padding: 10px;
    text-align: center;
  }

  .nanews-all-authors__media {
    display: block;
    width: 76px;
    height: 76px;
    margin: 0 auto 8px;
  }

  .nanews-all-authors__photo {
    width: 76px;
    height: 76px;
    margin: 0 auto;
  }

  .nanews-all-authors__name {
    display: block;
    font-size: 15px;
    line-height: 1.3;
  }
}
