.news-v2,
.news-reader,
.news-editor {
    --news-bg: var(--tl-bg, #100f0d);
    --news-surface: var(--tl-surface, #171512);
    --news-surface-2: var(--tl-surface-2, #1e1b17);
    --news-line: var(--tl-border, rgba(243, 239, 230, 0.09));
    --news-text: var(--tl-text, #f3efe6);
    --news-muted: var(--tl-text-muted, #a39a8c);
    --news-accent: var(--tl-accent, #c3f000);
    width: 100%;
    min-width: 0;
    color: var(--news-text);
}

.news-v2 {
    max-width: 1480px;
    margin-inline: auto;
}

.news-v2__masthead {
    --news-text: #f3efe6;
    --news-muted: #c4bdb2;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    min-height: 245px;
    margin-bottom: 1.35rem;
    padding: clamp(1.5rem, 4vw, 3.25rem);
    overflow: hidden;
    border: 1px solid var(--news-line);
    border-radius: 22px;
    color: var(--news-text);
    background:
        radial-gradient(circle at 88% 10%, rgba(195, 240, 0, 0.16), transparent 34%),
        linear-gradient(135deg, #191712, #0f0e0c);
}

.news-v2__masthead::after {
    content: '';
    position: absolute;
    right: -70px;
    bottom: -120px;
    width: 380px;
    height: 380px;
    border: 1px solid rgba(195, 240, 0, 0.24);
    border-radius: 50%;
    box-shadow: 0 0 0 42px rgba(195, 240, 0, 0.025), 0 0 0 84px rgba(195, 240, 0, 0.018);
}

.news-v2__masthead-main,
.news-v2__masthead-actions {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.news-v2__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.85rem;
    color: var(--news-accent);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.news-v2__eyebrow::before {
    content: '';
    width: 28px;
    height: 2px;
    background: currentColor;
}

.news-v2__title {
    max-width: 760px;
    margin: 0;
    font-family: var(--tl-display, 'Unbounded', sans-serif);
    font-size: clamp(2.1rem, 5vw, 4.6rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.news-v2__lead {
    max-width: 620px;
    margin: 1rem 0 0;
    color: var(--news-muted);
    font-size: clamp(0.95rem, 1.5vw, 1.12rem);
    line-height: 1.6;
}

.news-v2__count {
    display: grid;
    min-width: 115px;
    padding: 1rem 1.15rem;
    border: 1px solid var(--news-line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.035);
    backdrop-filter: blur(12px);
}

.news-v2__count strong {
    font-family: var(--tl-display, 'Unbounded', sans-serif);
    font-size: 1.65rem;
}

.news-v2__count span {
    color: var(--news-muted);
    font-size: 0.73rem;
}

.news-v2__admin-btn {
    margin-top: 0.75rem;
    width: 100%;
    justify-content: center;
}

.news-v2__featured {
    display: grid;
    grid-template-columns: minmax(0, 1.22fr) minmax(320px, 0.78fr);
    min-height: 430px;
    margin-bottom: 1.4rem;
    overflow: hidden;
    border: 1px solid var(--news-line);
    border-radius: 20px;
    background: var(--news-surface);
}

.news-v2__featured-media {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 360px;
    overflow: hidden;
    background:
        radial-gradient(circle at 70% 20%, rgba(195, 240, 0, 0.22), transparent 30%),
        #11120e;
}

.news-v2 .news-v2__featured-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.news-v2__featured:hover .news-v2__featured-media img {
    transform: scale(1.025);
}

.news-v2__featured-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: clamp(1.5rem, 3.4vw, 3rem);
}

.news-v2__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    color: var(--news-muted);
    font-size: 0.76rem;
}

.news-v2__tag {
    padding: 0.28rem 0.58rem;
    border-radius: 999px;
    background: rgba(195, 240, 0, 0.12);
    color: var(--news-accent);
    font-weight: 700;
}

.news-v2__featured-title {
    margin: 1rem 0 0;
    font-family: var(--tl-display, 'Unbounded', sans-serif);
    font-size: clamp(1.45rem, 3vw, 2.5rem);
    line-height: 1.13;
    letter-spacing: -0.035em;
}

.news-v2__featured-text {
    margin: 1rem 0 1.5rem;
    color: var(--news-muted);
    line-height: 1.65;
}

.news-v2__read {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: auto;
    color: var(--news-text);
    font-weight: 750;
    text-decoration: none;
}

.news-v2__read .material-icons {
    color: var(--news-accent);
    transition: transform 0.16s ease;
}

.news-v2__read:hover .material-icons {
    transform: translateX(4px);
}

.news-v2__section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 2rem 0 1rem;
}

.news-v2__section-title {
    margin: 0;
    font-family: var(--tl-display, 'Unbounded', sans-serif);
    font-size: clamp(1.15rem, 2vw, 1.6rem);
}

.news-v2__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.news-v2__card {
    overflow: hidden;
    border: 1px solid var(--news-line);
    border-radius: 16px;
    background: var(--news-surface);
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.news-v2__card:hover {
    transform: translateY(-4px);
    border-color: rgba(195, 240, 0, 0.3);
}

.news-v2__card-link {
    display: flex;
    height: 100%;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

.news-v2__card-media {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 1200 / 630;
    overflow: hidden;
    background:
        radial-gradient(circle at 70% 20%, rgba(195, 240, 0, 0.18), transparent 34%),
        var(--news-surface-2);
}

.news-v2__media-placeholder {
    color: var(--news-accent);
    font-family: var(--tl-display, 'Unbounded', sans-serif);
    font-size: clamp(0.75rem, 2vw, 1.2rem);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.news-v2 .news-v2__card-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.news-v2__card:hover .news-v2__card-media img {
    transform: scale(1.035);
}

.news-v2__card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.05rem;
}

.news-v2__card-title {
    margin: 0.75rem 0 0.55rem;
    font-size: 1.05rem;
    line-height: 1.32;
    overflow-wrap: anywhere;
}

.news-v2__card-text {
    margin: 0 0 1rem;
    color: var(--news-muted);
    font-size: 0.86rem;
    line-height: 1.55;
}

.news-v2__card-more {
    margin-top: auto;
    color: var(--news-accent);
    font-size: 0.8rem;
    font-weight: 750;
}

.news-v2__empty {
    display: grid;
    place-items: center;
    min-height: 340px;
    padding: 2rem;
    border: 1px dashed var(--news-line);
    border-radius: 18px;
    text-align: center;
}

/* Article */
.news-reader {
    color: var(--news-text, var(--tl-text, #f3efe6));
}

.news-reader__back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 1.15rem;
    padding: 0.55rem 0.8rem;
    border: 1px solid var(--news-line);
    border-radius: 999px;
    color: var(--tl-text-muted, #a39a8c);
    background: rgba(255, 255, 255, 0.025);
    text-decoration: none;
}

.news-reader__back:hover {
    border-color: rgba(195, 240, 0, 0.32);
    color: var(--news-text);
}

.news-reader__intro {
    display: grid;
    grid-template-columns: minmax(310px, 0.82fr) minmax(0, 1.18fr);
    gap: clamp(1.5rem, 3vw, 3rem);
    align-items: center;
    padding: clamp(1.25rem, 3vw, 2.4rem);
    border: 1px solid var(--news-line);
    border-radius: 24px;
    background:
        radial-gradient(circle at 8% 12%, rgba(195, 240, 0, 0.1), transparent 28%),
        var(--news-surface);
}

.news-reader__hero {
    position: relative;
    width: 100%;
    min-height: 0;
    aspect-ratio: 1200 / 630;
    overflow: hidden;
    border-radius: 22px;
    background: #111;
}

.news-reader__hero--placeholder {
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 70% 20%, rgba(195, 240, 0, 0.2), transparent 28%),
        linear-gradient(135deg, #1c1d17, #0d0e0b);
}

.news-reader__hero--placeholder > .news-v2__media-placeholder {
    font-size: clamp(1rem, 3vw, 2rem);
}

.news-reader .news-reader__hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-reader__headline {
    min-width: 0;
}

.news-reader__title {
    margin: 1rem 0 0;
    font-family: var(--tl-display, 'Unbounded', sans-serif);
    font-size: clamp(1.65rem, 3.2vw, 3.25rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
    overflow-wrap: anywhere;
}

.news-reader__summary {
    margin: 1.25rem 0 0;
    color: var(--news-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.news-reader__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    align-items: start;
    gap: clamp(1.25rem, 3vw, 2.5rem);
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 4.5rem) clamp(0.25rem, 2vw, 1.5rem);
}

.news-reader__article {
    min-width: 0;
    padding: clamp(1.4rem, 3vw, 2.5rem);
    border: 1px solid var(--news-line);
    border-radius: 18px;
    background: var(--news-surface);
}

.news-reader__article-label {
    margin: 0 0 1.25rem;
    color: var(--news-accent);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.news-reader__content {
    font-size: clamp(1rem, 1.4vw, 1.13rem);
    line-height: 1.85;
    white-space: pre-line;
}

.news-reader__aside {
    position: sticky;
    top: calc(var(--header-height, 72px) + 1rem);
    color: var(--tl-text-muted, #a39a8c);
    font-size: 0.82rem;
}

.news-reader__aside-block {
    padding: 1rem 0;
    border-top: 1px solid var(--tl-border, rgba(243, 239, 230, 0.09));
}

.news-reader__aside strong {
    display: block;
    margin-top: 0.25rem;
    color: var(--tl-text, #f3efe6);
}

.news-reader__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 1180px;
    margin: 0 auto;
    padding: 1.25rem 0;
    border-top: 1px solid var(--tl-border, rgba(243, 239, 230, 0.09));
}

/* Admin form */
.news-editor {
    max-width: 1050px;
    margin: 0 auto;
}

.news-editor__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1.5rem 0;
}

.news-editor__head h1 {
    margin: 0;
    font-family: var(--tl-display, 'Unbounded', sans-serif);
    font-size: clamp(1.6rem, 4vw, 2.75rem);
}

.news-editor__head p:last-child {
    margin: 0.6rem 0 0;
    color: var(--news-muted);
}

.news-editor__card {
    margin-bottom: 1rem;
    padding: clamp(1rem, 3vw, 2rem);
    border: 1px solid var(--news-line);
    border-radius: 18px;
    background: var(--news-surface);
}

.news-editor__field {
    margin-bottom: 1.25rem;
}

.news-editor__field:last-child {
    margin-bottom: 0;
}

.news-editor__field label {
    display: block;
    margin-bottom: 0.45rem;
    font-weight: 700;
}

.news-editor__field small {
    display: block;
    margin-top: 0.5rem;
    color: var(--news-muted);
}

.news-editor__field input,
.news-editor__field textarea {
    width: 100%;
}

.news-editor__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
    margin-top: 1.4rem;
}

@media (max-width: 1280px) {
    .news-v2__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .news-v2__featured {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .news-v2__featured-media {
        min-height: 0;
        aspect-ratio: 1200 / 630;
    }

    .news-reader__intro {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1040px) {
    .news-v2__masthead {
        align-items: stretch;
        flex-direction: column;
        min-height: 0;
    }

    .news-v2__masthead-actions {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .news-v2__count {
        flex: 1;
    }

    .news-v2__admin-btn {
        width: auto;
        margin: 0;
    }
}

@media (max-width: 700px) {
    .news-v2__masthead {
        padding: 1.25rem;
        border-radius: 16px;
    }

    .news-v2__grid {
        grid-template-columns: 1fr;
    }

    .news-v2__featured {
        border-radius: 16px;
    }

    .news-reader__hero {
        min-height: 0;
        border-radius: 16px;
    }

    .news-reader__intro {
        gap: 1.25rem;
        padding: 1rem;
        border-radius: 16px;
    }

    .news-reader__body {
        grid-template-columns: 1fr;
        padding-inline: 0;
    }

    .news-reader__aside {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .news-reader__footer,
    .news-editor__head,
    .news-editor__actions {
        align-items: stretch;
        flex-direction: column;
    }
}
