/* This post only (body.post-wide). The text column uses the site default width;
   the timeline fits it once its era labels are short. */

/* Hover notes: a dotted-underlined phrase; the note (text or an image) opens on
   hover, focus or tap, as a box under the phrase's line spanning the paragraph,
   so it never runs off-screen. */
.post-wide .post-body p,
.post-wide .post-body h5 { position: relative; }
.hover-note {
  cursor: help;
  outline: none;
  text-decoration: underline dotted;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.hover-note:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
.hover-note-text {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 5;
  display: block;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  box-shadow: var(--shadow);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-style: normal;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.55;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
}
.hover-note-img .hover-note-text { right: auto; width: min(360px, 100%); padding: 6px; }
.hover-note-img img { display: block; width: 100%; height: auto; border-radius: 4px; }
.hover-note-cap { display: block; padding: 6px 4px 2px; color: var(--muted); font-size: 0.78rem; line-height: 1.4; }
.hover-note:hover .hover-note-text,
.hover-note:focus-within .hover-note-text { opacity: 1; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { .hover-note-text { transition: none; } }
@media print {
  .hover-note-text { position: static; display: inline; opacity: 1; border: 0; box-shadow: none; padding: 0; }
  .hover-note-img .hover-note-text { display: none; }
}
