body.template-activitypage {
    --activity-surface: #e4e4e4;
    background: var(--black);
}

.activity-page {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: clamp(28px, 4.5vw, 62px) 0 80px;
    color: var(--paper);
}

.activity-intro {
    max-width: 1000px;
    margin: 0 auto;
}

.template-activitypage .activity-page h1 {
    margin: 0 0 26px;
    color: var(--white);
    font-size: clamp(1.9rem, 3.35vw, 3.2rem);
    font-weight: 600;
    line-height: 1.08;
    text-align: center;
}

.activity-copy {
    color: #b6afad;
    font-size: clamp(1rem, 1.35vw, 1.1rem);
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.activity-intro .activity-copy {
    text-align: justify;
}

.template-activitypage .activity-copy p {
    margin: 0 0 24px;
}

.activity-copy p:empty {
    display: none;
}

.activity-page .activity-copy strong {
    color: var(--red);
    font-weight: 600;
}

.activity-page .activity-copy a,
.activity-page .activity-chart a {
    color: var(--red);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.activity-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 36px 0 48px;
}

.activity-page .activity-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border: 2px solid currentColor;
    border-radius: 0;
    background: transparent;
    color: var(--white);
    font-size: .9rem;
    font-weight: 900;
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
}

.activity-page .activity-nav a:hover,
.activity-page .activity-nav a:focus-visible {
    border-color: var(--red);
    background: var(--red);
    color: var(--white);
}

.activity-page a:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 4px;
}

.activity-phase {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: start;
    padding: 56px 0;
    border-top: 1px solid rgba(255, 255, 255, .2);
    scroll-margin-top: 120px;
}

.activity-phase > .activity-copy {
    max-width: 52ch;
}

.activity-page .activity-phase:last-child {
    padding-bottom: 0;
}

.template-activitypage .activity-page h2 {
    margin: 10px 0 24px;
    color: var(--white);
    font-size: clamp(1.6rem, 2.5vw, 2.25rem);
    font-weight: 600;
    line-height: 1.15;
}

.template-activitypage .activity-copy .activity-period {
    margin: 0;
    color: var(--red);
    font-size: .95rem;
    font-weight: 800;
    text-transform: uppercase;
}

.activity-images {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    min-width: 0;
    gap: 16px;
}

.template-activitypage .activity-images > img {
    width: calc((100% - 32px) / 3);
    height: 136px;
    padding: 16px;
    border-radius: 4px;
    background: var(--activity-surface);
    object-fit: contain;
}

.activity-chart {
    flex: 0 0 100%;
    min-width: 0;
    margin: 0;
}

.template-activitypage .activity-chart img {
    width: 100%;
    height: auto;
    padding: clamp(12px, 2vw, 20px);
    border-radius: 4px;
    background: var(--white);
}

.activity-chart figcaption {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 16px;
    margin-top: 8px;
    color: #b6afad;
    font-size: .85rem;
    line-height: 1.5;
}

.activity-chart figcaption a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

@media (max-width: 900px) {
    .activity-phase {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        padding: 40px 0;
    }

    .activity-phase > .activity-copy {
        max-width: none;
    }

    .activity-images {
        width: min(640px, 100%);
        margin: 0 auto;
    }
}

@media (max-width: 720px) {
    .activity-intro .activity-copy {
        text-align: left;
    }

    .activity-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin: 28px 0 36px;
    }

    .activity-page .activity-nav a {
        padding: 10px 12px;
        font-size: .8rem;
    }

    .activity-nav a:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .template-activitypage .activity-images > img {
        height: 112px;
        padding: 12px;
    }
}
