/* Custom styles for the WAL (write-ahead log) page: years on the left,
   the events of each year on the right. */

.wal {
    padding-bottom: 4rem;
}

.wal-year {
    display: grid;
    grid-template-columns: 7rem 1fr;
}

.wal-year-label {
    font-size: 2rem;
    line-height: 1.2;
    color: #c5050c;
    margin: 0;
    padding-top: 1.25rem;
}

/* The vertical line runs down the left of the events; each event is a
   bullet point. */
.wal-events {
    list-style: disc;
    margin: 0;
    padding: 1.5rem 0 1.5rem 3rem;
    border-left: 2px solid #e4e4e4;
}

.wal-events li {
    font-size: 1.125rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.wal-events li:last-child {
    margin-bottom: 0;
}

.wal-events a {
    border-bottom: 1px solid currentColor;
}

.wal-events a:hover,
.wal-events a:focus {
    color: #c5050c;
}

.wal-events em {
    font-style: italic;
}

/* Note shown beneath the timeline */
.wal-note {
    font-size: 1.125rem;
    line-height: 1.5;
    font-style: italic;
    margin: 2.5rem 0 0 0;
}

/* On small screens the year sits above its events */
@media screen and (max-width: 40em) {
    .wal-year {
        display: block;
    }

    .wal-year-label {
        padding: 1.5rem 0 0.75rem 0;
    }

    .wal-events {
        padding-top: 0.5rem;
        padding-left: 2.5rem;
    }
}
