
/* Reel News - Public Story History Page */

/* Introductory text beneath the page heading. */
.story-history .history-description {
    color: #c9ccd3;
    margin-bottom: 24px;
}

/* Arrange revision cards vertically with consistent spacing. */
.story-history .revision-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Individual published revision card. */
.story-history .revision-card {
    background-color: #0f1528;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 20px;
}

/* Align the revision number and latest version indicator. */
.story-history .revision-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

/* Override the default detail page heading margins. */
.story-history .revision-header h2 {
    font-size: 18px;
    margin: 0;
}

/* Identify the currently published revision. */
.story-history .revision-current {
    display: inline-block;
    background-color: rgba(74, 222, 128, 0.12);
    color: #86efac;
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
}

/* Revision headline. */
.story-history .revision-headline {
    color: #fff;
    font-size: 22px;
    line-height: 1.35;
    margin: 16px 0 8px;
    overflow-wrap: anywhere;
}

/* Preview of the revision's summary. */
.story-history .revision-summary {
    color: #d5d9e0;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 16px;
    overflow-wrap: anywhere;
}

/* Link to the full revision detail page. */
.story-history .revision-link {
    display: inline-block;
    color: #0866d9;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

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

/* Provide visible keyboard navigation feedback. */
.story-history a:focus-visible {
    outline: 2px solid #0866d9;
    outline-offset: 4px;
    border-radius: 2px;
}

/* Adjust card spacing and typography on smaller screens. */
@media (max-width: 600px) {
    .story-history .revision-card {
        padding: 16px;
    }

    .story-history .revision-headline {
        font-size: 20px;
    }

    .story-history .revision-summary {
        font-size: 14px;
    }
}
