.radio-page .radio-hero-content {
    padding-block: 122px;
}

@media (min-width: 641px) {
    .radio-page .radio-technical-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .radio-page .technical-highlight:nth-child(3) {
        border-top: 0;
        border-left: 1px solid rgba(255, 255, 255, .2);
    }
}

.radio-history-migration {
    padding: 86px 0 96px;
    background: #f4f7fb;
}

.radio-origin,
.radio-history-migration,
.radio-history-legacy,
.radio-history-present {
    scroll-margin-top: 100px;
}

.radio-history-migration-grid {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    align-items: center;
    gap: 80px;
}

.radio-migration-upgrade {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: center;
    gap: 36px;
    margin-top: 44px;
    padding: 32px;
    color: #fff;
    background: var(--blue-deep);
}

.radio-migration-upgrade-intro {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
}

.radio-migration-upgrade-intro > svg {
    width: 48px;
    height: 48px;
    fill: none;
    stroke: var(--yellow);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.radio-migration-upgrade h3 {
    margin: 0;
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
}

.radio-migration-upgrade-intro p {
    margin: 12px 0 0;
    color: #d7e4f5;
    font-size: 14px;
    line-height: 1.65;
}

.radio-migration-upgrade-numbers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    margin: 0;
    padding-left: 32px;
    border-left: 1px solid #45658e;
}

.radio-migration-upgrade-numbers dt {
    margin-bottom: 12px;
    color: #d7e4f5;
    font-size: 12px;
    line-height: 1.5;
}

.radio-migration-upgrade-numbers dd {
    display: grid;
    gap: 5px;
    margin: 0;
}

.radio-migration-upgrade-numbers dd > span {
    color: #d7e4f5;
    font-size: 12px;
}

.radio-migration-upgrade-numbers strong {
    color: var(--yellow);
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.radio-migration-upgrade-numbers small {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
}

.radio-history-frequencies {
    padding-left: 30px;
    border-left: 4px solid var(--yellow);
}

.radio-history-frequencies dl {
    margin: 26px 0 0;
}

.radio-history-frequencies dt {
    color: #536078;
    font-size: 13px;
    line-height: 1.5;
}

.radio-history-frequencies dd {
    margin: 6px 0 0;
    font-size: 70px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0;
}

.radio-history-frequencies dd span {
    font-size: 24px;
}

.radio-history-frequency-old dd {
    color: #66758a;
}

.radio-history-frequency-new {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid #ccd6e4;
}

.radio-history-frequency-new dd {
    color: var(--blue-deep);
}

.radio-history-frequency-new dd span {
    color: var(--orange);
}

.radio-history-frequencies dd.radio-history-frequency-date {
    display: grid;
    gap: 5px;
    margin: 24px 0 0;
    color: var(--blue-deep);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
}

.radio-history-frequency-date time {
    font-weight: 700;
}

.radio-history-frequencies .radio-history-frequency-date span {
    margin-top: 0;
    font-size: inherit;
    color: #536078;
}

.radio-history-copy h2 {
    margin: 0;
    color: var(--blue-deep);
    font-size: 38px;
    font-weight: 600;
    line-height: 1.18;
    letter-spacing: 0;
}

.radio-history-copy > p:not(.radio-kicker),
.radio-history-legacy-body > p {
    margin: 20px 0 0;
    color: #536078;
    font-size: 15px;
    line-height: 1.75;
}

.radio-history-copy strong {
    color: var(--blue-deep);
    font-weight: 700;
}

.radio-history-source {
    display: inline-block;
    margin-top: 22px;
    color: var(--blue);
    font-size: 11px;
    line-height: 1.6;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.radio-page .radio-timeline-list {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.radio-history-today {
    color: var(--orange);
    font-size: 18px;
    font-weight: 700;
}

.radio-history-legacy {
    padding: 100px 0;
    background: #f4f7fb;
}

.radio-page .radio-origin-visual.radio-am-gallery {
    min-width: 0;
}

.radio-am-gallery-stage {
    position: relative;
    z-index: 1;
}

.radio-page .radio-am-gallery img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1312 / 1199;
    object-fit: contain;
}

.radio-am-gallery .radio-am-gallery-stage {
    display: grid;
    aspect-ratio: 1312 / 1199;
}

.radio-am-gallery .radio-am-photo {
    grid-area: 1 / 1;
    min-width: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease;
}

.radio-am-gallery .radio-am-photo.is-active {
    opacity: 1;
    visibility: visible;
}

.radio-page .radio-origin-visual.radio-am-gallery figcaption {
    position: relative;
    inset: auto;
    width: 100%;
    padding: 20px;
}

.radio-am-gallery-toolbar:not([hidden]) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, .22);
}

.radio-am-gallery-buttons {
    display: flex;
    gap: 6px;
}

.radio-am-gallery-buttons button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 4px;
    color: #fff;
    background: transparent;
    cursor: pointer;
    transition: background .18s ease, color .18s ease;
}

.radio-am-gallery-buttons button:hover {
    color: var(--blue-deep);
    background: var(--yellow);
}

