/* ============================================================
   Mission history / timeline page
   ============================================================ */

.itihaas-page {
    color: var(--ink);
    background: var(--bg);
}

/* ---- phase section ---- */
.it-section { padding: clamp(40px, 6vw, 64px) 0; }
.it-section + .it-section { border-top: 1px solid var(--rule); }
.it-section > .hi-shell { max-width: 820px; }

.it-phase { margin-bottom: clamp(28px, 4.5vw, 42px); }
.it-phase .hi-kicker {
    margin-bottom: 6px;
    font-family: var(--font-latin);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .04em;
}
.it-phase h2 {
    margin: 0 0 8px;
    font-family: var(--font-head);
    font-size: clamp(1.5rem, 2.8vw, 2.1rem);
    color: var(--primary);
}
.it-phase p {
    margin: 0;
    max-width: 64ch;
    font-size: .92rem;
    line-height: 1.75;
    color: var(--ink-muted);
}

/* ---- timeline ---- */
.it-timeline {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0 0 0 4px;
}
.it-timeline::before {
    content: "";
    position: absolute;
    top: 14px;
    bottom: 14px;
    left: 6px;
    width: 2px;
    background: linear-gradient(180deg, var(--gold), rgba(185, 138, 52, .15));
}
.it-timeline--seva::before { background: linear-gradient(180deg, var(--primary), rgba(123, 42, 40, .12)); }

.it-event {
    position: relative;
    display: grid;
    grid-template-columns: 84px 1fr;
    column-gap: 24px;
    padding: clamp(14px, 2vw, 20px) 0 clamp(14px, 2vw, 20px) 30px;
}
.it-event::before {
    content: "";
    position: absolute;
    left: 0;
    top: clamp(18px, 2.4vw, 26px);
    width: 13px;
    height: 13px;
    border-radius: 999px;
    background: var(--gold);
    box-shadow: 0 0 0 5px var(--bg);
}
.it-timeline--seva .it-event::before { background: var(--primary); }

/* milestones with a photo get a larger ringed portrait marker on the
   line instead of the plain dot — a quiet way to show which chapters of
   the story are documented, without cluttering the undocumented ones */
.it-event--photo {
    padding-left: 96px;
    padding-block: clamp(18px, 2.6vw, 26px);
}
.it-event--photo::before { display: none; }

.it-event__thumb {
    position: absolute;
    left: -22px;
    top: clamp(10px, 1.6vw, 16px);
    z-index: 1;
    display: block;
    width: 60px;
    height: 60px;
    overflow: hidden;
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--bg), 0 8px 18px rgba(43, 33, 30, .16);
}
.it-timeline--seva .it-event__thumb {
    box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px rgba(123, 42, 40, .16), 0 8px 18px rgba(43, 33, 30, .16);
}
.it-timeline--spiritual-journey .it-event__thumb {
    box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px rgba(185, 138, 52, .22), 0 8px 18px rgba(43, 33, 30, .16);
}
.it-event__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.it-event__year {
    font-family: var(--font-latin);
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--primary);
}
.it-event--photo .it-event__year { padding-top: 2px; }
.it-event__body h3 {
    margin: 0;
    font-family: var(--font-head);
    font-size: 1.08rem;
    line-height: 1.4;
    color: var(--ink);
}
.it-event__body p {
    margin: 6px 0 0;
    font-size: .92rem;
    line-height: 1.7;
    color: var(--ink-body);
}

/* ---- closing ---- */
.it-closing { background: var(--bg-wash); }
.it-closing h2 {
    margin: 0 0 10px;
    font-family: var(--font-head);
    font-size: clamp(1.4rem, 2.6vw, 1.9rem);
    color: var(--primary);
}
.it-closing p {
    margin: 0 0 20px;
    max-width: 62ch;
    font-size: .98rem;
    line-height: 1.8;
    color: var(--ink-body);
}

@media (max-width: 520px) {
    .it-event {
        grid-template-columns: 1fr;
        row-gap: 2px;
        padding-left: 28px;
    }

    .it-event--photo {
        padding-left: 66px;
    }

    .it-event__thumb {
        left: -14px;
        width: 44px;
        height: 44px;
    }
}
