.media-center-identity-link {
    display: block;
    height: 100%;
}

.media-center-identity-link__icon {
    display: block;
    width: 100%;
    height: 100%;
    background-color: #005496;
    -webkit-mask: url("../site-assets/identity/pen.svg") center / contain no-repeat;
    mask: url("../site-assets/identity/pen.svg") center / contain no-repeat;
}

.media-center-page .icons-sec .media-center-identity-link:focus-visible .theme-btn.theme-btn-sm {
    bottom: 0;
    visibility: visible;
    opacity: 1;
    margin-top: 20px;
}

.visual-identity {
    padding: 56px 0 72px;
    background: #fff;
}

.visual-identity__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 24px;
}

.visual-identity__card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    min-height: clamp(96px, 10.6vw, 140px);
    padding: 12px 24px;
    overflow: hidden;
    background: #063554;
    color: #fff;
    text-align: center;
    text-decoration: none;
    transition: background-color 180ms ease;
}

.visual-identity__card:not([aria-disabled="true"]):hover,
.visual-identity__card:not([aria-disabled="true"]):focus-visible {
    background: #005080;
    color: #fff;
}

.visual-identity__card[aria-disabled="true"] {
    cursor: default;
    background: #063554;
    color: #fff;
}

.media-center-identity-link:focus-visible,
.visual-identity__card:focus-visible,
.identity-preview__download:focus-visible,
.identity-preview__back:focus-visible,
.identity-logo__open:focus-visible {
    outline: 3px solid #008dca;
    outline-offset: 5px;
}

.visual-identity__icon {
    position: relative;
    width: 52px;
    height: 42px;
    object-fit: contain;
}

.visual-identity__label {
    position: relative;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.visual-identity__card--logo {
    grid-column: 1 / -1;
}

.visual-identity__card--logo::before,
.visual-identity__card--logo::after {
    content: "";
    position: absolute;
    inset-block: 0;
    width: min(23%, 220px);
    background: url("../site-assets/identity/triangles.svg") left bottom / contain no-repeat;
    pointer-events: none;
}

.visual-identity__card--logo::before {
    left: 0;
}

.visual-identity__card--logo::after {
    right: 0;
    transform: scaleX(-1);
}

.visual-identity__logo {
    position: relative;
    width: 154px;
    height: 44px;
    object-fit: contain;
}

.identity-preview {
    padding: 56px 0 72px;
    background: #fff;
    color: #063554;
}

.identity-preview__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 28px;
}

.identity-preview__heading h2,
.identity-preview__heading h3 {
    margin: 0;
    color: #063554;
    font-size: 24px;
    line-height: 1.7;
}

.identity-preview__heading h3 {
    font-size: 22px;
}

.identity-preview__documents {
    display: grid;
    gap: 48px;
}

.identity-preview__document {
    min-width: 0;
}

.identity-preview__file-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.identity-preview__download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 22px;
    border: 1px solid transparent;
    background: #063554;
    color: #fff;
    font-size: 15px;
}

.identity-preview__download:hover {
    background: #005080;
    color: #fff;
}

.identity-preview__download--outline {
    border-color: #063554;
    background: transparent;
    color: #063554;
}

.identity-preview__frame {
    height: clamp(480px, 75vh, 960px);
    border: 1px solid #dce5eb;
    background: #f3f6f8;
}

.identity-preview__frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.identity-preview__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 64px 24px;
    border: 1px solid #dce5eb;
    background: #f3f6f8;
    text-align: center;
}

.identity-preview__empty > i {
    font-size: 48px;
    color: #48758f;
}

.identity-preview__empty h3 {
    margin: 0;
    color: #063554;
    font-size: 22px;
    line-height: 1.7;
}

.identity-preview__empty p {
    margin: 0;
    color: #546775;
}

.identity-preview__empty .identity-preview__empty-title {
    color: #063554;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.7;
}

.identity-preview__back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    margin-top: 24px;
    color: #005496;
    font-weight: 500;
}

.identity-logo__gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.identity-logo__item {
    min-width: 0;
    margin: 0;
    border: 1px solid #dce5eb;
}

.identity-logo__image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 230px;
    padding: 40px 28px;
    background: #fff;
}

.identity-logo__image--dark {
    background: #063554;
}

.identity-logo__image img {
    display: block;
    width: 100%;
    max-width: 400px;
    height: auto;
    max-height: 180px;
    object-fit: contain;
}

.identity-logo__caption {
    padding: 24px;
    border-top: 1px solid #dce5eb;
}

.identity-logo__caption h3 {
    margin: 0 0 20px;
    color: #063554;
    font-size: 20px;
    line-height: 1.7;
}

.identity-logo__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px 24px;
}

.identity-logo__open {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    color: #005496;
    font-size: 15px;
}

@media (max-width: 575.98px) {
    .visual-identity,
    .identity-preview {
        padding: 32px 0 48px;
    }

    .visual-identity__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .visual-identity__card {
        min-height: 112px;
        padding-inline: 18px;
    }

    .visual-identity__label {
        font-size: 15px;
    }

    .identity-preview__heading h2,
    .identity-preview__heading h3 {
        font-size: 21px;
    }

    .identity-logo__gallery {
        grid-template-columns: minmax(0, 1fr);
    }

    .identity-logo__image {
        min-height: 180px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .visual-identity__card,
    .media-center-identity-link,
    .media-center-identity-link .theme-btn,
    .identity-preview a {
        transition: none !important;
    }
}
