.ht-author-archive{
  --container:1400px;
  padding-block:24px 36px;
}

@media (max-width:767.98px){
  .ht-author-archive{
    padding-inline:12px;
  }
}

.ht-author-archive .ht-text-muted{
  font-size:14px;
  color:var(--muted);
}

/* breadcrumb شبیه دسته‌بندی */

.ht-author-breadcrumb{
  margin:0 0 20px;
}

.ht-author-breadcrumb ol{
  display:flex;
  align-items:center;
  gap:0;
  list-style:none;
  margin:0;
  padding:10px 18px;
  border-radius:var(--radius);
  background:var(--surface);
  border:1px solid color-mix(in oklab,var(--border),var(--fg) 12%);
  box-shadow:var(--shadow-sm);
  overflow-x:auto;
  overflow-y:hidden;
  white-space:nowrap;
  scrollbar-width:none;
}

.ht-author-breadcrumb ol::-webkit-scrollbar{
  display:none;
}

.ht-author-crumb{
  display:inline-flex;
  align-items:center;
  gap:6px;
  flex:0 0 auto;
  min-width:0;
}

.ht-author-crumb + .ht-author-crumb::before{
  content:"›";
  margin-inline:10px;
  color:var(--muted);
}

.ht-author-crumb__link{
  display:inline-flex;
  align-items:baseline;
  gap:4px;
  text-decoration:none;
  color:var(--brand-700);
  font-weight:500;
}

.ht-author-crumb__link:hover{
  text-decoration:underline;
}

.ht-author-crumb__current{
  color:var(--fg);
  font-weight:400;
}

/* هدر نویسنده هم‌استایل با titlebar دسته */

.ht-author-header{
  margin:0 0 18px;
}

.ht-author-header__inner{
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px 18px;
  border-radius:var(--radius);
  background:var(--surface);
  border:1px solid color-mix(in oklab,var(--border),var(--fg) 12%);
  box-shadow:var(--shadow-sm);
}

.ht-author-header__author{
  display:flex;
  flex-direction:row-reverse;
  align-items:center;
  gap:10px;
}

.ht-author-header__name{
  font-size:21px;
  line-height:1.5;
  font-weight:700;
  color:var(--fg);
}

@media (max-width:480px){
  .ht-author-header__name{
    font-size:19px;
  }
}

.ht-author-header__avatar{
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.ht-author-header__avatar-img{
  display:block;
  inline-size:40px;
  block-size:40px;
  border-radius:999px;
  border:2px solid var(--brand-500);
  object-fit:cover;
}

.ht-author-header__count{
  margin-inline-start:auto;
  display:inline-flex;
  align-items:center;
  gap:8px;
}

.ht-author-header__badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:32px;
  height:26px;
  padding-inline:10px;
  border-radius:999px;
  border:1px solid var(--border);
  background:var(--surface-2);
  font-size:12px;
  font-weight:600;
  color:var(--fg);
  font-family:var(--font-ui);
}

.ht-author-header__count-label{
  font-size:12px;
  color:var(--muted);
}

@media (max-width:575.98px){
  .ht-author-header__count-label{
    display:none;
  }
}

/* اینترو کوتاه نویسنده با شید پایین و دکمه هوشمند */

.ht-author-intro{
  margin:0 0 18px;
}

.ht-author-intro__inner{
  position:relative;
  padding:14px 16px;
  border-radius:var(--radius);
  background:var(--surface);
  border:1px solid color-mix(in oklab,var(--border),var(--fg) 12%);
  color:var(--fg);
  max-height:140px;
  overflow:hidden;
  transition:max-height .25s ease;
}

.ht-author-intro__inner::after{
  content:"";
  position:absolute;
  inset-inline:0;
  inset-block:auto 0;
  height:40px;
  background:linear-gradient(to top,var(--surface),color-mix(in oklab,var(--surface),transparent 100%));
  pointer-events:none;
}

.ht-author-intro.is-open .ht-author-intro__inner{
  max-height:9999px;
}

.ht-author-intro.is-open .ht-author-intro__inner::after{
  display:none;
}

.ht-author-intro__inner p{
  margin-block:.4em;
  text-align:justify;
  text-justify:inter-word;
}

.ht-author-intro__toggle{
  margin-top:8px;
  padding:7px 16px;
  border-radius:var(--radius);
  border:1px solid color-mix(in oklab,var(--border),var(--fg) 10%);
  background:transparent;
  color:#0a0f17;
  font-size:13px;
  font-weight:500;
  cursor:pointer;
  font-family:var(--font-ui);
}

html[data-theme="dark"] .ht-author-intro__toggle{
  color:var(--brand-300);
  border-color:var(--brand-300);
}

html[data-theme="dark"] .ht-author-breadcrumb ol,
html[data-theme="dark"] .ht-author-header__inner{
  background:var(--surface-2);
  border-color:var(--border);
}

html[data-theme="dark"] .ht-author-header__badge{
  background:var(--surface);
  color:var(--fg);
  border-color:var(--border);
}
