/* Guru-Parampara Timeline (/acharyas/timeline/) — Nandgram Dham
   Shares design tokens with acharyas.css; this file only adds the
   era-band + timeline-card layout that page needs. */

.tline { margin: 2rem 0 4rem; }

.tline-era { position: relative; padding: 0 0 2.4rem 0; }
.tline-era:not(:last-child) {
  border-left: 2px solid var(--ac-line);
  margin-left: 1.35rem;
  padding-left: 2.1rem;
}
.tline-era:last-child {
  margin-left: 1.35rem;
  padding-left: 2.1rem;
  border-left: 2px solid transparent;
}

.tline-era-head { display: flex; gap: 1rem; align-items: flex-start; margin: 0 0 1.1rem -3.15rem; }
.tline-era-num {
  flex-shrink: 0;
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  background: var(--ac-dark);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.05rem;
  box-shadow: var(--ac-shadow);
}
.tline-era-text h2 { margin: 0; font-size: 1.3rem; line-height: 1.3; }
.tline-era-text h2 a { color: var(--ac-dark); text-decoration: none; }
.tline-era-text h2 a:hover { text-decoration: underline; }
.tline-era-period {
  margin: .2rem 0 .5rem;
  font-size: .82rem; font-weight: 600; letter-spacing: .03em;
  color: var(--ac-accent);
  text-transform: uppercase;
}
.tline-era-note { margin: 0; font-size: .92rem; line-height: 1.6; color: var(--ac-muted); max-width: 62ch; }

.tline-undated-label {
  margin: 1.1rem 0 .55rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ac-muted);
  padding-top: .7rem;
  border-top: 1px dashed var(--ac-line);
}

.tline-items {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: .65rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}
.tline-item { margin: 0; }
.tline-card {
  display: flex; align-items: center; gap: .7rem;
  background: #fff;
  border: 1px solid var(--ac-line);
  border-radius: var(--ac-radius);
  padding: .65rem .8rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--ac-shadow);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.tline-card:hover {
  transform: translateY(-2px);
  border-color: #d9cdb0;
  box-shadow: 0 10px 26px rgba(15, 77, 74, .1);
}
.tline-avatar {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--ac-cream);
  display: flex; align-items: center; justify-content: center;
}
.tline-avatar img { width: 100%; height: 100%; object-fit: cover; }
.tline-avatar--placeholder { color: var(--ac-accent); font-size: 1.1rem; }
.tline-item-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.tline-item-name { font-weight: 700; color: var(--ac-ink); font-size: .95rem; line-height: 1.25; }
.tline-item-epithet { font-size: .78rem; color: var(--ac-accent); line-height: 1.3; }
.tline-item-era { font-size: .74rem; color: var(--ac-muted); line-height: 1.3; }
.tline-item-arrow { flex-shrink: 0; color: var(--ac-line); font-size: .8rem; }
.tline-card:hover .tline-item-arrow { color: var(--ac-accent); }

@media (max-width: 640px) {
  .tline-era, .tline-era:last-child { margin-left: .6rem; padding-left: 1.3rem; }
  .tline-era-head { margin-left: -1.9rem; }
  .tline-era-num { width: 2.1rem; height: 2.1rem; font-size: .92rem; }
}
