﻿/* =========================================================
   Museum Odense Samlinger - reusable journey components
   ========================================================= */

.theme-page .journey-overview,
.theme-page .journey-detail,
.theme-page .journey-spotlight,
.theme-page .journey-list {
    margin-top: clamp(90px, 10vw, 160px);
    margin-bottom: clamp(90px, 10vw, 160px);
}

.theme-page .journey-overview__header,
.theme-page .journey-list__header {
    max-width: 900px;
    margin-bottom: 60px;
}

    .theme-page .journey-overview__header h2,
    .theme-page .journey-list__header h2,
    .theme-page .journey-detail__copy h2,
    .theme-page .journey-spotlight__copy h2 {
        margin: 8px 0 22px;
        font-size: clamp(48px, 6vw, 86px);
        font-weight: 400;
        line-height: .95;
        letter-spacing: -.04em;
    }

    .theme-page .journey-overview__header > p:not(.eyebrow),
    .theme-page .journey-list__header > p:not(.eyebrow),
    .theme-page .journey-detail__copy > p,
    .theme-page .journey-spotlight__copy > p {
        max-width: 740px;
        color: var(--muted);
        font-size: 17px;
        line-height: 1.6;
    }

/* Journey overview */

.theme-page .journey-overview__timeline {
    display: flex;
    overflow-x: auto;
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--ink);
    scrollbar-width: thin;
}

.theme-page .journey-overview__journey {
    flex: 0 0 96px;
    min-height: 78px;
    padding: 16px 13px;
    border: 0;
    border-right: 1px solid var(--line);
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

    .theme-page .journey-overview__journey strong,
    .theme-page .journey-overview__journey span {
        display: block;
    }

    .theme-page .journey-overview__journey span {
        margin-top: 5px;
        color: var(--muted);
        font-size: 10px;
    }

    .theme-page .journey-overview__journey[aria-pressed="true"] {
        background: var(--ink);
        color: var(--paper);
    }

        .theme-page .journey-overview__journey[aria-pressed="true"] span {
            color: rgba(255,255,255,.7);
        }

.theme-page .journey-weight--primary {
    font-weight: 600;
}

.theme-page .journey-overview__stage {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, .65fr);
    min-height: 610px;
    border-bottom: 1px solid var(--ink);
}

.theme-page .journey-overview__map,
.theme-page .journey-route-map__canvas {
    min-height: 560px;
    background: #dedbd2;
}

.theme-page .journey-overview__summary {
    padding: clamp(30px, 4vw, 56px);
    border-left: 1px solid var(--ink);
}

    .theme-page .journey-overview__summary h3 {
        margin: 8px 0 18px;
        font-family: "Newsreader", Georgia, serif;
        font-size: clamp(32px, 4vw, 54px);
        font-weight: 400;
        line-height: 1;
    }

    .theme-page .journey-overview__summary > p:not(.eyebrow) {
        line-height: 1.55;
    }

.theme-page .journey-overview__countries {
    margin-top: 28px;
    color: var(--muted);
    font-size: 12px;
}

/* Journey detail / spotlight */

.theme-page .journey-detail,
.theme-page .journey-spotlight {
    display: grid;
    grid-template-columns: minmax(290px, .7fr) minmax(0, 1.3fr);
    gap: clamp(40px, 7vw, 110px);
    align-items: start;
}

.theme-page .journey-detail__facts {
    display: grid;
    gap: 12px;
    margin-top: 34px;
    padding-top: 18px;
    border-top: 1px solid var(--ink);
    font-size: 12px;
}

    .theme-page .journey-detail__facts > span {
        display: grid;
        grid-template-columns: 100px 1fr;
        gap: 20px;
    }

.theme-page .journey-route-map,
.theme-page .journey-detail__map,
.theme-page .journey-spotlight__map {
    min-width: 0;
}

.theme-page .journey-stops {
    grid-column: 1 / -1;
    margin: 35px 0 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--ink);
}

    .theme-page .journey-stops li {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 30px;
        padding: 15px 0;
        border-bottom: 1px solid var(--line);
    }

        .theme-page .journey-stops li > div {
            display: flex;
            gap: 20px;
        }

    .theme-page .journey-stops span,
    .theme-page .journey-stops small,
    .theme-page .journey-spotlight__route {
        color: var(--muted);
    }

.theme-page .journey-spotlight__route {
    margin-top: 25px;
    padding-top: 16px;
    border-top: 1px solid var(--ink);
    font-size: 12px;
    line-height: 1.65;
}

/* Transport evolution */

.theme-page .transport-evolution__scroll {
    overflow-x: auto;
}

.theme-page .transport-evolution__matrix {
    width: 100%;
    min-width: 780px;
    border-collapse: collapse;
}

    .theme-page .transport-evolution__matrix th,
    .theme-page .transport-evolution__matrix td {
        padding: 16px 14px;
        border-bottom: 1px solid var(--line);
        text-align: center;
        font-weight: 400;
    }

    .theme-page .transport-evolution__matrix thead th {
        vertical-align: bottom;
    }

        .theme-page .transport-evolution__matrix thead th:first-child,
        .theme-page .transport-evolution__matrix tbody th {
            text-align: left;
        }

    .theme-page .transport-evolution__matrix thead strong,
    .theme-page .transport-evolution__matrix thead span {
        display: block;
    }

    .theme-page .transport-evolution__matrix thead span {
        max-width: 160px;
        margin: 5px auto 0;
        color: var(--muted);
        font-size: 10px;
        line-height: 1.25;
    }

    .theme-page .transport-evolution__matrix td span {
        font-size: 18px;
    }

