.article-hero {
    position: relative;
    overflow: hidden;
    min-height: 320px;
}

.article-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(255, 107, 61, 0.12), transparent 32%),
        linear-gradient(180deg, rgba(7, 12, 20, 0.28) 0%, rgba(7, 12, 20, 0.46) 42%, rgba(7, 12, 20, 0.82) 100%);
}

.article-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.article-hero-copy {
    position: relative;
    z-index: 1;
    max-width: 920px;
    margin: 18px;
    padding: 28px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(7, 12, 20, 0.7), rgba(7, 12, 20, 0.5));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.article-hero-copy h1 {
    margin: 12px 0;
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.06;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.article-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: rgba(255, 255, 255, 0.85);
}

.article-body {
    color: var(--text);
    line-height: 1.95;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 18px;
}

.nav-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.nav-pair a,
.related-article-card {
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.related-grid-board {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.related-article-card {
    display: grid;
    gap: 10px;
}

.related-article-card img {
    width: 100%;
    height: 180px;
    border-radius: 16px;
    object-fit: cover;
}

.related-article-copy {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.related-article-copy p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.related-article-copy small {
    color: var(--muted);
}

.related-article img {
    width: 88px;
    height: 88px;
    border-radius: 16px;
    object-fit: cover;
}

@media (max-width: 760px) {
    .article-hero-copy {
        margin: 12px;
        padding: 18px;
        border-radius: 22px;
    }

    .nav-pair {
        grid-template-columns: 1fr;
    }

    .related-grid-board {
        grid-template-columns: 1fr;
    }

    .related-article-card img {
        height: 160px;
    }
}

[data-theme="light"] .article-hero::before {
    background:
        radial-gradient(circle at top left, rgba(255, 107, 61, 0.08), transparent 30%),
        linear-gradient(180deg, rgba(244, 248, 253, 0.24) 0%, rgba(244, 248, 253, 0.36) 42%, rgba(244, 248, 253, 0.82) 100%);
}

[data-theme="light"] .article-hero-copy {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(244, 248, 253, 0.74));
    border-color: rgba(128, 146, 171, 0.22);
    box-shadow: 0 18px 40px rgba(43, 68, 103, 0.12);
}

[data-theme="light"] .article-meta-line {
    color: #55697f;
}

[data-theme="light"] .article-hero-copy h1 {
    text-shadow: none;
}
