.story-page {
    min-height: 65vh;
}

.story-container {
    max-width: 920px;
}

.story-back-link {
    display: inline-flex;
    margin-bottom: 28px;
    color: #176a82;
    font-weight: 800;
    text-decoration: none;
}

.story-back-link:hover {
    text-decoration: underline;
}

.story-loading,
.story-error {
    padding: 60px 24px;
    text-align: center;
}

.story-header {
    max-width: 820px;
    margin-bottom: 30px;
}

.story-header h1 {
    margin: 14px 0 18px;
    color: #102f3b;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.08;
}

.story-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    color: #53707b;
    font-size: 0.85rem;
    font-weight: 700;
}

.story-meta span:not(:last-child)::after {
    margin-left: 18px;
    content: "•";
    opacity: 0.5;
}

.story-summary {
    max-width: 760px;
    margin: 0;
    color: #46616c;
    font-size: 1.18rem;
    line-height: 1.65;
}

.story-featured-image {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 680px;
    margin: 0 auto 36px;
    overflow: hidden;
    border-radius: 18px;
    background: #edf2f4;
}

.story-featured-image img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: contain;
}
.story-body {
    color: #263f48;
    font-size: 1.05rem;
    line-height: 1.8;
}

.story-body p,
.story-body ul,
.story-body ol,
.story-body blockquote {
    margin: 0 0 1.35em;
}

.story-body h2,
.story-body h3 {
    margin: 1.7em 0 0.65em;
    color: #102f3b;
}

.story-body a {
    color: #176a82;
    font-weight: 700;
}

.story-body img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
}

.story-body blockquote {
    padding: 18px 22px;
    border-left: 4px solid #176a82;
    background: #f3f7f8;
}

@media (max-width: 650px) {
    .story-header h1 {
        font-size: 2.15rem;
    }

    .story-meta {
        flex-direction: column;
        gap: 5px;
    }

    .story-meta span::after {
        display: none;
    }

    .story-summary {
        font-size: 1.05rem;
    }
}
/* ===== LIGHTHOUSE STORY DARK MODE FIX ===== */

html[data-theme="dark"] .story-loading,
html[data-theme="dark"] .story-error {
    color: #d8e3ec;
}

html[data-theme="dark"] .story-back-link {
    color: #72d7f2;
}

html[data-theme="dark"] .story-header h1,
html[data-theme="dark"] .story-body h2,
html[data-theme="dark"] .story-body h3,
html[data-theme="dark"] .story-error h1 {
    color: #f4f8fc;
}

html[data-theme="dark"] .story-meta {
    color: #9fb2c5;
}

html[data-theme="dark"] .story-summary {
    color: #c5d2de;
}

html[data-theme="dark"] .story-body {
    color: #d8e3ec;
}

html[data-theme="dark"] .story-body a {
    color: #72d7f2;
}

html[data-theme="dark"] .story-body blockquote {
    border-left-color: #72d7f2;
    background: #0c1b2d;
    color: #d8e3ec;
}

html[data-theme="dark"] .story-featured-image {
    background: #0c1b2d;
}

/* ===== END LIGHTHOUSE STORY DARK MODE FIX ===== */

/* LIGHTHOUSE LIVE UPDATES START */

.story-live-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0 1.25rem;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(185, 28, 28, 0.28);
    border-radius: 0.8rem;
    background: rgba(254, 226, 226, 0.72);
}

.story-live-status[hidden] {
    display: none;
}

.story-live-status--concluded {
    border-color: rgba(71, 85, 105, 0.25);
    background: rgba(226, 232, 240, 0.75);
}

.story-live-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 1.8rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1;
}

.story-live-badge--active {
    color: #ffffff;
    background: #b91c1c;
    animation: lighthouse-live-pulse 1.8s ease-in-out infinite;
}

.story-live-badge--concluded {
    color: #ffffff;
    background: #475569;
}

.story-live-message {
    color: #7f1d1d;
    font-size: 0.92rem;
    font-weight: 650;
    line-height: 1.45;
}

.story-live-status--concluded
.story-live-message {
    color: #334155;
}

.story-live-updates {
    margin: 2rem 0;
    padding: 1.35rem;
    border: 1px solid rgba(185, 28, 28, 0.2);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
}

.story-live-updates[hidden] {
    display: none;
}

.story-live-updates-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.story-live-eyebrow {
    margin: 0 0 0.25rem;
    color: #b91c1c;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.story-live-updates-header h2 {
    margin: 0;
    color: #172033;
    font-size: clamp(1.45rem, 3vw, 2rem);
}

.story-live-last-updated {
    margin: 0;
    color: #64748b;
    font-size: 0.84rem;
    text-align: right;
}

.story-live-update-list {
    display: grid;
    gap: 1rem;
}

.story-live-update {
    position: relative;
    padding: 1.1rem 1.15rem;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-left: 5px solid #b91c1c;
    border-radius: 0.75rem;
    background: #ffffff;
}

.story-live-update--correction {
    border-left-color: #b45309;
    background: #fffbeb;
}

.story-live-update--conclusion {
    border-left-color: #475569;
    background: #f8fafc;
}

