.tok-authors-directory {
  --tok-author-black: #111;
  --tok-author-accent: #f7971c;
  --tok-author-accent-dark: #d77a05;
  width: 100%;
  max-width: 1120px;
  margin: 28px auto;
  color: var(--tok-author-black);
  font-family: inherit;
}

.tok-authors-heading {
  margin-bottom: 18px;
  border-bottom: 3px solid var(--tok-author-black);
}

.tok-authors-heading h2 {
  display: inline-block;
  margin: 0;
  padding: 0 0 10px;
  border-bottom: 3px solid var(--tok-author-accent);
  color: var(--tok-author-black);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.15;
  text-transform: none;
}

.tok-authors-alpha {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 18px 0 30px;
  padding: 14px;
  border: 1px solid #e4e4e4;
  background: #fafafa;
}

.tok-authors-alpha-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 9px;
  border: 1px solid #d8d8d8;
  background: #fff;
  color: var(--tok-author-black);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.tok-authors-alpha-all {
  min-width: 48px;
  background: var(--tok-author-accent);
  border-color: var(--tok-author-accent);
  color: #fff;
}

.tok-authors-alpha-link:hover {
  border-color: var(--tok-author-accent);
  color: var(--tok-author-accent);
}

.tok-authors-alpha-all:hover {
  color: #fff;
  background: var(--tok-author-accent-dark);
}

.tok-authors-alpha-disabled {
  opacity: 0.35;
  pointer-events: none;
}

.tok-authors-groups {
  display: grid;
  gap: 26px;
}

.tok-authors-letter-group {
  scroll-margin-top: 90px;
}

.tok-authors-letter-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  color: var(--tok-author-accent);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.tok-authors-letter-title::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #e6e6e6;
}

.tok-authors-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.tok-authors-columns-1 {
  grid-template-columns: 1fr;
}

.tok-authors-columns-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tok-authors-columns-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tok-author-card {
  position: relative;
  border: 1px solid #e5e5e5;
  border-left: 4px solid var(--tok-author-accent);
  background: #fff;
  color: var(--tok-author-black);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.tok-author-card:hover {
  border-color: #d6d6d6;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.tok-author-card-link {
  display: grid;
  min-height: 148px;
  padding: 16px 16px 14px;
  color: inherit;
  text-decoration: none;
}

.tok-author-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tok-author-card-image,
.tok-author-image-placeholder {
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  border: 2px solid #f0f0f0;
  border-radius: 50%;
  object-fit: cover;
}

.tok-author-image-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--tok-author-black);
  color: #fff;
  font-size: 30px;
  font-weight: 900;
}

