/* Timeline */

.lm-timeline-page {
    padding: 170px 0 90px;
    overflow: hidden;
}

.lm-timeline-page .lm-wrap {
    max-width: 1220px;
}

.lm-timeline-page .lm-trigger-header {
    max-width: 920px;
    margin: 0 auto 70px;
    text-align: left;
}

.lm-timeline-page h1 {
    margin: 0 0 12px;
    font-family: var(--lm-head);
    font-size: clamp(46px, 6vw, 78px);
    font-weight: 500;
    letter-spacing: .12em;
    line-height: 1.05;
    text-transform: uppercase;
    text-align: center;
    width: 100%;
}

.lm-timeline-page .lm-trigger-content {
    max-width: 760px;
    color: #d4ccd9;
    font-size: 17px;
    line-height: 1.7;
}

/* Year sections */

.lm-timeline-year {
    position: relative;
    margin: 0 0 84px;
}

.lm-timeline-year-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 46px;
}

.lm-timeline-year-header::before,
.lm-timeline-year-header::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--timeline-year-color)
    );
    opacity: .65;
}

.lm-timeline-year-header::after {
    background: linear-gradient(
        90deg,
        var(--timeline-year-color),
        transparent
    );
}

.lm-timeline-year-header h2 {
    position: relative;
    z-index: 2;
    margin: 0 26px;
    padding: 10px 24px;

    border: 1px solid color-mix(in srgb, var(--timeline-year-color) 70%, transparent);
    border-radius: 999px;

background:
    linear-gradient(
        180deg,
        color-mix(in srgb, var(--timeline-year-color) 56%, #ffffff 8%),
        color-mix(in srgb, var(--timeline-year-color) 32%, #000000 22%)
    );

    box-shadow:
        0 0 30px color-mix(in srgb, var(--timeline-year-color) 22%, transparent);

    color: #fff;

    font-family: var(--lm-head);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 500;
    letter-spacing: .18em;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
}

.lm-timeline-year-body {
    position: relative;
}

.lm-timeline-year-body::before {
    content: "";
    position: absolute;
    top: -22px;
    bottom: -44px;
    left: 50%;
    width: 2px;

    background:
        linear-gradient(
            180deg,
            transparent,
            var(--timeline-year-color) 8%,
            var(--timeline-year-color) 92%,
            transparent
        );

    transform: translateX(-50%);
    opacity: .55;
    box-shadow: 0 0 18px color-mix(in srgb, var(--timeline-year-color) 34%, transparent);
}

/* Month rows */

.lm-timeline-month {
    position: relative;
    margin: 0 0 52px;
}

.lm-timeline-month:last-child {
    margin-bottom: 0;
}

.lm-timeline-month-marker {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 18px;

    margin: 0 0 22px;
}

.lm-timeline-month-marker::before,
.lm-timeline-month-marker::after {
    content: "";
    height: 1px;
    background:
        linear-gradient(
            90deg,
            transparent,
            color-mix(in srgb, var(--timeline-year-color) 70%, transparent)
        );
}

.lm-timeline-month-marker::after {
    background:
        linear-gradient(
            90deg,
            color-mix(in srgb, var(--timeline-year-color) 70%, transparent),
            transparent
        );
}

.lm-timeline-month-marker span {
    position: relative;
    z-index: 2;

    min-width: 118px;
    padding: 8px 16px;

    border: 1px solid color-mix(in srgb, var(--timeline-year-color) 52%, transparent);
    border-radius: 999px;

background:
    linear-gradient(
        180deg,
        color-mix(in srgb, var(--timeline-year-color) 48%, #ffffff 6%),
        color-mix(in srgb, var(--timeline-year-color) 28%, #000000 18%)
    );

    box-shadow:
        0 0 20px color-mix(in srgb, var(--timeline-year-color) 20%, transparent);

    color: #fff;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: .18em;
    text-align: center;
    text-transform: uppercase;
}

.lm-timeline-month-marker span::after {
    content: "";
    position: absolute;
    left: 50%;
    top: calc(100% + 5px);

    width: 10px;
    height: 10px;

    border-radius: 50%;
    background: var(--timeline-year-color);

    transform: translateX(-50%);
    box-shadow: 0 0 22px var(--timeline-year-color);
}

.lm-timeline-month-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 210px minmax(0, 1fr);
    gap: 34px;
}

.lm-timeline-column {
    display: grid;
    gap: 14px;
    align-content: start;
}

.lm-timeline-column-start {
    grid-column: 1;
}

.lm-timeline-column-end {
    grid-column: 3;
}

/* Featured cards */

.lm-timeline-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 18px;
    align-items: start;

    min-height: 150px;

    padding: 22px 18px;

    border: 1px solid color-mix(in srgb, var(--timeline-year-color) 54%, transparent);
    border-radius: 8px;

    background:
        radial-gradient(circle at 100% 0, color-mix(in srgb, var(--timeline-year-color) 16%, transparent), transparent 44%),
        rgba(255, 255, 255, .025);

    box-shadow:
        0 18px 50px rgba(0, 0, 0, .28),
        0 0 26px color-mix(in srgb, var(--timeline-year-color) 12%, transparent);
}

.lm-timeline-card:hover {
    border-color: var(--timeline-year-color);
    box-shadow:
        0 20px 58px rgba(0, 0, 0, .34),
        0 0 34px color-mix(in srgb, var(--timeline-year-color) 22%, transparent);
}

.lm-timeline-cover {
    display: block;
}

.lm-timeline-cover img {
    display: block;
    width: 112px;
    height: auto;
    border-radius: 6px;
}

/* Text */

.lm-timeline-card-content {
    min-width: 0;
}

.lm-timeline-card h3,
.lm-timeline-end-content h3 {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.15;
}

.lm-timeline-card h3 a,
.lm-timeline-end-content h3 a {
    color: #fff;
    text-decoration: none;
}

.lm-timeline-card h3 a:hover,
.lm-timeline-end-content h3 a:hover {
    color: var(--timeline-year-color);
}

.lm-timeline-series {
    display: block;
    margin-bottom: 8px;
    color: var(--timeline-year-color);
    font-size: 14px;
    line-height: 1.3;
    text-decoration: none;
}

.lm-timeline-series:hover {
    color: #fff;
}

/* Date badge */

.lm-timeline-date {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    width: fit-content;

    margin: 10px 0 0;
    padding: 9px 13px;

    border: 1px solid color-mix(in srgb, var(--timeline-year-color) 58%, transparent);
    border-radius: 5px;

    background:
        linear-gradient(
            180deg,
            color-mix(in srgb, var(--timeline-year-color) 14%, transparent),
            rgba(255,255,255,.018)
        );

    color: #f4eef8;

    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.lm-timeline-date-icon {
    color: var(--timeline-year-color);
    font-size: 14px;
    line-height: 1;
}

.lm-timeline-date-content {
    display: inline-flex;
    gap: 5px;
    align-items: center;
}

.lm-timeline-date-content span {
    color: #d8d0de;
}

/* Compact start/end items */

.lm-timeline-column-end,
.lm-timeline-column-start {
    gap: 14px;
}

.lm-timeline-end-item {
    padding: 14px 16px;

    border: 1px solid color-mix(in srgb, var(--timeline-year-color) 42%, transparent);
    border-radius: 8px;

    background:
        radial-gradient(circle at 100% 0, color-mix(in srgb, var(--timeline-year-color) 10%, transparent), transparent 42%),
        rgba(255,255,255,.02);

    box-shadow:
        0 14px 42px rgba(0,0,0,.22),
        0 0 20px color-mix(in srgb, var(--timeline-year-color) 8%, transparent);
}

.lm-timeline-end-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-width: 0;
}

.lm-timeline-end-meta {
    min-width: 0;
}

.lm-timeline-end-content h3 {
    margin: 0 0 4px;
    font-size: 20px;
}

.lm-timeline-end-content .lm-timeline-series {
    margin: 0;
}

.lm-timeline-end-content .lm-timeline-date {
    flex-shrink: 0;
    margin: 0;
}

/* Mobile */

@media (max-width: 900px) {
    .lm-timeline-page {
        padding-top: 130px;
    }

    .lm-timeline-page .lm-trigger-header {
        margin-bottom: 44px;
    }

    .lm-timeline-year {
        margin-bottom: 60px;
    }

    .lm-timeline-year-body::before {
        left: 0;
    }

    .lm-timeline-month-marker {
        grid-template-columns: auto minmax(0, 1fr);
        justify-content: start;
    }

    .lm-timeline-month-marker::before {
        display: none;
    }

    .lm-timeline-month-marker::after {
        background:
            linear-gradient(
                90deg,
                color-mix(in srgb, var(--timeline-year-color) 70%, transparent),
                transparent
            );
    }

    .lm-timeline-month-marker span::after {
        left: -24px;
        top: 50%;
        transform: translateY(-50%);
    }

    .lm-timeline-month-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        padding-left: 24px;
    }

    .lm-timeline-column-start,
    .lm-timeline-column-end {
        grid-column: 1;
    }

    .lm-timeline-card {
        grid-template-columns: 92px minmax(0, 1fr);
    }

    .lm-timeline-cover img {
        width: 92px;
    }

    .lm-timeline-end-content {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 520px) {
    .lm-timeline-card {
        grid-template-columns: 1fr;
    }

    .lm-timeline-cover img {
        width: 100%;
        max-width: 160px;
    }
}

.lm-timeline-page .lm-trigger-header h1::after {
    content: "✦";
    display: block;
    width: min(520px, 86%);
    margin: 22px auto 0;
    color: var(--lm-accent);
    font-size: 18px;
    line-height: 1;
    background: linear-gradient(
        90deg,
        transparent,
        var(--lm-line-strong),
        transparent
    );
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 1px;
    text-shadow: 0 0 18px var(--lm-glow);
}

.lm-trigger-header h1 {
  position: relative;
  padding-bottom: 50px;
}

.lm-timeline-page .lm-trigger-content p {
    max-width: 940px;
    margin: 0 auto 16px;
    color: #d4ccd9;
    font-size: 17px;
    line-height: 1.7;
    text-align: center;
}

.lm-timeline-page .lm-trigger-content {
    max-width: 1180px;
    margin: 0 auto;
}