/* 架空国家 年表ジェネレーター専用の見た目。年表らしさを出すための縦線タイムライン。 */

.timeline { margin: 4px 0 8px; }

.tl-title {
  font-size: clamp(19px, 5vw, 24px);
  font-weight: 800;
  letter-spacing: .02em;
  margin: 0 0 2px;
}
.tl-sub {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 18px;
}

.tl-list { position: relative; }

/* 年 / 縦線と丸 / 出来事カード の3層 */
.tl-item {
  position: relative;
  padding-left: 116px;
  padding-bottom: 16px;
  min-height: 22px;
}
.tl-item:last-child { padding-bottom: 2px; }

.tl-year {
  position: absolute;
  left: 0;
  width: 92px;
  text-align: right;
  font-weight: 700;
  font-size: 14px;
  color: var(--cc, var(--accent));
  padding-top: 9px;
  line-height: 1.25;
}

/* 縦線 */
.tl-item::before {
  content: "";
  position: absolute;
  left: 102px;
  top: 6px;
  bottom: -6px;
  width: 2px;
  background: var(--line);
}
.tl-item:last-child::before { bottom: auto; height: 16px; }

/* 節点の丸 */
.tl-item::after {
  content: "";
  position: absolute;
  left: 97px;
  top: 12px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cc, var(--accent));
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 1px var(--cc, var(--accent));
}

.tl-card {
  border: 1px solid var(--line);
  border-left: 3px solid var(--cc, var(--accent));
  border-radius: 8px;
  background: var(--card, var(--bg));
  padding: 9px 12px;
  font-size: 15px;
  line-height: 1.55;
}

/* スマホでは年を上に置いて、カードを全幅に */
@media (max-width: 560px) {
  .tl-item { padding-left: 20px; padding-bottom: 18px; }
  .tl-year {
    position: static;
    width: auto;
    text-align: left;
    padding: 0 0 4px 0;
    font-size: 13px;
  }
  .tl-item::before { left: 5px; top: 2px; }
  .tl-item::after { left: 0; top: 3px; }
}

/* トーストの見た目は shared/site.css に共通化した */
