/* History detail: dark archival dossier treatment for the right-hand facts panel.
   Loaded after event.css/history-detail.css. */

.event-fact-panel {
    position: relative;
    overflow: hidden;
    padding: clamp(27px, 3.4vw, 39px);
    background:
        radial-gradient(circle at 88% 8%, rgba(244,212,124,.10), transparent 30%),
        radial-gradient(circle at 8% 92%, rgba(198,156,74,.07), transparent 34%),
        linear-gradient(155deg, #1a2940 0%, #101827 62%, #0c1422 100%);
    border: 1px solid rgba(244,212,124,.48);
    border-top: 4px solid #c69c4a;
    border-radius: 14px;
    box-shadow:
        0 16px 34px rgba(16,24,39,.28),
        inset 0 0 0 1px rgba(255,255,255,.025);
    color: #f7edd0;
}

.event-fact-panel::after {
    content: "";
    position: absolute;
    right: -38px;
    bottom: -46px;
    width: 160px;
    height: 160px;
    border: 1px solid rgba(244,212,124,.09);
    border-radius: 50%;
    box-shadow:
        0 0 0 14px rgba(244,212,124,.035),
        0 0 0 30px rgba(244,212,124,.02);
    pointer-events: none;
}

.event-panel-heading {
    position: relative;
    z-index: 1;
    gap: 16px;
    padding-bottom: 21px;
    border-bottom: 1px solid rgba(244,212,124,.28);
}

.event-panel-heading > span {
    width: 56px;
    height: 56px;
    border: 1px solid rgba(244,212,124,.48);
    background: linear-gradient(145deg, rgba(244,212,124,.16), rgba(255,255,255,.025));
    color: #f4d47c;
    font-size: 26px;
    box-shadow:
        inset 0 0 0 4px rgba(244,212,124,.035),
        0 5px 16px rgba(0,0,0,.17);
}

.event-panel-heading small {
    margin-bottom: 6px;
    font-size: clamp(13px, 1.15vw, 15px);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 1.7px;
    color: #e3bc63;
}

.event-panel-heading h2 {
    font-size: clamp(32px, 3.35vw, 40px);
    line-height: 1.07;
    color: #fff1bd;
    text-shadow: 0 2px 12px rgba(0,0,0,.2);
}

/* One joined archival ledger instead of three floating form-style boxes. */
.event-meta-grid {
    position: relative;
    z-index: 1;
    gap: 0;
    margin-top: 23px;
    overflow: hidden;
    border: 1px solid rgba(244,212,124,.24);
    border-radius: 10px;
    background: rgba(255,255,255,.035);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

.event-meta-card {
    min-width: 0;
    padding: 17px 18px 18px;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.event-meta-card:first-child {
    grid-column: 1 / -1;
    padding-top: 19px;
    padding-bottom: 19px;
    border-bottom: 1px solid rgba(244,212,124,.18);
    background: linear-gradient(90deg, rgba(244,212,124,.08), rgba(255,255,255,.015));
}

.event-meta-card:nth-child(3) {
    border-left: 1px solid rgba(244,212,124,.18);
}

.event-meta-card strong {
    margin-bottom: 7px;
    font-size: 11.5px;
    line-height: 1.25;
    letter-spacing: 1.3px;
    color: #dbae50;
}

.event-meta-card span {
    font-family: Georgia, serif;
    font-size: clamp(17px, 1.5vw, 19px);
    line-height: 1.45;
    color: #f8edce;
}

/* Verified facts read as a highlighted note inside the dark dossier. */
.event-quick-facts {
    position: relative;
    z-index: 1;
    margin-top: 23px;
    padding: 20px 21px 19px 23px;
    border: 0;
    border-left: 4px solid #d3a341;
    border-radius: 0 9px 9px 0;
    background: linear-gradient(90deg, rgba(244,212,124,.10), rgba(255,255,255,.025));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

.event-quick-facts h3 {
    margin: 0 0 14px;
    font-size: clamp(17px, 1.4vw, 19px);
    line-height: 1.35;
    letter-spacing: .2px;
    color: #f4d47c;
}

.event-quick-facts ul {
    gap: 12px;
}

.event-quick-facts li {
    padding-left: 26px;
    font-size: clamp(15.5px, 1.2vw, 17px);
    line-height: 1.62;
    color: #f1e4c2;
}

.event-quick-facts li::before {
    top: 2px;
    color: #e0b451;
    font-size: 13px;
}

/* This was previously 10px and too small to work as a visible section label. */
.event-summary-kicker {
    margin-bottom: 13px;
    font-size: clamp(13px, 1.2vw, 15px);
    line-height: 1.4;
    letter-spacing: 1.55px;
    color: #8d5b1d;
}

@media (max-width: 700px) {
    .event-fact-panel {
        padding: 24px 18px 25px;
    }

    .event-panel-heading {
        gap: 13px;
        padding-bottom: 18px;
    }

    .event-panel-heading > span {
        width: 49px;
        height: 49px;
        font-size: 22px;
    }

    .event-panel-heading small {
        font-size: 13px;
        letter-spacing: 1.4px;
    }

    .event-panel-heading h2 {
        font-size: clamp(30px, 9vw, 36px);
    }

    .event-meta-grid {
        grid-template-columns: 1fr;
        margin-top: 19px;
    }

    .event-meta-card,
    .event-meta-card:first-child {
        grid-column: auto;
        padding: 16px;
        background: transparent;
    }

    .event-meta-card + .event-meta-card {
        border-top: 1px solid rgba(244,212,124,.16);
    }

    .event-meta-card:first-child {
        border-bottom: 0;
    }

    .event-meta-card:nth-child(3) {
        border-left: 0;
    }

    .event-quick-facts {
        margin-top: 19px;
        padding: 18px 16px 18px 19px;
    }

    .event-quick-facts li {
        font-size: 15.5px;
    }

    .event-summary-kicker {
        font-size: 13px;
        letter-spacing: 1.25px;
    }
}