.model-timeline-figure {
  margin: 2.8rem 0;
  max-width: 100%;
  min-width: 0;
}

.model-timeline-heading {
  margin: 0 0 .45rem;
  font-family: var(--font-sans, "Noto Sans KR", sans-serif);
  font-size: 1.25rem;
  line-height: 1.4;
  text-align: left;
}

.model-timeline-intro {
  margin: 0 0 1rem;
  max-width: 720px;
  color: var(--color-text-muted, #5d646e);
  font-family: var(--font-sans, "Noto Sans KR", sans-serif);
  font-size: .9rem;
  font-weight: 400;
  line-height: 1.65;
  text-align: left;
}

.model-timeline-shell {
  min-width: 0;
  padding: 1rem 0 .4rem;
  overflow: hidden;
  border-top: 1px solid #aeb6c1;
  border-bottom: 1px solid #d8dde5;
  background: transparent;
}

.model-timeline-legend {
  display: none;
}

.model-timeline-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: hidden;
}

.model-timeline {
  width: 100%;
  min-height: 0;
}

.model-timeline svg {
  display: block;
  height: auto;
  max-width: none;
}

.model-timeline .month-band {
  fill: #f5f7fa;
}

.model-timeline .date-grid {
  stroke: #dfe4eb;
  stroke-width: 1;
}

.model-timeline .date-axis text,
.model-timeline .actor-label,
.model-timeline .month-label {
  font-family: var(--font-sans, "Noto Sans KR", sans-serif);
}

.model-timeline .date-axis text {
  fill: #6a7380;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.model-timeline .date-axis path,
.model-timeline .date-axis line {
  stroke: #aeb6c1;
}

.model-timeline .month-label {
  fill: #333c48;
  font-size: 12px;
  font-weight: 700;
}

.model-timeline .actor-label {
  fill: #202834;
  font-size: 12px;
  font-weight: 800;
}

.model-timeline .actor-subtitle {
  fill: #747d89;
  font-size: 10px;
  font-weight: 500;
}

.model-timeline .lane-line {
  fill: none;
  stroke-width: 2;
  stroke-opacity: .48;
}

.model-timeline .event-stem {
  fill: none;
  stroke-width: 1.25;
  stroke-opacity: .72;
}

.model-timeline .event-dot {
  stroke: #fff;
  stroke-width: 2.5;
}

.timeline-label {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  overflow: hidden;
  padding: 0 2px;
  background: transparent;
  font-family: var(--font-sans, "Noto Sans KR", sans-serif);
  line-height: 1.28;
}

.timeline-label time {
  display: block;
  margin: 0 0 2px;
  color: var(--event-color);
  font-size: 10px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.timeline-label a {
  display: block;
  overflow: hidden;
  color: #17202b;
  font-size: 11px;
  font-weight: 750;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-label a:hover,
.timeline-label a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.model-timeline .compact-line {
  stroke: #c7cdd6;
  stroke-width: 1.5;
}

.model-timeline .compact-date {
  fill: #626c78;
  font-family: var(--font-sans, "Noto Sans KR", sans-serif);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.model-timeline .compact-connector {
  stroke-width: 1.25;
  stroke-opacity: .72;
}

.model-timeline .compact-dot {
  stroke: #fff;
  stroke-width: 2;
}

.compact-label {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--font-sans, "Noto Sans KR", sans-serif);
  line-height: 1.25;
}

.compact-label span {
  display: inline;
  margin-right: .4rem;
  color: var(--event-color);
  font-size: 10px;
  font-weight: 800;
}

.compact-label a {
  color: #17202b;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}

.compact-label a:hover,
.compact-label a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.compact-label small {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: #6a7380;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-fallback {
  margin: 0;
  padding-left: 1.25rem;
  font-size: .88rem;
  line-height: 1.75;
}

.timeline-ready .timeline-fallback {
  display: none;
}

.model-timeline-caption {
  margin-top: .75rem;
  color: var(--color-text-muted, #666);
  font-size: .78rem;
  line-height: 1.55;
  text-align: left;
}

.model-timeline-detail {
  margin: 3.25rem 0;
}

.model-timeline-detail-heading {
  margin: 0 0 .7rem;
  font-family: var(--font-sans, "Noto Sans KR", sans-serif);
  font-size: 1.05rem;
  line-height: 1.45;
  text-align: left;
}

.model-timeline-detail .model-timeline-shell {
  padding-top: .6rem;
}

.model-timeline .actor-inline-label {
  font-family: var(--font-sans, "Noto Sans KR", sans-serif);
  font-size: 12px;
  font-weight: 800;
}

@media (min-width: 900px) {
  .article-content .model-timeline-figure:not(.model-timeline-detail) {
    width: min(1180px, calc(100vw - 64px));
    max-width: none;
    margin-left: 50%;
    transform: translateX(-50%);
  }

  .model-timeline-figure:not(.model-timeline-detail) .model-timeline-heading,
  .model-timeline-figure:not(.model-timeline-detail) .model-timeline-intro,
  .model-timeline-figure:not(.model-timeline-detail) .model-timeline-caption {
    margin-left: auto;
    margin-right: auto;
    width: min(100%, 640px);
  }

  .model-timeline-scroll {
    overflow-x: hidden;
  }
}


.model-timeline-key .legend-anthropic { background: #c45c3f; }
.model-timeline-key .legend-openai { background: #187b69; }
.model-timeline-key .legend-china { background: #7563b8; }
.model-timeline-key .legend-xai { background: #335f9e; }