.tok-author-card-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.tok-author-card-name {
  color: var(--tok-author-black);
  font-size: 19px;
  font-weight: 900;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.tok-author-card-meta {
  color: var(--tok-author-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.tok-author-card-bio {
  display: -webkit-box;
  margin: 13px 0 0;
  overflow: hidden;
  color: #555;
  font-size: 14px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tok-author-read-more {
  display: inline-block;
  margin-top: 12px;
  color: var(--tok-author-accent);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.tok-author-read-more:hover,
.tok-author-card-link:hover .tok-author-card-name {
  color: var(--tok-author-accent-dark);
  text-decoration: underline;
}

.tok-author-detail {
  max-width: 920px;
  margin: 32px auto;
  color: var(--tok-author-black);
}

.tok-author-detail-header {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 3px solid var(--tok-author-black);
}

.tok-author-detail-image,
.tok-author-detail .tok-author-image-placeholder {
  width: 158px;
  height: 158px;
  flex: 0 0 158px;
  border: 3px solid #f0f0f0;
  border-radius: 50%;
  object-fit: cover;
}

.tok-author-detail-name {
  margin: 0 0 7px;
  color: var(--tok-author-black);
  font-size: 38px;
  font-weight: 900;
  line-height: 1.12;
}

.tok-author-detail-category {
  margin-bottom: 14px;
  color: var(--tok-author-accent);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.tok-author-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.tok-author-social-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid #d6d6d6;
  background: #fff;
  color: #111;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.tok-author-social-link:hover {
  border-color: var(--tok-author-accent);
  color: var(--tok-author-accent);
}

.tok-author-detail-bio {
  margin-bottom: 34px;
  color: #333;
  font-size: 17px;
  line-height: 1.8;
}

.tok-author-posts {
  margin-top: 34px;
}

.tok-author-posts-heading {
  margin-bottom: 18px;
  border-bottom: 3px solid var(--tok-author-black);
}

.tok-author-posts-heading h2 {
  display: inline-block;
  margin: 0;
  padding-bottom: 9px;
  border-bottom: 3px solid var(--tok-author-accent);
  color: var(--tok-author-black);
  font-size: 26px;
  font-weight: 900;
  line-height: 1.15;
}

.tok-author-posts-list {
  display: grid;
  gap: 14px;
}

.tok-author-post-item {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 18px;
  width: 100%;
  padding: 0 0 16px;
  border: 0;
  border-bottom: 1px solid #ececec;
  background: transparent;
}

.tok-author-post-thumb {
  display: block;
  width: 170px;
  height: 112px;
  overflow: hidden;
  background: #f2f2f2;
}

.tok-author-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tok-author-post-thumb-placeholder::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f2f2f2, #e8e8e8);
}

.tok-author-post-copy h3 {
  margin: 0 0 7px;
  color: var(--tok-author-black);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.25;
}

.tok-author-post-copy h3 a {
  color: inherit;
  text-decoration: none;
}

.tok-author-post-copy h3 a:hover {
  color: var(--tok-author-accent);
  text-decoration: underline;
}

.tok-author-post-copy time {
  display: block;
  margin-bottom: 7px;
  color: var(--tok-author-accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.tok-author-post-copy p {
  margin: 0;
  color: #555;
  font-size: 14px;
  line-height: 1.55;
}

.tok-author-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.tok-author-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 11px;
  border: 1px solid #d8d8d8;
  background: #fff;
  color: var(--tok-author-black);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.tok-author-pagination .page-numbers.current,
.tok-author-pagination .page-numbers:hover {
  border-color: var(--tok-author-accent);
  background: var(--tok-author-accent);
  color: #fff;
}

.tok-authors-empty {
  color: #666;
}

@media (max-width: 900px) {
  .tok-authors-columns-3,
  .tok-authors-columns-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .tok-authors-directory {
    margin: 20px auto;
  }

  .tok-authors-heading h2 {
    font-size: 27px;
  }

  .tok-authors-alpha {
    gap: 5px;
    padding: 10px;
  }

  .tok-authors-alpha-link {
    min-width: 31px;
    height: 31px;
    font-size: 12px;
  }

  .tok-authors-grid,
  .tok-authors-columns-2,
  .tok-authors-columns-3,
  .tok-authors-columns-4 {
    grid-template-columns: 1fr;
  }

  .tok-author-card {
    min-height: 0;
  }

  .tok-author-card-link {
    min-height: 0;
    padding: 14px;
  }

  .tok-author-card-image,
  .tok-author-image-placeholder {
    width: 66px;
    height: 66px;
    flex-basis: 66px;
  }

  .tok-author-detail-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .tok-author-detail-image,
  .tok-author-detail .tok-author-image-placeholder {
    width: 132px;
    height: 132px;
    flex-basis: 132px;
  }

  .tok-author-detail-name {
    font-size: 30px;
  }

  .tok-author-posts-heading h2 {
    font-size: 23px;
  }

  .tok-author-post-item {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .tok-author-post-thumb {
    width: 96px;
    height: 72px;
  }

  .tok-author-post-copy h3 {
    font-size: 16px;
  }

  .tok-author-post-copy p {
    display: none;
  }
}
