/* ==========================================================================
   Live coverage: LIVE labels, the "Live now" strip, and the live article page
   ========================================================================== */

/* ---- LIVE pill ---- */
.live-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px;
    border-radius: 3px;
    background: #c8102e;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1.4;
    text-transform: uppercase;
    vertical-align: middle;
    white-space: nowrap;
}
.live-pill__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
    animation: live-pulse 1.6s ease-in-out infinite;
}
.live-pill--sm {
    margin-right: 8px;
    padding: 1px 6px;
    font-size: 10px;
    transform: translateY(-2px);
}
.live-pill--sm .live-pill__dot { width: 5px; height: 5px; }
.live-pill--ended { background: #4b5563; }
@keyframes live-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .25; }
}
@media (prefers-reduced-motion: reduce) {
    .live-pill__dot { animation: none; }
}

/* ---- "Live now" strip under the header ---- */
.live-strip,
.live-coverage {
    padding: 0;   /* the theme pads every <section> by 70px */
}
.live-strip {
    background: #fff5f6;
    border-bottom: 1px solid #f3c4cc;
}
.live-strip .container {
    display: flex;
    flex-direction: column;
}
.live-strip__item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 12px;
    padding: 10px 0;
    color: #0d1b2a;
    text-decoration: none;
}
.live-strip__item + .live-strip__item { border-top: 1px solid #f3c4cc; }
.live-strip__title {
    font-weight: 800;
    font-size: 16px;
    line-height: 1.3;
}
.live-strip__item:hover .live-strip__title,
.live-strip__item:focus-visible .live-strip__title { text-decoration: underline; color: #a10c25; }
.live-strip__latest {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    color: #4b5563;
    font-size: 14px;
}
.live-strip__update::before { content: "Latest: "; font-weight: 700; color: #0d1b2a; }
.live-strip__latest time { color: #c8102e; font-weight: 600; }

/* ---- Article header ---- */
.article-header__kickers {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.article-header__kickers .article-header__kicker { margin-bottom: 0; }

/* ---- Live coverage block ---- */
.live-coverage { margin: 0 0 32px; }
.live-coverage__status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    margin-bottom: 18px;
    color: #374151;
    font-size: 14px;
}
.live-coverage__status-text { font-weight: 700; color: #0d1b2a; }
.live-coverage__count { margin-left: auto; color: #6b7280; }
.live-coverage__lead { margin: 0 0 22px; }
.live-coverage__lead img { display: block; width: 100%; height: auto; border-radius: 4px; }

.live-keypoints {
    margin: 0 0 28px;
    padding: 18px 22px;
    border-top: 4px solid #c8102e;
    background: #f7f8fa;
}
.live-keypoints h2 {
    margin: 0 0 10px;
    color: #0d1b2a;
    font-size: 18px;
    font-weight: 800;
}
.live-keypoints ul { margin: 0; padding-left: 20px; }
.live-keypoints li {
    margin: 0 0 8px;
    color: #1f2937;
    font-size: 16px;
    line-height: 1.55;
    list-style: disc;
}
.live-keypoints li:last-child { margin-bottom: 0; }

.live-coverage__new {
    position: sticky;
    top: 12px;
    z-index: 20;
    display: block;
    margin: 0 auto 16px;
    padding: 9px 18px;
    border: 0;
    border-radius: 999px;
    background: #c8102e;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 6px 18px rgba(200, 16, 46, .3);
    cursor: pointer;
}
.live-coverage__new[hidden] { display: none; }
.live-coverage__new:hover { background: #a10c25; }

/* ---- Staff post box on the live page ---- */
.live-post {
    margin: 0 0 26px;
    padding: 14px 16px;
    border: 2px dashed #c8102e;
    border-radius: 4px;
    background: #fffafa;
    scroll-margin-top: 140px;
}
.live-post__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 12px;
    margin-bottom: 10px;
    font-size: 14px;
}
.live-post__head span { color: #6b7280; font-size: 13px; }
.live-post__head a { margin-left: auto; color: #c8102e; font-weight: 700; font-size: 13px; }
.live-post input[type="text"],
.live-post textarea {
    display: block;
    width: 100%;
    margin-bottom: 8px;
    padding: 9px 11px;
    border: 1px solid #d1d5db;
    border-radius: 3px;
    background: #fff;
    font-size: 15px;
}
.live-post textarea { min-height: 90px; resize: vertical; }
.live-post__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
}
.live-post__foot input[type="file"] { max-width: 220px; font-size: 13px; }
.live-post__foot button {
    padding: 9px 18px;
    border: 0;
    border-radius: 3px;
    background: #c8102e;
    color: #fff;
    font-weight: 700;
}
.live-post__foot button:hover { background: #a10c25; }
.live-post__ok { margin: 0 0 8px; color: #047857; font-weight: 600; font-size: 14px; }
.live-post__error { margin: 0 0 8px; color: #b91c1c; font-weight: 600; font-size: 14px; }

/* ---- One update ---- */
.live-update {
    position: relative;
    margin: 0 0 18px;
    padding: 18px 0 18px 20px;
    border-left: 3px solid #e5e7eb;
    scroll-margin-top: 140px;
}
.live-update::before {
    content: "";
    position: absolute;
    top: 24px;
    left: -7px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #c8102e;
    box-shadow: 0 0 0 3px #fff;
}
.live-update--pinned {
    padding-right: 18px;
    border-left-color: #c8102e;
    background: #fff8f9;
}
.live-update:target { background: #fffbea; }
.live-update__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
    margin-bottom: 6px;
    font-size: 14px;
}
.live-update__pin {
    color: #c8102e;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.live-update__time {
    color: #c8102e;
    font-weight: 800;
    text-decoration: none;
}
.live-update__time:hover { text-decoration: underline; }
.live-update__ago { color: #6b7280; }
.live-update__title {
    margin: 0 0 10px;
    color: #0d1b2a;
    font-size: clamp(19px, 2.2vw, 23px);
    font-weight: 800;
    line-height: 1.25;
}
.live-update__figure { margin: 0 0 12px; }
.live-update__figure img { display: block; width: 100%; height: auto; border-radius: 4px; }
.live-update__figure figcaption { margin-top: 6px; color: #6b7280; font-size: 13px; }
.live-update__body { color: #1f2937; font-size: 17px; line-height: 1.65; }
.live-update__body p { margin: 0 0 12px; }
.live-update__body p:last-child { margin-bottom: 0; }
.live-update__body a { color: #0b5cad; text-decoration: underline; word-break: break-word; }
.live-update__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    margin-top: 12px;
    color: #4b5563;
    font-size: 13px;
}
.live-update__author { font-weight: 700; color: #374151; }
.live-update__edited { font-style: italic; }
.live-update__copy {
    margin-left: auto;
    padding: 4px 10px;
    border: 1px solid #d1d5db;
    border-radius: 3px;
    background: #fff;
    color: #374151;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
.live-update__copy:hover { border-color: #0d1b2a; color: #0d1b2a; }

.live-coverage__empty {
    padding: 18px;
    border: 1px dashed #d1d5db;
    color: #6b7280;
    text-align: center;
}
.live-coverage__more {
    display: block;
    width: 100%;
    padding: 12px;
    border: 1px solid #0d1b2a;
    border-radius: 3px;
    background: #fff;
    color: #0d1b2a;
    font-weight: 700;
    cursor: pointer;
}
.live-coverage__more:hover { background: #0d1b2a; color: #fff; }
.live-coverage__more:disabled { opacity: .6; cursor: wait; }

/* ---- The original story, shown below the feed ---- */
.live-background { padding-top: 8px; border-top: 3px solid #0d1b2a; }
.live-background__title {
    margin: 14px 0 0;
    padding: 0 20px;
    color: #0d1b2a;
    font-size: 20px;
    font-weight: 800;
}

@media (max-width: 575.98px) {
    .live-update { padding-left: 14px; }
    .live-update__body { font-size: 16px; }
    .live-keypoints { padding: 14px 16px; }
    .live-coverage__count { margin-left: 0; width: 100%; }
}