.story-live-update-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.story-live-update-type {
    color: #b91c1c;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.story-live-update--correction
.story-live-update-type {
    color: #92400e;
}

.story-live-update--conclusion
.story-live-update-type {
    color: #475569;
}

.story-live-update-time {
    color: #475569;
    font-size: 0.84rem;
    font-weight: 700;
    text-align: right;
}

.story-live-update-content {
    color: #273449;
    font-size: 1rem;
    line-height: 1.72;
}

.story-live-update-content > :first-child {
    margin-top: 0;
}

.story-live-update-content > :last-child {
    margin-bottom: 0;
}

.story-live-update-content a {
    color: #a11212;
    font-weight: 700;
}

.story-live-update-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 1rem;
    margin-top: 0.95rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(148, 163, 184, 0.28);
    color: #64748b;
    font-size: 0.8rem;
}

.story-live-update-footer a {
    color: #a11212;
    font-weight: 700;
}

@keyframes lighthouse-live-pulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(185, 28, 28, 0.35);
    }

    50% {
        box-shadow: 0 0 0 7px rgba(185, 28, 28, 0);
    }
}

@media (max-width: 640px) {
    .story-live-status {
        align-items: flex-start;
        flex-direction: column;
    }

    .story-live-updates {
        padding: 1rem;
    }

    .story-live-updates-header,
    .story-live-update-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .story-live-last-updated,
    .story-live-update-time {
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    .story-live-badge--active {
        animation: none;
    }
}

html[data-theme="dark"]
.story-live-status {
    border-color: rgba(248, 113, 113, 0.32);
    background: rgba(127, 29, 29, 0.28);
}

html[data-theme="dark"]
.story-live-message {
    color: #fecaca;
}

html[data-theme="dark"]
.story-live-status--concluded {
    border-color: rgba(148, 163, 184, 0.28);
    background: rgba(51, 65, 85, 0.48);
}

html[data-theme="dark"]
.story-live-status--concluded
.story-live-message {
    color: #cbd5e1;
}

html[data-theme="dark"]
.story-live-updates {
    border-color: rgba(248, 113, 113, 0.25);
    background: rgba(15, 23, 42, 0.82);
}

html[data-theme="dark"]
.story-live-updates-header h2 {
    color: #f8fafc;
}

html[data-theme="dark"]
.story-live-update {
    border-color: rgba(148, 163, 184, 0.25);
    border-left-color: #ef4444;
    background: rgba(30, 41, 59, 0.9);
}

html[data-theme="dark"]
.story-live-update--correction {
    border-left-color: #f59e0b;
    background: rgba(120, 53, 15, 0.22);
}

html[data-theme="dark"]
.story-live-update--conclusion {
    border-left-color: #94a3b8;
    background: rgba(51, 65, 85, 0.72);
}

html[data-theme="dark"]
.story-live-update-content {
    color: #e2e8f0;
}

html[data-theme="dark"]
.story-live-update-time,
html[data-theme="dark"]
.story-live-update-footer,
html[data-theme="dark"]
.story-live-last-updated {
    color: #cbd5e1;
}

/* LIGHTHOUSE LIVE UPDATES END */

/* LIGHTHOUSE REPORTER CARDS START */

.story-reporter-card {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 1.25rem;
    align-items: center;
    margin: 2.5rem 0 0;
    padding: 1.35rem;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 1rem;
    background: rgba(248, 250, 252, 0.92);
}

.story-reporter-card[hidden] {
    display: none;
}

.story-reporter-avatar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    overflow: hidden;
    border: 3px solid #ffffff;
    border-radius: 50%;
    background: #b91c1c;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.16);
}

.story-reporter-avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-reporter-initials {
    color: #ffffff;
    font-size: 1.65rem;
    font-weight: 850;
    letter-spacing: 0.04em;
}

.story-reporter-eyebrow {
    margin: 0 0 0.2rem;
    color: #b91c1c;
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.story-reporter-content h2 {
    margin: 0;
    color: #172033;
    font-size: 1.35rem;
}

.story-reporter-title {
    margin: 0.25rem 0 0;
    color: #475569;
    font-size: 0.94rem;
    font-weight: 750;
}

.story-reporter-bio {
    max-width: 720px;
    margin: 0.65rem 0 0;
    color: #475569;
    font-size: 0.94rem;
    line-height: 1.65;
}

.story-live-update-author {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.story-live-update-avatar {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    overflow: hidden;
    border-radius: 50%;
    background: #b91c1c;
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 850;
    letter-spacing: 0.03em;
}

.story-live-update-avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 640px) {
    .story-reporter-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .story-reporter-avatar {
        margin: 0 auto;
    }

    .story-reporter-bio {
        margin-right: auto;
        margin-left: auto;
    }
}

html[data-theme="dark"]
.story-reporter-card {
    border-color: rgba(148, 163, 184, 0.24);
    background: rgba(30, 41, 59, 0.82);
}

html[data-theme="dark"]
.story-reporter-content h2 {
    color: #f8fafc;
}

html[data-theme="dark"]
.story-reporter-title,
html[data-theme="dark"]
.story-reporter-bio {
    color: #cbd5e1;
}

/* LIGHTHOUSE REPORTER CARDS END */
