/* ======================================
   DIARY TAB  (compact, day-separated)
   ====================================== */
.diary-timeline {
  font-family: var(--font-prose);
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 640px;          /* keep the reading column narrow and legible */
}

.diary-day-group {
  margin-bottom: 0.6rem;
}

/* THE DAY IS A RUBRIC (the manuscript look, maggie, 2026-09-30): the date in
   red-lead small caps between two gilt rules that fade outward. It used to be
   a sticky gold bar; on the vellum it is a line of the page, and it scrolls
   with the page like one. */
.diary-date-stamp {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-variant: small-caps;
  text-transform: none;
  font-size: 1.0714rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--rubric);
  padding: 0.5rem 0 0.35rem;
  margin: 0.2rem 0 0.3rem;
}
.diary-date-stamp::before, .diary-date-stamp::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gild));
}
.diary-date-stamp::after { background: linear-gradient(90deg, var(--gild), transparent); }

/* An entry is a ruled line of the page, not a box. The outcome colour still
   rides in on the badge (set inline from OUTCOME_META, ui/character.js). */
.diary-entry {
  padding: 0.55rem 0 0.6rem;
  border-bottom: 1px dotted var(--gild-faint);
}
.diary-entry:last-child { border-bottom: 0; }

.diary-entry-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.15rem;
}

.diary-time-label {
  font-family: var(--font-display);
  font-variant: small-caps;
  font-size: 1.0714rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: none;
}
.diary-time-label.encounter { color: var(--accent-gold); }
.diary-time-label.morning  { color: var(--accent-gold); }
.diary-time-label.midday   { color: var(--accent-ember); }
.diary-time-label.evening  { color: var(--attr-intrigue); }
.diary-time-label.midnight { color: var(--text-muted); }

/* The outcome is an italic aside after a centred dot, not a pill. */
.diary-outcome-badge {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  opacity: 0.9;
}
.diary-outcome-badge::before {
  content: '\00B7';
  margin-right: 0.45rem;
  color: var(--text-muted);
  font-style: normal;
}

/* The chronicle is set in the book face. */
.diary-entry-text {
  font-family: var(--font-serif);
  font-size: 1.2143rem;
  font-style: normal;
  color: var(--text-primary);
  line-height: 1.42;
}

/* THE ILLUMINATED INITIAL: the first entry of each day opens on a painted
   capital, gold on a brick ground inside a gilt rule. */
/* flow-root, so the entry holds its floated capital: a one-line entry ended
   before the capital did, and the next entry's header sat beside it
   (2026-10-01; this was a min-height, which did not contain the float). */
.diary-date-stamp + .diary-entry { display: flow-root; }
.diary-date-stamp + .diary-entry .diary-entry-text::first-letter {
  float: left;
  font-family: var(--font-display);
  font-size: 2.9em;
  line-height: 0.82;
  font-weight: 500;
  color: var(--initial-ink);
  margin: 0.12em 0.4rem 0 0;
  padding: 0.14em 0.16em 0.06em;
  background: var(--initial-ground);
  border: 1px solid var(--gild);
  box-shadow: inset 0 0 0 2px var(--initial-edge), inset 0 0 0 3px var(--gild-faint);
  text-shadow: 0 1px 0 #000;
}

.diary-pager { display: flex; align-items: center; justify-content: center; gap: 0.8rem; margin: 0.5rem 0; }
.diary-pager-count { font-size: var(--fs-small); color: var(--text-muted); }
/* The Chronicle's Filter button moved into its title row and became the shared
   .tick-filter (components/controls.css, js/ui/tick-filter.js), 2026-10-02. */

@media (max-width: 768px) {
  .diary-time-label { font-size: 1rem; }
}


/* Whisper revelation entry - special visual treatment */
.diary-entry.whisper-entry {
  border-left: 2px solid var(--accent-violet);
  background: rgba(144,112,192,0.05);
  padding: 0.4rem 0.5rem 0.4rem 0.65rem;
}
.diary-entry-text.whisper-text {
  color: var(--accent-violet);
  font-style: italic;
}
