﻿.timeline {
}

.phase {
    margin-right: 20px;
}

.phase p {
    margin-bottom: 0;
}

.phase-title {
    text-align: left;
    border-bottom: 1px solid #666;
}

.milestones {
    list-style: none;
    padding-left: 25px;
}

.milestones > li {
    position: relative;
}

.milestone {
    box-sizing: content-box;
    position: relative;
    writing-mode: vertical-rl;
    -ms-writing-mode: tb-rl;
    transform-origin: top right;
    transform: rotate(-50deg);
    padding-left: 5px;
}

.period {
    font-weight: 400;   
}

.milestone .title {
    font-size: .9em
}

.milestone:not(:first-child) {
    padding-left: 35px;
}

.milestone > * {
    margin: 0;
}

.marker {
    position: absolute;
    top: 4px;
    left: -15px;
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 100%;
    border: 2px solid #006671;
    background: #999;
}

@media all and (-ms-high-contrast:none) {

    .phase-title {
        max-width: 500px;
    }

    .milestones {
        max-height: 275px;
    }

    .milestone:not(:first-child) {
        padding-left: 55px;
    }

    .period {
        font-weight: bold;
    }
}

.phase:first-child {
    margin-left: 0
}

.phase:last-child {
    margin-right: 0;
}