.radio-am-gallery-buttons button:focus-visible,
.radio-history-present-link:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 4px;
}

.radio-am-gallery-buttons svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.radio-page .radio-am-gallery .radio-am-gallery-count {
    margin: 0;
    color: #fff;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.radio-am-gallery-buttons .pause-mark {
    display: inline-flex;
    gap: 4px;
    margin: 0;
    color: inherit;
}

.radio-am-gallery-buttons .pause-mark::before,
.radio-am-gallery-buttons .pause-mark::after {
    width: 4px;
    height: 16px;
    border-radius: 1px;
}

.radio-am-gallery-buttons .play-mark {
    margin: 0 0 0 3px;
    color: inherit;
    border-top-width: 8px;
    border-bottom-width: 8px;
    border-left-width: 12px;
}

.radio-history-present {
    padding: 100px 0;
    background: #fff;
}

.radio-history-present-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    align-items: center;
    gap: 70px;
}

.radio-history-present-photo {
    min-width: 0;
    margin: 0;
}

.radio-history-present-photo img {
    display: block;
    width: 100%;
    height: auto;
}

.radio-page .radio-history-present-photo.radio-am-gallery img,
.radio-history-present-photo.radio-am-gallery .radio-am-gallery-stage {
    aspect-ratio: 1 / 1;
}

.radio-history-present-photo figcaption {
    padding-top: 14px;
    color: var(--blue-deep);
    font-size: 12px;
    font-weight: 600;
}

.radio-page .radio-history-present-photo.radio-am-gallery figcaption {
    padding: 20px;
    color: #fff;
    background: var(--blue-deep);
}

.radio-history-present-photo.radio-am-gallery figcaption > div:first-child strong,
.radio-history-present-photo.radio-am-gallery figcaption > div:first-child span {
    display: block;
}

.radio-history-present-photo.radio-am-gallery figcaption > div:first-child strong {
    font-size: 15px;
    font-weight: 700;
}

.radio-history-present-photo.radio-am-gallery figcaption > div:first-child span {
    margin-top: 4px;
    color: #d7e4f5;
    font-size: 12px;
    font-weight: 400;
}

.radio-history-present-link {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin-top: 28px;
    padding-bottom: 8px;
    color: var(--blue-deep);
    border-bottom: 2px solid var(--orange);
    font-size: 13px;
    font-weight: 700;
}

.radio-history-present-link:hover {
    color: var(--orange);
}

@media (prefers-reduced-motion: reduce) {
    .radio-am-gallery .radio-am-photo {
        transition: none;
    }
}

.radio-history-legacy-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    align-items: center;
    gap: 80px;
}

.radio-history-copy .radio-history-legacy-signature {
    margin-top: 30px;
    padding: 6px 0 6px 20px;
    color: var(--blue-deep);
    border-left: 3px solid var(--orange);
    font-size: 19px;
    line-height: 1.5;
}

.radio-history-archive {
    min-width: 0;
    margin: 0;
}

.radio-history-archive img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 867 / 943;
}

.radio-history-archive figcaption {
    padding-top: 14px;
    color: #536078;
    font-size: 11px;
    line-height: 1.7;
}

.radio-history-archive figcaption strong,
.radio-history-archive figcaption span {
    display: block;
}

.radio-history-archive figcaption strong {
    color: var(--blue-deep);
    font-size: 12px;
}

.radio-history-archive a {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.radio-history-source:hover,
.radio-history-archive a:hover {
    color: var(--blue-deep);
}

.radio-history-source:focus-visible,
.radio-history-archive a:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 4px;
}

