@font-face {
    font-family: 'Sharp Sans';
    src: url('SharpSans-ExtraBold.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

.docs-news { margin: 24px 0; min-width: 0; scroll-margin-top: 90px; }
.docs-news .news-card {
    margin-bottom: 28px;
    border: 1px solid var(--fixed-left-border-color);
    border-radius: 12px;
    overflow: clip;
    container-type: inline-size;
    scroll-margin-top: 90px;
}

.docs-news .news-hero {
    position: relative;
    display: flex;
    aspect-ratio: 5760 / 1114;
    min-height: 147px;
    padding: clamp(12px, 2cqw, 32px) 5%;
    color: #20ab5d;
    background: #eff8f2 url('news-header.svg') center / cover no-repeat;
    text-decoration: none;
}

.docs-news a.news-hero:focus-visible { outline: 3px solid #20ab5d; outline-offset: -3px; }
.docs-news .news-hero-copy {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    width: 63%;
    min-width: 0;
}

.docs-news .news-brand { display: flex; align-items: center; gap: clamp(16px, 3cqw, 48px); }
.docs-news .news-logo {
    display: block;
    width: 25%;
    height: auto;
    flex-shrink: 0;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}

.docs-news .news-version {
    font-family: 'Sharp Sans', 'Manrope', sans-serif;
    font-size: clamp(28px, 9.7cqw, 160px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: .015em;
    font-kerning: none;
    transform: translateY(.05em);
    white-space: nowrap;
}

.docs-news .news-heading h2 {
    margin: 0 0 8px;
    color: #20ab5d;
    font-size: clamp(16px, 2.1cqw, 32px);
    font-weight: 600;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.docs-news .news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    color: #52735e;
    font-size: clamp(10px, 1cqw, 13px);
    line-height: 1.4;
}

.docs-news .news-body { padding: clamp(20px, 2cqw, 32px); min-width: 0; }
.docs-news .news-body.news-has-images {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    grid-template-areas: 'text images';
    align-items: start;
    gap: 28px;
}
.docs-news .news-text { grid-area: text; min-width: 0; }
.docs-news .news-images {
    grid-area: images;
    position: sticky;
    top: 100px;
    max-height: calc(100dvh - 120px);
    overflow-y: auto;
    padding: 2px 4px 4px;
}
.docs-news .news-image-item { margin: 0 0 20px; }
.docs-news .news-image-item:last-child { margin-bottom: 0; }
.docs-news .news-image-item figcaption { margin-top: 10px; text-align: center; font-size: 12px; line-height: 1.5; color: inherit; }
@container (max-width: 720px) {
    .docs-news .news-body.news-has-images {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: 'images' 'text';
    }
    .docs-news .news-images { position: static; max-height: none; }
}
.docs-news .news-content { font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
.docs-news .news-content p,
.docs-news .news-content ul,
.docs-news .news-content ol { margin-bottom: 16px; }
.docs-news .news-content > :last-child { margin-bottom: 0; }
.docs-news .news-content h1,
.docs-news .news-content h2,
.docs-news .news-content h3 { margin: 24px 0 12px; font-size: 22px; line-height: 1.3; }
.docs-news .news-content > :first-child { margin-top: 0; }
.docs-news .news-images img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 220px;
    margin: 0 auto;
    border-radius: 11px;
    box-shadow: none;
}

.docs-news .news-image-preview {
    display: block;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    border: 0;
    border-radius: 11px;
    background: transparent;
    cursor: zoom-in;
}

.docs-news .news-text > video { margin-bottom: 20px; }
.docs-news video { display: block; width: 100%; max-height: 480px; border-radius: 11px; }
.docs-news iframe { max-width: 100%; border: 0; border-radius: 11px; }
.docs-news .ql-align-center { text-align: center; }
.docs-news .ql-align-right { text-align: right; }
.docs-news .ql-align-justify { text-align: justify; }
.docs-news .news-pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 16px; }
.docs-news .news-pagination span { font-size: 13px; }
.docs-news .news-status { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.docs-news-preview .modal-content { color: var(--primary-text); background: var(--page-bg); }
.docs-news-preview .modal-header { border-color: var(--fixed-left-border-color); }
.docs-news-preview img { display: block; max-width: 100%; max-height: 75vh; margin: 0 auto; border-radius: 11px; object-fit: contain; }
[data-theme='dark'] .docs-news-preview .btn-close { filter: invert(1); }
