﻿

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--cream);
    color: var(--navy);
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 400;
    min-height: 100vh;
    font-size: 18px
}

/* ── Page header ─────────────────────────────── */
.page-header {
    background: var(--cream);
    padding: 48px 24px 56px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .page-header::before {
        content: '';
        position: absolute;
        inset: 0;
        /*   background: radial-gradient(ellipse 60% 80% at 20% 50%, rgba(198,97,63,.18) 0%, transparent 70%), radial-gradient(ellipse 50% 70% at 80% 50%, rgba(212,168,67,.12) 0%, transparent 70%); */
    }

    .page-header h1 {
        font-family: 'Playfair Display', serif;
        font-size: clamp(2rem, 5vw, 3.4rem);
        font-weight: 900;
        color: #fff;
        position: relative;
        letter-spacing: -.5px;
    }

        .page-header h1 span {
            color: var(--gold);
        }

    .page-header p {
        margin-top: 10px;
        color: rgba(255,255,255,.65);
        font-size: 1.3rem;
        font-weight: 300;
        position: relative;
    }

.page-header2 {
    background: var(--cream);
    padding: 48px 24px 56px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .page-header2::before {
        content: '';
        position: absolute;
        inset: 0;
        /*   background: radial-gradient(ellipse 60% 80% at 20% 50%, rgba(198,97,63,.18) 0%, transparent 70%), radial-gradient(ellipse 50% 70% at 80% 50%, rgba(212,168,67,.12) 0%, transparent 70%); */
    }

    .page-header2 h1 {
        font-family: 'Playfair Display', serif;
        font-size: clamp(2rem, 5vw, 3.4rem);
        font-weight: 900;
        color: #fff;
        position: relative;
        letter-spacing: -.5px;
    }

        .page-header2 h1 span {
            color: var(--gold);
        }

    .page-header2 p {
        margin-top: 10px;
        color: rgba(255,255,255,.65);
        font-size: 1.3rem;
        font-weight: 300;
        position: relative;
    }

.header-rule {
    width: 60px;
    height: 3px;
    background: var(--rust);
    margin: 16px auto 0;
    border-radius: 2px;
    position: relative;
}

/* ── Legend ──────────────────────────────────── */
        .legend {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    padding: 20px 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--slate);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.legend-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

/* ── Timeline wrapper ────────────────────────── */
.timeline-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 56px 24px 80px;
}

/* The vertical spine */
.timeline {
    position: relative;
}

    .timeline::before {
        content: '';
        position: absolute;
        left: 50%;
        top: 0;
        bottom: 0;
        width: 3px;
        transform: translateX(-50%);
        background: linear-gradient(to bottom, transparent 0%, var(--navy) 6%, var(--navy) 94%, transparent 100%);
        border-radius: 2px;
    }

/* ── Month band ──────────────────────────────── */
.month-band {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0 8px;
    position: relative;
    z-index: 2;
}

.month-band-inner {
    background: var(--navy);
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 28px;
    border-radius: 20px;
    box-shadow: 0 3px 14px rgba(10,31,60,.22);
}

    .month-band-inner.range {
        background: var(--slate);
    }

/* ── Timeline item ───────────────────────────── */
.tl-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    position: relative;
    opacity: 0;
    animation: fadeUp .5s ease forwards;
}

    /* alternating sides */
    .tl-item.left {
        flex-direction: row-reverse;
    }

    .tl-item.right {
        flex-direction: row;
    }

/* The dot on the spine */
.tl-dot {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px currentColor;
    position: relative;
    z-index: 3;
    margin: 0 -9px; /* overlap spine */
    align-self: center;
}

/* Card */
.tl-card {
    flex: 1;
    background: #fff;
    border-radius: 10px;
    padding: 16px 20px;
    box-shadow: 0 2px 12px rgba(10,31,60,.08);
    border-left: 4px solid currentColor;
    max-width: calc(50% - 24px);
    position: relative;
    transition: transform .2s, box-shadow .2s;
}

.tl-item.left .tl-card {
    margin-right: 24px;
    border-left: none;
    border-right: 4px solid currentColor;
    text-align: right;
}

.tl-item.right .tl-card {
    margin-left: 24px;
}

.tl-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(10,31,60,.13);
}

/* Arrow connector */
.tl-card::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: 7px solid transparent;
}

.tl-item.right .tl-card::after {
    left: -14px;
    border-right-color: currentColor;
}

