/* News extends the shared design without the homepage's full-screen scrolling. */
html:has(.news-page) { overflow: auto; scroll-snap-type: none; }
.news-page :focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
.news-page .training-main { min-height: 75vh; }
.news, .entry__cont { max-width: 1440px; margin: auto; padding: 5rem var(--page-gutter); }
.news > p:not(.eyebrow) { max-width: 680px; margin-top: 1.5rem; color: var(--muted); font-size: 1.15rem; }
.news__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-top: 3.5rem; }
.news__list-item { display: flex; flex-direction: column; padding: 2rem; border: 1px solid var(--training-line); background: linear-gradient(145deg, var(--surface), #0b1420); border-radius: 5px; }
.news__list-item h4 { margin: 0 0 1rem; font-size: 1.6rem; font-weight: 400; line-height: 1.2; overflow-wrap: anywhere; }
.news__list-item p { color: var(--muted); margin-bottom: 2rem; }
.news__list-item a { margin-top: auto; align-self: flex-start; color: var(--cyan); padding: .5rem 0; }
.news__list-item a:hover, .news-back:hover { text-decoration: underline; }
.news__pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 2.5rem; }
.news__pagination a { display: grid; place-items: center; min-width: 44px; min-height: 44px; border: 1px solid var(--line); border-radius: 5px; }
.news__pagination .current, .news__pagination a:hover { color: var(--background); background: var(--cyan); }
.news-empty { margin-top: 3rem; padding: 2rem; border: 1px solid var(--line); color: var(--muted); }
.entry__cont { max-width: 1080px; }
.news-back { display: inline-block; color: var(--cyan); margin-bottom: 2.5rem; }
.entry__frame h1 { font-size: clamp(2.2rem, 4.5vw, 4rem); line-height: 1.12; overflow-wrap: anywhere; }
.entry__frame > span { display: block; margin-top: 1.5rem; color: var(--muted); }
.entry { margin-top: 2.5rem; padding-top: 2.5rem; border-top: 1px solid var(--line); color: var(--text); line-height: 1.8; font-size: 1.08rem; overflow-wrap: anywhere; }
/* Override colors and paper backgrounds saved inline by the article editor. */
.news-page .entry * { color: inherit !important; background-color: transparent !important; }
.entry :is(p, ul, ol, blockquote, table, figure) { margin: 0 0 1.5rem; }
.entry :is(h2, h3, h4, h5, h6) { margin: 2rem 0 1rem; line-height: 1.25; }
.news-page .entry h2 { font-size: 2rem; }
.news-page .entry h3 { font-size: 1.6rem; }
.news-page .entry a { color: var(--cyan) !important; text-decoration: underline; }
.entry img, .entry video, .entry iframe { max-width: 100%; }
.entry img, .entry video { height: auto; }
.entry table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.entry :is(th, td) { padding: .75rem; border: 1px solid var(--line); }
.news-page .entry blockquote { border-left: 2px solid var(--cyan); padding-left: 1.5rem; color: var(--muted) !important; }
.entry pre { overflow-x: auto; }
.entry__tags { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.entry__tags span { padding: .35rem .65rem; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); font-size: .8rem; }
.entry__tags a { flex-basis: 100%; margin-top: 1rem; color: var(--cyan); }
.news-page .training-footer { flex-wrap: wrap; border-top: 1px solid var(--line); padding-bottom: 2rem; }
@media (max-width: 700px) {
    .news, .entry__cont { padding: 3rem 1.25rem; }
    .news__list { grid-template-columns: 1fr; margin-top: 2rem; }
    .news__list-item { padding: 1.5rem; }
}