@media (max-width: 900px) {
    .radio-migration-upgrade {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .radio-migration-upgrade-numbers {
        padding: 24px 0 0;
        border-top: 1px solid #45658e;
        border-left: 0;
    }

    .radio-history-migration-grid,
    .radio-history-legacy-grid,
    .radio-history-present-grid {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .radio-history-frequencies {
        max-width: 480px;
    }

    .radio-page .radio-timeline-list {
        grid-template-columns: 1fr;
    }

    .radio-history-archive {
        width: min(100%, 460px);
        justify-self: center;
    }

    .radio-page .radio-origin-visual.radio-am-gallery {
        width: min(100%, 520px);
        margin-inline: auto;
    }

    .radio-history-present-photo {
        width: min(100%, 600px);
        justify-self: center;
    }

    .radio-page .footer-social-links {
        flex-wrap: wrap;
    }
}

@media (max-width: 640px) {
    .radio-migration-upgrade {
        margin-top: 32px;
        padding: 24px 20px;
    }

    .radio-migration-upgrade-intro {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .radio-migration-upgrade-intro > svg {
        justify-self: center;
    }

    .radio-migration-upgrade h3 {
        font-size: 21px;
    }

    .radio-migration-upgrade-numbers {
        gap: 16px;
    }

    .radio-migration-upgrade-numbers dt {
        min-height: 36px;
        font-size: 11px;
    }

    .radio-migration-upgrade-numbers strong {
        font-size: 28px;
    }

    .radio-migration-upgrade-numbers small {
        font-size: 14px;
    }

    .radio-page main .container {
        width: calc(100% - 48px);
    }

    .radio-page .radio-hero,
    .radio-page .radio-hero-content {
        min-height: 520px;
    }

    .radio-page .radio-hero-content {
        padding-block: 92px;
    }

    .radio-page .radio-hero h1 {
        font-size: 30px;
        line-height: 1.04;
    }

    .radio-page .radio-hero-lead {
        font-size: 16px;
        line-height: 1.6;
    }

    .radio-page .radio-origin,
    .radio-page .radio-evolution,
    .radio-page .radio-timeline,
    .radio-page .radio-reach,
    .radio-history-migration,
    .radio-history-legacy,
    .radio-history-present {
        padding: 56px 0;
    }

    .radio-page .radio-origin-grid {
        gap: 32px;
    }

    .radio-page .radio-origin-visual {
        width: min(100%, 340px);
        margin-inline: auto;
    }

    .radio-page .radio-origin-visual::before {
        display: none;
    }

    .radio-history-present-grid {
        gap: 28px;
    }

    .radio-history-present .radio-history-copy .radio-kicker,
    .radio-history-present .radio-history-copy h2 {
        text-align: center;
    }

    .radio-history-present-photo figcaption {
        text-align: center;
    }

    .radio-page .radio-origin-visual figcaption {
        position: static;
        width: 100%;
        padding: 16px 18px;
    }

    .radio-page .radio-origin-copy h2,
    .radio-page .radio-section-heading h2,
    .radio-page .radio-timeline-heading h2,
    .radio-page .radio-reach-heading h2,
    .radio-history-copy h2 {
        font-size: 28px;
        line-height: 1.25;
    }

    .radio-page .radio-origin-copy > p:not(.radio-kicker),
    .radio-history-copy > p:not(.radio-kicker),
    .radio-history-legacy-body > p {
        line-height: 1.7;
    }

    .radio-history-migration-grid {
        gap: 32px;
    }

    .radio-history-frequencies {
        padding-left: 16px;
        border-left-width: 3px;
    }

    .radio-history-frequencies dl {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
        margin-top: 18px;
    }

    .radio-history-frequencies dt {
        min-height: 36px;
        font-size: 12px;
    }

    .radio-history-frequency-new {
        margin: 0;
        padding: 0 0 0 16px;
        border-top: 0;
        border-left: 1px solid #ccd6e4;
    }

    .radio-history-frequencies dd {
        font-size: 40px;
        line-height: 1.2;
    }

    .radio-history-frequencies dd span {
        display: block;
        margin-top: 3px;
        font-size: 16px;
    }

    .radio-history-frequencies dd.radio-history-frequency-date {
        margin-top: 20px;
        font-size: 12px;
    }

    .radio-page .radio-timeline-list {
        margin-top: 34px;
    }

    .radio-page .radio-timeline-list li {
        padding-left: 34px;
    }

    .radio-page .radio-timeline-list p {
        font-size: 14px;
        line-height: 1.65;
    }

    .radio-history-legacy-grid {
        gap: 24px;
    }

    .radio-history-legacy .radio-history-copy {
        display: contents;
        opacity: 1;
        transform: none;
    }

    .radio-history-legacy-heading {
        grid-row: 1;
        text-align: center;
    }

    .radio-history-legacy-heading h2 {
        font-size: 26px;
    }

    .radio-history-archive {
        grid-row: 2;
        width: min(100%, 280px);
    }

    .radio-history-archive figcaption {
        padding-top: 12px;
        text-align: center;
    }

    .radio-history-archive figcaption strong {
        font-weight: 500;
        line-height: 1.6;
    }

    .radio-history-legacy-body {
        grid-row: 3;
    }

    .radio-history-legacy-body > p:first-child {
        margin-top: 0;
    }

    .radio-history-legacy-body > p + p {
        margin-top: 16px;
    }

    .radio-history-copy .radio-history-legacy-signature {
        margin-top: 24px;
        font-size: 17px;
    }

    .radio-page .radio-director {
        padding: 56px 0 64px;
    }

    .radio-page .radio-director-grid {
        gap: 40px;
    }

    .radio-page .radio-director-photo {
        width: min(280px, calc(100% - 18px));
        margin-inline: auto;
    }

    .radio-page .radio-director-copy h2 {
        font-size: 32px;
        line-height: 1.2;
    }

    .radio-page .radio-closing-inner h2 {
        font-size: 26px;
        line-height: 1.3;
    }

    .radio-page .footer-grid {
        grid-template-columns: minmax(0, 1fr);
    }

}

@media (max-width: 380px) {
    .radio-migration-upgrade {
        padding-inline: 16px;
    }

    .radio-migration-upgrade-numbers strong {
        font-size: 24px;
    }
}

@media (max-width: 360px) {
    .radio-page .radio-hero h1 {
        font-size: 30px;
    }

    .radio-history-frequencies dt {
        min-height: 54px;
    }

    .radio-history-frequencies dd {
        font-size: 36px;
    }
}