/* Journey list */

.theme-page .journey-list__decade {
    margin-top: 55px;
}

    .theme-page .journey-list__decade > h3 {
        margin: 0 0 14px;
        color: var(--muted);
        font-size: 12px;
        font-weight: 600;
        letter-spacing: .08em;
        text-transform: uppercase;
    }

.theme-page .journey-list__items {
    border-top: 1px solid var(--ink);
}

.theme-page .journey-list__item {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) 220px;
    gap: 30px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}

.theme-page .journey-list__date strong,
.theme-page .journey-list__date span {
    display: block;
}

.theme-page .journey-list__date span,
.theme-page .journey-list__body > p,
.theme-page .journey-list__dates,
.theme-page .journey-list__description {
    color: var(--muted);
    font-size: 11px;
}

.theme-page .journey-list__body h4 {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 500;
}

.theme-page .journey-list__body p {
    margin: 0;
}

.theme-page .journey-list__description {
    margin-top: 8px !important;
}

.theme-page .journey-list__dates {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Leaflet harmonisation */

.theme-page .leaflet-container {
    font: inherit;
    background: #dedbd2;
}

.theme-page .leaflet-control-attribution {
    font-size: 9px;
}

@media (max-width: 900px) {
    .theme-page .journey-overview__stage,
    .theme-page .journey-detail,
    .theme-page .journey-spotlight {
        grid-template-columns: 1fr;
    }

    .theme-page .journey-overview__summary {
        border-top: 1px solid var(--ink);
        border-left: 0;
    }

    .theme-page .journey-list__item {
        grid-template-columns: 110px 1fr;
    }

    .theme-page .journey-list__dates {
        grid-column: 2;
        justify-content: flex-start;
    }
}

@media (max-width: 600px) {
    .theme-page .journey-list__item {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .theme-page .journey-list__dates {
        grid-column: 1;
    }

    .theme-page .journey-overview__map,
    .theme-page .journey-route-map__canvas {
        min-height: 420px;
    }
}

/* Journey duration timeline */

.theme-page .journey-duration {
    margin: clamp(90px, 11vw, 170px) 0;
}

.theme-page .journey-duration__header {
    max-width: 850px;
    margin-bottom: clamp(40px, 6vw, 80px);
}

    .theme-page .journey-duration__header h2 {
        margin: 0 0 24px;
        font-size: clamp(42px, 6vw, 84px);
        font-weight: 400;
        line-height: .96;
        letter-spacing: -.045em;
    }

.theme-page .journey-duration__lead {
    max-width: 760px;
    font-family: "Newsreader", Georgia, serif;
    font-size: clamp(19px, 2vw, 27px);
    line-height: 1.4;
}

.theme-page .journey-duration__visual {
    border-top: 1px solid var(--ink);
}

/* The year axis and every journey row use exactly the same three columns. */
.theme-page .journey-duration__axis,
.theme-page .journey-duration__row {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr) minmax(220px, .7fr);
    gap: 20px;
}

.theme-page .journey-duration__axis {
    height: 50px;
    border-bottom: 1px solid var(--line);
}

.theme-page .journey-duration__axis-track {
    position: relative;
    height: 100%;
}

    .theme-page .journey-duration__axis-track span {
        position: absolute;
        left: var(--axis-position);
        bottom: 10px;
        transform: translateX(-50%);
        color: var(--muted);
        font-size: 10px;
    }

.theme-page .journey-duration__rows {
    width: 100%;
}

.theme-page .journey-duration__row {
    align-items: center;
    min-height: 52px;
    border-bottom: 1px solid var(--line);
}

.theme-page .journey-duration__label {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

    .theme-page .journey-duration__label strong {
        font-weight: 500;
    }

    .theme-page .journey-duration__label span,
    .theme-page .journey-duration__countries {
        color: var(--muted);
        font-size: 10px;
    }

.theme-page .journey-duration__track {
    position: relative;
    height: 20px;
}

.theme-page .journey-duration__bar {
    position: absolute;
    top: 6px;
    left: var(--journey-left);
    width: var(--journey-width);
    min-width: 3px;
    height: 8px;
    background: var(--ink);
}

.theme-page .journey-duration__row.journey-weight--primary
.journey-duration__bar {
    top: 3px;
    height: 14px;
}

.theme-page .journey-duration__row.journey-weight--primary
.journey-duration__label strong {
    font-weight: 700;
}

.theme-page .journey-duration__note {
    margin-top: 18px;
    color: var(--muted);
    font-size: 10px;
}

@media (max-width: 900px) {
    .theme-page .journey-duration__visual {
        overflow-x: auto;
    }

    .theme-page .journey-duration__axis,
    .theme-page .journey-duration__rows {
        min-width: 900px;
    }
}

.theme-page .transport-evolution {
    margin: clamp(90px, 11vw, 170px) 0;
}

.theme-page .transport-evolution__matrix {
    border-top: 1px solid var(--ink);
}

    .theme-page .transport-evolution__matrix thead th {
        padding-top: 22px;
        padding-bottom: 22px;
    }

    .theme-page .transport-evolution__matrix tbody th {
        width: 140px;
        font-weight: 500;
    }

    .theme-page .transport-evolution__matrix td {
        min-width: 130px;
        height: 58px;
    }

.theme-page .transport-evolution__mark {
    display: inline-flex;
    width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
}

.theme-page .transport-evolution__matrix
td:not(.is-present) {
    opacity: .3;
}