/* Shared public section scale follows styles.css: 24/22 titles, 18 subheads, 8px cards. */
.site-prefoter {
    font-family: inherit;
    font-size: 16px;
    line-height: 1.5;
}

.site-prefoter .sro-showcase {
    padding: 32px 0;
    border-top: 1px solid var(--line);
    background: var(--soft);
}

.site-prefoter .sro-showcase h2 {
    margin: 0 0 18px;
    color: var(--blue-900);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    text-align: left;
}

.site-prefoter .sro-logo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.site-prefoter .sro-logo-item {
    flex: 0 1 calc((100% - 144px) / 10);
    height: 72px;
    padding: 8px;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.site-prefoter .sro-logo-item img {
    height: 56px;
    opacity: 1;
}

.congress-results {
    padding: 0 0 32px;
    color: var(--ink);
    background: #fff;
}

.congress-results__intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    margin-bottom: 18px;
}

.congress-results__heading {
    min-width: 0;
}

.congress-results .congress-results__heading h2 {
    margin: 0;
    color: var(--blue-900);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
}

.congress-results__date {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.5;
}

.congress-results__source,
.congress-video__caption > a {
    flex-shrink: 0;
    color: var(--blue-700);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.congress-results__videos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.congress-video {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.congress-video__frame {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--blue-900);
}

.congress-video__play {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    color: #fff;
    background: var(--blue-900);
    cursor: pointer;
}

.congress-video__play::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, #06336fb3);
    content: "";
}

.congress-video__play > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.congress-video__platform,
.congress-video__play-icon,
.congress-video__play-label {
    position: absolute;
    z-index: 1;
}

.congress-video__platform {
    top: 12px;
    right: 12px;
    padding: 4px 7px;
    border-radius: 4px;
    background: #06336fcc;
    font-size: 12px;
    font-weight: 700;
}

.congress-video__play-icon {
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    color: var(--blue-700);
    background: #fff;
    transform: translate(-50%, -50%);
}

.congress-video__play-icon svg {
    margin-left: 3px;
}

.congress-video__play-label {
    bottom: 16px;
    left: 16px;
    font-size: 14px;
    font-weight: 700;
}

.congress-video__frame > iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.congress-video__caption {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding: 16px;
}

.congress-results .congress-video__caption h3 {
    margin: 0;
    color: var(--blue-900);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.congress-results__partners {
    margin-top: 40px;
    padding: 32px 40px 40px;
    color: var(--blue-900);
    background: #fff;
}

.congress-results__partners-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 36px;
}

.congress-results .congress-results__partners-head h3 {
    margin: 0;
    color: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.congress-results__mark {
    display: block;
    flex-shrink: 0;
    width: 49px;
    height: 64px;
}

.congress-results__partner-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 56px;
    row-gap: 52px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.congress-partner {
    display: flex;
    grid-column: span 2;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 72px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.congress-partner:nth-child(n+7):nth-child(-n+10) {
    grid-column: span 3;
}

.congress-partner:nth-child(n+11) {
    grid-column: span 4;
}

.congress-partner__logo {
    display: block;
    width: 100%;
    max-width: 160px;
    height: 64px;
}

.congress-logo-tone > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(13%) sepia(89%) saturate(1636%) hue-rotate(190deg) brightness(88%) contrast(104%);
}

/* Original outlines, filled with the exact gradient used by .site-footer. */
@supports (mask-image: url("")) or (-webkit-mask-image: url("")) {
    .congress-logo-tone {
        background: linear-gradient(135deg, #06336f, #0057ae);
        -webkit-mask-image: var(--congress-logo);
        mask-image: var(--congress-logo);
        -webkit-mask-size: contain;
        mask-size: contain;
        -webkit-mask-position: center;
        mask-position: center;
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
        /* Tonal detail keeps the original multi-colour marks recognisable. */
        mask-mode: luminance;
    }

    .congress-logo-tone > img {
        opacity: 0;
    }
}

/* The original Zemlya SVG has a large empty canvas; crop its viewport only. */
.congress-partner__crop {
    position: relative;
    display: block;
    width: 100%;
    max-width: 160px;
    aspect-ratio: 285.6043 / 69.4955;
    overflow: hidden;
}

.congress-partner__canvas {
    position: absolute;
    top: -82.0866%;
    left: -1.8896%;
    display: block;
    width: 103.9901%;
    max-width: none;
    aspect-ratio: 297 / 210;
}

.congress-results a:focus-visible,
.congress-results button:focus-visible {
    outline: 3px solid var(--blue-600);
    outline-offset: 3px;
}

@media (max-width: 1180px) {
    .site-prefoter .sro-logo-item {
        flex-basis: calc((100% - 64px) / 5);
    }

    .congress-results__partner-grid {
        grid-template-columns: repeat(12, minmax(0, 1fr));
        gap: 48px 40px;
    }

    .congress-results__partner-grid .congress-partner:nth-child(n) {
        grid-column: span 4;
    }

    .congress-results__partner-grid .congress-partner:nth-child(-n+4) {
        grid-column: span 3;
    }
}

@media (max-width: 760px) {
    .site-prefoter .sro-showcase {
        padding: 24px 0;
    }

    .site-prefoter .sro-showcase h2,
    .congress-results .congress-results__heading h2 {
        font-size: 22px;
    }

    .site-prefoter .sro-logo-item {
        flex-basis: calc((100% - 48px) / 4);
    }

    .congress-results {
        padding-bottom: 24px;
    }

    .congress-results__intro {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 16px;
    }

    .congress-results__videos {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .congress-results__partners {
        margin-top: 32px;
        padding: 24px 0 32px;
    }

    .congress-results__partner-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 36px 32px;
    }

    .congress-partner:nth-child(n) {
        flex: 0 1 calc((100% - 64px) / 3);
        height: 72px;
    }

    .congress-partner__logo {
        height: 64px;
    }
}

@media (max-width: 480px) {
    .site-prefoter .sro-logo-item {
        flex-basis: calc((100% - 16px) / 2);
    }

    .congress-results__partners {
        padding: 24px 0 32px;
    }

    .congress-results__partner-grid {
        gap: 36px 28px;
    }

    .congress-partner:nth-child(n) {
        flex-basis: calc((100% - 28px) / 2);
    }
}
