/* Archives — publish timeline; dots share one vertical rail */
.rn-archive {
  max-width: 860px;
  padding: 28px 16px 56px;
}

.rn-archive .rn-page-head p {
  margin: 0;
  color: var(--rn-text-muted);
  font-size: 14px;
}

.rn-timeline {
  --rn-rail: 22px; /* rail center X */
  --rn-rail-col: 44px; /* left column width (dot sits centered in it) */
  position: relative;
  margin-top: 8px;
  padding-left: 0;
}

/* vertical progress line through rail center */
.rn-timeline::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 8px;
  left: var(--rn-rail);
  width: 2px;
  margin-left: -1px;
  background: linear-gradient(
    180deg,
    var(--rn-primary) 0%,
    rgba(150, 185, 125, 0.4) 50%,
    rgba(150, 185, 125, 0.15) 100%
  );
  z-index: 0;
}

.rn-timeline__year {
  position: relative;
  margin: 0 0 24px;
}

.rn-timeline__year-node,
.rn-timeline__month-node,
.rn-timeline__post {
  position: relative;
  display: grid;
  grid-template-columns: var(--rn-rail-col) minmax(0, 1fr);
  column-gap: 12px;
  align-items: start;
  z-index: 1;
}

.rn-timeline__year-node {
  align-items: center;
  margin-bottom: 14px;
}

.rn-timeline__month-node {
  align-items: center;
  margin-bottom: 10px;
}

.rn-timeline__year-dot,
.rn-timeline__month-dot,
.rn-timeline__post-dot {
  grid-column: 1;
  justify-self: center;
  align-self: center;
  box-sizing: border-box;
  border-radius: 50%;
  background: #fff;
  z-index: 2;
  /* keep dots on the 22px rail: column is 44px, center = 22px */
}

.rn-timeline__year-dot {
  width: 16px;
  height: 16px;
  border: 3px solid var(--rn-primary);
  box-shadow: 0 0 0 3px rgba(150, 185, 125, 0.2);
}

.rn-timeline__year.is-current .rn-timeline__year-dot {
  background: var(--rn-primary);
}

.rn-timeline__month-dot {
  width: 12px;
  height: 12px;
  border: 2px solid var(--rn-primary);
  background: var(--rn-primary-soft);
}

.rn-timeline__post-dot {
  width: 10px;
  height: 10px;
  margin-top: 18px; /* align with card title row */
  align-self: start;
  background: var(--rn-primary);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(150, 185, 125, 0.5);
}

.rn-timeline__year-label,
.rn-timeline__month-label,
.rn-timeline__post-card {
  grid-column: 2;
  min-width: 0;
}

.rn-timeline__year-label {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
}

.rn-timeline__year-label a {
  color: var(--rn-text);
  text-decoration: none;
}

.rn-timeline__year-label a:hover {
  color: var(--rn-primary-dark);
}

.rn-timeline__month {
  margin: 0 0 16px;
}

.rn-timeline__month-label {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.rn-timeline__month-label a {
  color: var(--rn-text-muted);
  text-decoration: none;
}

.rn-timeline__month-label a:hover {
  color: var(--rn-primary-dark);
}

.rn-timeline__posts {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rn-timeline__post {
  margin: 0 0 12px;
}

.rn-timeline__post-card {
  display: flex;
  gap: 14px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--rn-border);
  border-radius: 8px;
  transition: border-color var(--rn-transition), box-shadow var(--rn-transition),
    transform var(--rn-transition);
}

.rn-timeline__post:hover .rn-timeline__post-card {
  border-color: rgba(150, 185, 125, 0.55);
  box-shadow: 0 6px 16px rgba(80, 110, 60, 0.08);
  transform: translateY(-1px);
}

.rn-timeline__date {
  flex-shrink: 0;
  min-width: 44px;
  padding-top: 2px;
  font-size: 12px;
  font-weight: 700;
  color: var(--rn-primary-dark);
  font-variant-numeric: tabular-nums;
}

.rn-timeline__post-main {
  min-width: 0;
  flex: 1;
}

.rn-timeline__title {
  display: inline-block;
  color: var(--rn-text);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.45;
}

.rn-timeline__title:hover {
  color: var(--rn-primary-dark);
}

.rn-timeline__excerpt {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--rn-text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rn-timeline__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.rn-timeline__chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  text-decoration: none;
  color: var(--rn-primary-dark);
  background: var(--rn-primary-soft);
}

.rn-timeline__chip:hover {
  background: var(--rn-primary);
  color: #fff;
  text-decoration: none;
}

.rn-timeline__chip--tag {
  background: #f3f3f3;
  color: var(--rn-text-muted);
}

.rn-timeline__chip--tag:hover {
  background: #e8e8e8;
  color: var(--rn-text);
}

.rn-timeline__empty {
  margin: 32px 0;
  color: var(--rn-text-muted);
  text-align: center;
}

@media (max-width: 640px) {
  .rn-archive {
    padding-left: 12px;
    padding-right: 12px;
  }

  .rn-timeline {
    --rn-rail: 16px;
    --rn-rail-col: 32px;
  }

  .rn-timeline__post-card {
    flex-direction: column;
    gap: 4px;
  }

  .rn-timeline__post-dot {
    margin-top: 14px;
  }
}
