/* Article extras: wider reading column + "important" article highlight.
   Version lives in the filename because ?ver= is stripped site-wide. */

/* Wider article layout */
.single-article__container,
.single-hero__inner { max-width: 76rem; }
.single-article__main { min-width: 0; }

/* Data tables inside articles */
.prose-mpej table {
    display: table;
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
    font-size: 0.95rem;
}
.prose-mpej th,
.prose-mpej td {
    padding: 0.7rem 0.9rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
    text-align: left;
    vertical-align: top;
}
.prose-mpej thead th {
    background: var(--color-dark-2, #1e293b);
    color: #fff;
    font-weight: 600;
}
.prose-mpej tbody tr:nth-child(even) { background: rgba(148, 163, 184, 0.10); }
.prose-mpej td:not(:first-child),
.prose-mpej th:not(:first-child) { text-align: right; white-space: nowrap; }

/* Important article: single page hero */
.mpej-important-post .single-hero__badge::before,
.article-card--important .article-card__badge::before {
    content: "";
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    margin-right: 0.4rem;
    border-radius: 50%;
    background: #fff;
    vertical-align: middle;
    animation: mpej-important-blink 1.1s ease-in-out infinite;
}

.mpej-important-post .single-hero__title::before,
.article-card--important .article-card__badge-wrapper::before {
    content: "IMPORTANT";
    display: inline-block;
    margin-right: 0.5rem;
    border-radius: 9999px;
    background: #DC2626;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #fff;
    animation: mpej-important-pulse 1.4s ease-out infinite;
}

.mpej-important-post .single-hero__title::before {
    display: table;
    margin: 0 0 1rem 0;
    padding: 0.45rem 1.1rem;
    font-size: 0.9rem;
    line-height: 1.2;
    letter-spacing: 0.1em;
}

/* Important article: cards (articles page, home page, related articles) */
.article-card.article-card--important {
    border: 2px solid #DC2626;
    animation: mpej-important-glow 1.6s ease-in-out infinite;
}

@keyframes mpej-important-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.75); }
    70%  { box-shadow: 0 0 0 14px rgba(220, 38, 38, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

@keyframes mpej-important-blink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.15; }
}

@keyframes mpej-important-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.0), 0 4px 12px rgba(220, 38, 38, 0.15); }
    50%      { box-shadow: 0 0 0 5px rgba(220, 38, 38, 0.30), 0 8px 24px rgba(220, 38, 38, 0.35); }
}

@media (prefers-reduced-motion: reduce) {
    .mpej-important-post .single-hero__badge::before,
    .article-card--important .article-card__badge::before,
    .mpej-important-post .single-hero__title::before,
    .article-card--important .article-card__badge-wrapper::before,
    .article-card.article-card--important { animation: none; }
}

@media print {
    .mpej-important-post .single-hero__title::before { display: none; }
}
