/* DCU Guide chronology section on /character/<slug>.
 *
 * No local primitives: the repo's local-primitive inventory sits at its
 * ceiling, so anything chip/button/card/panel-shaped carries the shared
 * .cc-* class from theme.css and these rules only position it. Colors come
 * from theme custom properties -- no raw literals.
 */

.dcu-chron {
  margin: 1.5rem 0;
  min-width: 0;
}

.dcu-chron-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.dcu-chron-head h2 {
  font-size: 1.1rem;
  margin: 0;
}

.dcu-chron-status {
  color: var(--text-dim);
  font-size: 0.85rem;
}

.dcu-chron-error {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin: 0;
}

.dcu-chron-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: baseline;
  color: var(--text-dim);
  font-size: 0.85rem;
  margin: 0 0 0.75rem;
}

.dcu-chron-source {
  color: var(--text-dim);
}

.dcu-chron-variants {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.dcu-chron-count {
  margin-left: 0.35rem;
  opacity: 0.7;
}

.dcu-chron-list {
  list-style: decimal;
  margin: 0;
  padding-left: 2.75rem;
  padding-right: 0.5rem;
}

.dcu-chron-entry {
  padding: 0.65rem 0.25rem;
  line-height: 1.45;
  border-bottom: 1px solid var(--border);
  overflow-wrap: anywhere;
}

.dcu-chron-entry::marker {
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.dcu-chron-viewport {
  max-height: 24rem;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.dcu-chron-viewport:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.dcu-chron-position {
  margin-bottom: 0.5rem;
  color: var(--text-dim);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

/* Unresolved rows stay in the list and stay readable -- dimmed, never hidden,
   because the coverage line above counts them. */
.dcu-chron-entry.is-unresolved {
  color: var(--text-dim);
}

.dcu-chron-note {
  margin-left: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.05rem 0.45rem;
  white-space: nowrap;
}

.dcu-chron-pagination {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.dcu-chron-jump {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.dcu-chron-jump input {
  width: 4.5rem;
  min-height: 44px;
}

.dcu-chron .cc-btn,
.dcu-chron .cc-chip {
  min-height: 44px;
}

@media (max-width: 640px) {
  .dcu-chron-jump {
    order: 1;
    flex-basis: 100%;
    justify-content: center;
  }

  .dcu-chron-note {
    display: block;
    margin: 0.15rem 0 0;
    width: fit-content;
  }
}
