/* Shared news cards, indexes and article typography. */
.news-container {
    width: min(1200px, calc(100% - 96px));
    margin-inline: auto;
}

.news-index,
.news-article {
    padding-top: 150px;
    padding-bottom: 100px;
}

.news-index h1 {
    margin-bottom: 20px;
    font-size: clamp(36px, 5vw, 60px);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.latest-news {
    padding: 100px 0;
    border-block: 1px solid var(--border);
    background: linear-gradient(150deg, #080c16, #0b1020 55%, #070a12);
}

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

.news-card {
    min-width: 0;
    border: 1px solid var(--border);
    background: var(--background);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.news-card:hover {
    border-color: rgba(50, 214, 255, 0.55);
    box-shadow: 0 8px 30px rgba(22, 140, 255, 0.1);
}

.news-card-image {
    display: block;
    background: #03050b;
    border-bottom: 1px solid var(--border);
}

.news-card-image img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: contain;
}

.news-card-content {
    padding: 24px;
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.6;
}

.news-label {
    margin: 20px 0 10px;
    color: var(--cyan);
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.news-card h2,
.news-card h3 {
    font-size: 21px;
    line-height: 1.4;
    margin-bottom: 16px;
}

.news-card h2 a,
.news-card h3 a {
    color: var(--text);
    text-decoration: none;
}

.news-card-content > p:not(.news-label) {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 15px;
}

.news-read-link {
    display: inline-block;
    margin-top: 24px;
    color: var(--cyan);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.news-card a:hover,
.news-page a:hover {
    color: var(--cyan);
}

.news-actions {
    text-align: center;
    margin-top: 40px;
}

.news-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 36px;
}

.news-filters a {
    padding: 12px 20px;
    border: 1px solid var(--border);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
}

.news-filters a[aria-current] {
    color: var(--cyan);
    border-color: var(--cyan);
    background: rgba(22, 140, 255, 0.08);
}

.news-article {
    max-width: 880px;
}

.news-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 36px;
    font-size: 13px;
    color: var(--text-muted);
}

.news-breadcrumb a,
.news-article .news-meta a,
.news-source a,
.news-article-nav a,
.news-body a {
    color: var(--cyan);
    text-underline-offset: 4px;
}

.news-article-heading {
    padding-bottom: 36px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border);
}

.news-article h1 {
    margin-top: 20px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.news-body {
    color: #bdc7dc;
    font-size: 17px;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

.news-body p,
.news-body ul,
.news-body ol,
.news-body blockquote {
    margin-bottom: 20px;
}

.news-body p:empty {
    display: none;
}

.news-body strong,
.news-body h2,
.news-body h3,
.news-body h4 {
    color: var(--text);
}

.news-body h2 {
    font-size: clamp(25px, 3vw, 34px);
    line-height: 1.4;
    margin: 30px 0 24px;
}

.news-body h3,
.news-body h4 {
    font-size: 23px;
    line-height: 1.4;
    margin: 44px 0 20px;
}

.news-body li {
    margin-bottom: 8px;
}

.news-body ul,
.news-body ol {
    padding-left: 28px;
}

.news-body figure {
    margin: 32px 0;
}

.news-body img {
    display: block;
    max-width: 100%;
    height: auto;
    margin-inline: auto;
    border: 1px solid var(--border);
}

.news-body figcaption {
    margin-top: 12px;
    color: var(--text-muted);
    text-align: center;
    font-size: 14px;
}

.news-source {
    margin-top: 48px;
    color: var(--text-muted);
    font-size: 13px;
}

.news-article-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 24px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    font-size: 14px;
}

.news-page a:focus-visible,
.latest-news a:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 5px;
}

@media (max-width: 1000px) {
    .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
    .news-container { width: calc(100% - 40px); }
    .news-grid { grid-template-columns: 1fr; }
    .news-index, .news-article { padding-top: 110px; padding-bottom: 64px; }
    .latest-news { padding: 64px 0; }
    .news-body { font-size: 16px; }
}
