/* ===========================================================================
   Muallif sahifasi: shaxs kartasi, mehnat yo'li (timeline), nashrlar
   =========================================================================== */

/* Sarlavha yonidagi belgi. base.css da `svg { display: block }` global qoida
   bor, shu sabab sarlavhani flex qilmasak belgi alohida qatorga tushadi. */
.card__title--icon {
  display: flex;
  align-items: center;
  gap: var(--s-2);
}

/* --- Shaxs kartasi -------------------------------------------------------- */

.person {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-6);
  align-items: start;
}

.person__photo {
  width: 168px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface-2);
  object-fit: cover;
  display: block;
}

/* Muallif surati asl holida kichik (116x135) - kattalashtirsak xiralashadi. */
.person__photo--sm {
  width: 132px;
}

.person__name {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 800;
  color: var(--ink-900);
  line-height: var(--lh-heading);
  margin-bottom: var(--s-2);
}

.person__role {
  font-size: var(--fs-md);
  color: var(--brand-600);
  font-weight: 600;
  margin-bottom: var(--s-4);
}

.person__facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: var(--s-2) var(--s-5);
  font-size: var(--fs-sm);
}

.person__facts dt {
  color: var(--text-subtle);
}

.person__facts dd {
  color: var(--text);
  font-weight: 500;
}

/* --- Mehnat yo'li --------------------------------------------------------- */

.timeline {
  position: relative;
  margin: 0;
  padding: 0 0 0 var(--s-8);
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 5px;
  width: 2px;
  background: var(--border);
}

.timeline__item {
  position: relative;
  padding-bottom: var(--s-5);
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__item::before {
  content: "";
  position: absolute;
  top: 6px;
  left: calc(var(--s-8) * -1);
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 2px solid var(--brand-400);
}

/* Hozirgi lavozim ajratib ko'rsatiladi. */
.timeline__item--now::before {
  background: var(--brand-500);
  border-color: var(--brand-500);
  box-shadow: 0 0 0 4px var(--brand-100);
}

.timeline__year {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--brand-600);
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--s-1);
}

.timeline__text {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.7;
}

.timeline__text strong {
  color: var(--ink-800);
  font-weight: 600;
}

/* --- Nashrlar ------------------------------------------------------------- */

.pub {
  display: flex;
  gap: var(--s-4);
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--border);
}

.pub:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.pub:first-child {
  padding-top: 0;
}

.pub__num {
  flex: none;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-full);
  background: var(--surface-2);
  color: var(--text-subtle);
  font-size: var(--fs-xs);
  font-weight: 700;
}

.pub__title {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-800);
  line-height: 1.6;
  margin-bottom: var(--s-1);
}

.pub__meta {
  font-size: var(--fs-xs);
  color: var(--text-subtle);
  line-height: 1.6;
}

/* --- Mobil ---------------------------------------------------------------- */

@media (max-width: 640px) {
  .person {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .person__facts {
    grid-template-columns: 1fr;
    gap: 0;
    text-align: center;
  }

  .person__facts dt {
    margin-top: var(--s-3);
  }

  .timeline {
    padding-left: var(--s-6);
  }

  .timeline__item::before {
    left: calc(var(--s-6) * -1);
  }
}
