/*
 * Three custom pieces — the timeline rail, the metrics strip and the project
 * sidebar. Everything else on these pages is stock Bootstrap 5 in the site's
 * existing dark theme, so colours come from Bootstrap's CSS variables rather
 * than from literals here.
 */

.resume-sections .nav-link.active {
    background-color: var(--bs-primary);
}

/* Hero ------------------------------------------------------------------ */

/*
 * The portrait is a cut-out: the PNG carries no background of its own, its
 * head nearly touches the top edge and its shoulders run off the bottom and
 * sides. The frame supplies the background the file is missing — otherwise
 * dark hair floats against the dark theme — and rounds the corners, which the
 * image itself cannot do while they are transparent. The file is 500px square,
 * so the cap below keeps it downscaled and sharp on high-density screens.
 */
.resume-photo-frame {
    width: min(100%, 20rem);
    margin-inline: auto;
    border: 1px solid var(--bs-border-color);
    border-radius: 1rem;
    overflow: hidden;
    background:
        radial-gradient(
            70% 60% at 50% 32%,
            rgba(var(--bs-emphasis-color-rgb), 0.12),
            transparent 70%
        ),
        var(--bs-tertiary-bg);
}

.resume-photo {
    display: block;
    width: 100%;
    height: auto;
}

.smaller {
    font-size: 0.75rem;
    line-height: 1.25;
}

/* Metrics strip --------------------------------------------------------- */

.resume-metric-value {
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

/* Tags ------------------------------------------------------------------ */

.resume-tag {
    font-weight: 400;
    color: var(--bs-body-color);
}

a.resume-tag:hover {
    border-color: var(--bs-primary) !important;
}

/* Threads --------------------------------------------------------------- */

.resume-threads summary {
    cursor: pointer;
}

.resume-threads details[open] summary {
    margin-bottom: 0.25rem;
}

/* Project sidebar ------------------------------------------------------- */

@media (min-width: 992px) {
    .resume-sidebar {
        position: sticky;
        top: 1rem;
        max-height: calc(100vh - 2rem);
        overflow-y: auto;
        border-left: 1px solid var(--bs-border-color);
        padding-left: 1rem;
    }
}

/* Timeline rail --------------------------------------------------------- */

.resume-timeline {
    position: relative;
    padding-left: 1.75rem;
}

.resume-timeline::before {
    content: "";
    position: absolute;
    left: 0.4rem;
    top: 0.4rem;
    bottom: 0.4rem;
    width: 2px;
    background-color: var(--bs-border-color);
}

.resume-timeline-entry {
    position: relative;
    padding-bottom: 1.5rem;
}

.resume-timeline-dot {
    position: absolute;
    left: -1.53rem;
    top: 0.45rem;
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 50%;
    background-color: var(--bs-secondary-color);
    border: 2px solid var(--bs-body-bg);
}

.resume-timeline-entry--milestone .resume-timeline-dot {
    left: -1.65rem;
    top: 0.35rem;
    width: 0.95rem;
    height: 0.95rem;
    background-color: var(--bs-primary);
}

.resume-timeline-entry--milestone > h2 {
    font-weight: 700;
}

/*
 * Motion is opt-in and added by timeline.js. Entries are visible without it,
 * so the page is complete with JavaScript disabled — and the script itself
 * declines to run under prefers-reduced-motion.
 */
.resume-timeline--animated .resume-timeline-entry {
    opacity: 0;
    transform: translateY(0.75rem);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.resume-timeline--animated .resume-timeline-entry.is-visible {
    opacity: 1;
    transform: none;
}
