/* One event timeline (/events/event.html). Moved out of an inline <style> block so the page needs no style-src 'unsafe-inline'.
   Loaded after site.css, like the block it replaces. */
.event-detail-wrap { max-width: 800px; padding: 24px 20px 48px; }
a.back { display: inline-block; margin-bottom: 24px; color: var(--accent); text-decoration: none; min-height: 44px; line-height: 44px; }
a.back:hover { text-decoration: underline; }
.status { font-size: 12px; font-weight: 700; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; display: inline-block; margin-bottom: 12px; }
.status.developing { background: var(--accent-bg); color: var(--accent); }
.status.resolved { background: var(--new-bg); color: var(--new); }
.status.archived { background: var(--card2); color: var(--muted); border: 1px solid var(--line); }
.event-detail-wrap h1 { font-family: var(--serif); font-size: clamp(26px, 3vw, 36px); margin: 0 0 16px; line-height: 1.25; color: var(--ink); }
.event-detail-wrap .meta { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.event-detail-wrap .summary { font-size: 17px; line-height: 1.6; margin-bottom: 32px; color: var(--ink2); }
.timeline { border-left: 2px solid var(--line); margin-left: 8px; padding-left: 24px; list-style: none; }
.entry { margin-bottom: 24px; position: relative; }
.entry::before { content: ""; position: absolute; left: -31px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg); }
.entry-date { font-size: 13px; color: var(--muted); font-weight: 600; }
.entry-change { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; margin-left: 8px; }
.entry-change.new { background: var(--new-bg); color: var(--new); }
.entry-change.updated { background: var(--upd-bg); color: var(--upd); }
.entry-change.unchanged { background: var(--card2); color: var(--muted); border: 1px solid var(--line); }
.entry-text { margin: 8px 0 0; color: var(--ink2); line-height: 1.6; }
.entry-headline { font-family:var(--serif); font-size:21px; line-height:1.3; margin:12px 0 8px; color:var(--ink); }
.entry-what { color:var(--ink2); margin:8px 0; }
.entry-sources,.entry-edition,#timeline-status { color:var(--muted); font-size:14px; }
.entry-links { display:flex; flex-wrap:wrap; gap:8px 20px; }
.entry-links a { color:var(--accent); display:inline-flex; align-items:center; min-height:44px; }
.entry-links a:hover { text-decoration:underline; }
.timeline-order { margin:16px 0; flex-wrap:wrap; }
.sources { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.sources h2 { font-family: var(--serif); font-size: 20px; margin-bottom: 12px; color: var(--ink); }
.sources ul { list-style: none; padding: 0; margin: 0; }
.sources li { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 10px 0 2px; border-top: 1px solid var(--line); color: var(--ink2); }
.sources li:first-child { border-top: 0; }
.sources a, .sources .source-title { color: var(--accent); display: inline-flex; align-items: center; min-height: 44px; line-height: 1.35; }
.sources .source-title { color: var(--ink2); min-height: 0; }
.sources .source-outlet { font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--muted); }
/* The corrections note on an event page: no browser margin above its heading (it left a blank band). */
.correction-notice h2 { font-family: var(--serif); font-size: 18px; margin: 0 0 6px; color: var(--warn-ink); }
.correction-notice ul { margin: 0; padding-left: 20px; }
.sources a:hover { text-decoration: underline; }
.loading, .error, .empty { text-align: center; padding: 48px; color: var(--muted); }
.event-fallback { padding: 24px; }
body[data-event-id] .event-fallback { padding: 0; text-align: left; }
.event-fallback a { display: inline-flex; align-items: center; min-height: 44px; }
.error { color: #b91c1c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .error { color: #f87171; } }
:root[data-theme="dark"] .error { color: #f87171; }
/* While the event loads (one short line), hold a viewport of height so the footer starts below the fold and does not jump
   when the timeline arrives (CLS 0.43 to 0.47, review H1). Only with scripts on: without them the line never changes. */
@media (scripting: enabled) {
  #event:has(> .loading) { min-height: 100vh; }
}
