/* Reading progress + resume (progress.js). */

/* Thin progress bar pinned to the very top edge of episode pages. The fill's
   colour is set by JS to the episode's accent (--ep-accent). */
.reading-progress {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 40;
  background: transparent;
  pointer-events: none;
}
.reading-progress.is-active { display: block; }
.reading-progress-fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--color-ink);
}

/* Landing: "Continue reading" banner, revealed by JS when there's history. */
.resume {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  margin: 0 0 1.6rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--color-rule);
  border-radius: 0.4rem;
  text-decoration: none;
  font-family: var(--font-ui);
  color: var(--color-ink);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.resume[hidden] { display: none; } /* keep hidden until JS reveals it */
.resume:hover {
  border-color: var(--color-ink-soft);
  background: var(--color-shade);
}
.resume-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--color-ink-soft);
}
.resume-ep {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.1rem;
}
.resume-pct {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--color-ink-soft);
  font-variant-numeric: tabular-nums;
}

/* Landing: a thin per-episode progress fill under each row, shown once you've
   started an episode. */
.ep-progress {
  display: block;
  height: 2px;
  margin: 0.15rem 0.5rem 0;
  background: var(--color-rule);
  border-radius: 2px;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.episode-index li.has-progress .ep-progress { opacity: 1; }
.ep-progress-fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--color-ink-soft);
  border-radius: 2px;
}