.tl-item.left .tl-card::after {
    right: -14px;
    border-left-color: currentColor;
}

.tl-date {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.tl-desc {
    font-size: 1.3rem;
    line-height: 1.55;
    color: var(--slate);
}

.tl-tag {
    display: inline-block;
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    padding: 2px 8px;
    border-radius: 20px;
    margin-bottom: 6px;
    color: #fff;
    background: currentColor;
    opacity: .85;
}

/* ── Color categories ─────────────────────────── */
.cat-deadline {
    color: #c0392b;
}

.cat-notice {
    color: #2563ab;
}

.cat-hearing {
    color: #6d28d9;
}

.cat-billing {
    color: var(--rust);
}

.cat-signup {
    color: #059669;
}

/* ── Stagger animation delays ─────────────────── */
.tl-item:nth-child(1) {
    animation-delay: .05s
}

.tl-item:nth-child(2) {
    animation-delay: .1s
}

.tl-item:nth-child(3) {
    animation-delay: .15s
}

.tl-item:nth-child(4) {
    animation-delay: .2s
}

.tl-item:nth-child(5) {
    animation-delay: .25s
}

.tl-item:nth-child(6) {
    animation-delay: .3s
}

.tl-item:nth-child(7) {
    animation-delay: .35s
}

.tl-item:nth-child(8) {
    animation-delay: .4s
}

.tl-item:nth-child(9) {
    animation-delay: .45s
}

.tl-item:nth-child(10) {
    animation-delay: .5s
}

.tl-item:nth-child(11) {
    animation-delay: .55s
}

.tl-item:nth-child(12) {
    animation-delay: .6s
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── End cap ─────────────────────────────────── */
.timeline-end {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.timeline-end-badge {
    background: var(--rust);
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    padding: 8px 22px;
    border-radius: 20px;
    letter-spacing: 1px;
    box-shadow: 0 3px 12px rgba(198,97,63,.35);
}

/* ── Active / current stage ──────────────────── */
.tl-item.is-active .tl-card {
    box-shadow: 0 0 0 3px var(--gold), 0 8px 28px rgba(212,168,67,.3);
    transform: translateY(-2px) scale(1.02);
    background: #fffdf5;
    z-index: 5;
}

.tl-item.is-active .tl-dot {
    width: 24px;
    height: 24px;
    margin: 0 -12px;
    box-shadow: 0 0 0 3px var(--gold), 0 0 0 6px rgba(212,168,67,.25);
    animation: pulse-dot 2s ease-in-out infinite;
}

.tl-item.is-past .tl-card {
    opacity: .45;
    filter: grayscale(.4);
}

.tl-item.is-past .tl-dot {
    opacity: .4;
}

/* "You are here" badge injected by JS */
.now-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--gold);
    color: var(--navy);
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .8px;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 7px;
}

    .now-badge::before {
        content: '';
        width: 7px;
        height: 7px;
        background: var(--navy);
        border-radius: 50%;
        animation: pulse-dot 1.4s ease-in-out infinite;
    }

/* Today banner injected above current stage */
.today-marker {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0 4px;
    position: relative;
    z-index: 10;
}

.today-marker-line {
    flex: 1;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
}

.today-marker-label {
    background: var(--gold);
    color: var(--navy);
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    white-space: nowrap;
    letter-spacing: .5px;
    box-shadow: 0 2px 10px rgba(212,168,67,.4);
}

@keyframes pulse-dot {
    0%, 100% {
        box-shadow: 0 0 0 3px var(--gold), 0 0 0 6px rgba(212,168,67,.25);
    }

    50% {
        box-shadow: 0 0 0 3px var(--gold), 0 0 0 10px rgba(212,168,67,.08);
    }
}

/* ── Responsive: single column on mobile ─────── */
@media (max-width: 620px) {
    .timeline::before {
        left: 18px;
    }

    .tl-item.left,
    .tl-item.right {
        flex-direction: row;
    }

        .tl-item.left .tl-card {
            margin-right: 0;
            margin-left: 20px;
            border-right: none;
            border-left: 4px solid currentColor;
            text-align: left;
        }

            .tl-item.left .tl-card::after {
                right: auto;
                left: -14px;
                border-left-color: transparent;
                border-right-color: currentColor;
            }

    .tl-dot {
        margin: 0 8px 0 9px;
    }

    .tl-card {
        max-width: 100%;
    }
}
