/* ============================================================
   TPR LIVEBLOG — Guardian-style
   Palette: red accent, white cards, dark timestamps
   ============================================================ */

/* --- Entry container --- */
.liveblog-entry {
  position: relative;
  border-left: 4px solid #cc0000;
  margin: 0 0 1.5rem 0;
  padding: 1rem 1rem 1rem 1.25rem;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.07);
  transition: border-color .15s ease;
}

.liveblog-entry:hover { border-left-color: #990000; }

/* Key event gets stronger treatment */
.liveblog-entry--key {
  border-left-color: #cc0000;
  border-left-width: 6px;
  background: #fffaf9;
}

/* --- Meta row (time + badge) --- */
.liveblog-entry__meta {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .5rem;
}

.liveblog-entry__time {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: .8rem;
  font-weight: bold;
  color: #cc0000;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.liveblog-entry__key-badge {
  display: inline-block;
  background: #cc0000;
  color: #fff;
  font-size: .65rem;
  font-weight: bold;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .15rem .45rem;
  border-radius: 2px;
}

/* --- Entry body --- */
.liveblog-entry__body {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1rem;
  line-height: 1.65;
  color: #1a1a1a;
}

.liveblog-entry__body p:last-child { margin-bottom: 0; }

.liveblog-entry__body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: .75rem 0;
  border-radius: 2px;
}

.liveblog-entry__body audio {
  width: 100%;
  margin: .75rem 0;
}

/* --- Permalink anchor --- */
.liveblog-entry__actions { margin-top: .5rem; }

.liveblog-entry__permalink {
  font-size: .75rem;
  color: #999;
  text-decoration: none;
  font-family: monospace;
}

.liveblog-entry__permalink:hover { color: #cc0000; }

/* --- New entry notification bar --- */
.liveblog-notification-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #cc0000;
  color: #fff;
  text-align: center;
  padding: .6rem 1rem;
  font-family: Verdana, sans-serif;
  font-size: .85rem;
  font-weight: bold;
  cursor: pointer;
  letter-spacing: .04em;
}

/* --- Key events sidebar widget --- */
.liveblog-key-events {
  border: 1px solid #e0e0e0;
  border-top: 3px solid #cc0000;
  padding: 1rem;
  background: #fff;
  margin-bottom: 1.5rem;
}

.liveblog-key-events h3 {
  font-family: Verdana, sans-serif;
  font-size: .8rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #cc0000;
  margin: 0 0 .75rem 0;
}

.liveblog-key-events a {
  display: block;
  font-family: Georgia, serif;
  font-size: .9rem;
  color: #1a1a1a;
  text-decoration: none;
  padding: .4rem 0;
  border-bottom: 1px solid #f0f0f0;
  line-height: 1.4;
}

.liveblog-key-events a:hover { color: #cc0000; }

/* ============================================================
   LIVE BADGE — self-contained, theme-agnostic
   Injected into post titles on the homepage/archives.
   ============================================================ */

.tpr-live-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: #cc0000;
  color: #fff;
  font-family: Verdana, sans-serif;
  font-size: .65rem;
  font-weight: bold;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .2rem .5rem;
  border-radius: 2px;
  vertical-align: middle;
  margin-right: .4rem;
}

.tpr-live-badge__dot {
  width: .4rem;
  height: .4rem;
  background: #fff;
  border-radius: 50%;
  animation: tpr-pulse 1.4s ease-in-out infinite;
}

@keyframes tpr-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,255,255,.7); }
  70%  { box-shadow: 0 0 0 5px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

/* Optional: tint the whole card when live, if your theme exposes
   a card wrapper. Harmless if the selector matches nothing. */
.post--live { /* add card treatment here once you know your markup */ }

/* Mobile */
@media (max-width: 640px) {
  .liveblog-entry { padding: .75rem .75rem .75rem 1rem; }
  .liveblog-entry__body { font-size: .95rem; }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .tpr-live-badge__dot { animation: none; }
}
