/*
 * Campaign Chronicle surface
 *
 * Ownership: docs/architecture/css-ownership.md
 * Loaded after the Journal surface and before other surface-specific CSS.
 */

.chat-chronicle-card {
    width: min(100%, 900px);
    margin: 0 auto;
    color: #edf2ec;
}

.chat-chronicle-card__header {
    display: grid;
    gap: 6px;
    padding: 4px 0 26px;
    border-bottom: 1px solid rgba(218, 146, 88, 0.2);
}

.chat-chronicle-card__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    color: #da9258;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

.chat-chronicle-card__header h3 {
    margin: 0;
    color: #edf2ec;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.55rem, 2.4vw, 2.15rem);
    line-height: 1.18;
}

.chat-chronicle-card__header p {
    max-width: 660px;
    margin: 0;
    color: #9eb0ad;
    font-size: 0.88rem;
    line-height: 1.5;
}

.chat-chronicle-list {
    display: grid;
    gap: 0;
}

.chat-chronicle-entry {
    position: relative;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    column-gap: 18px;
    padding: 26px 0;
    border-bottom: 1px solid rgba(118, 174, 164, 0.12);
}

.chat-chronicle-entry--milestone {
    isolation: isolate;
}

.chat-chronicle-entry__marker {
    grid-row: 1 / span 2;
    position: relative;
    display: flex;
    justify-content: center;
}

.chat-chronicle-entry__marker::after {
    content: '';
    position: absolute;
    top: 14px;
    bottom: -27px;
    width: 1px;
    background: rgba(218, 146, 88, 0.22);
}

.chat-chronicle-entry:last-child .chat-chronicle-entry__marker::after {
    display: none;
}

.chat-chronicle-entry__marker span {
    position: relative;
    z-index: 1;
    width: 9px;
    height: 9px;
    margin-top: 4px;
    border: 2px solid #da9258;
    border-radius: 50%;
    background: #0e1b1e;
}

.chat-chronicle-entry__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    min-width: 0;
    margin-bottom: 10px;
}

.chat-chronicle-entry__title {
    min-width: 0;
    color: #edf2ec;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.05rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.chat-chronicle-entry__time {
    flex: 0 0 auto;
    color: #7f9692;
    font-size: 0.7rem;
    white-space: nowrap;
}

.chat-chronicle-entry__content {
    min-width: 0;
    color: #c5d0cd;
}

.chat-chronicle-entry__content p:last-child {
    margin-bottom: 0;
}

.chat-chronicle-entry__summary {
    margin: 0;
    color: #d7dfdc;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.94rem;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.chat-chronicle-entry__consequence {
    display: grid;
    gap: 4px;
    margin: 14px 0 0;
    padding-left: 14px;
    border-left: 2px solid rgba(99, 170, 160, 0.46);
    color: #aebdba;
    font-size: 0.82rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.chat-chronicle-entry__consequence strong {
    color: #63aaa0;
    font-size: 0.66rem;
    text-transform: uppercase;
}

.chat-chronicle-empty {
    margin: 24px 0 0;
    padding: 18px;
    border: 1px dashed rgba(218, 146, 88, 0.24);
    border-radius: 6px;
    color: #9eb0ad;
    background: rgba(14, 27, 30, 0.28);
    font-size: 0.86rem;
    line-height: 1.5;
}

@media (max-width: 680px) {
    .chat-chronicle-card__header {
        padding-bottom: 20px;
    }

    .chat-chronicle-entry {
        grid-template-columns: 18px minmax(0, 1fr);
        column-gap: 12px;
        padding: 22px 0;
    }

    .chat-chronicle-entry__header {
        display: grid;
        gap: 4px;
    }

    .chat-chronicle-entry__time {
        white-space: normal;
    }

    .chat-chronicle-entry__summary {
        font-size: 0.9rem;
    }
}
