/* =========================================================
   News: the newsroom, articles and the home page news strip.
   Same language as the rest of the site: deep space, glass panels,
   curved old-TV screens in film frames, Orbitron headings, blue glow.
   ========================================================= */

/* ---------- pages without the WebGL scene: a light CSS starfield ---------- */
.site-page { background: radial-gradient(ellipse 90% 60% at 75% -10%, rgba(30, 107, 255, .28), transparent 60%), radial-gradient(ellipse 60% 50% at -10% 100%, rgba(111, 227, 255, .08), transparent 60%), var(--bg); }
.starfield { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.starfield i { position: absolute; inset: -50%; background-repeat: repeat; animation: starDrift linear infinite; }
.starfield i:nth-child(1) { background-image: radial-gradient(1px 1px at 20px 30px, #fff, transparent), radial-gradient(1px 1px at 120px 80px, #cfe6ff, transparent), radial-gradient(1px 1px at 220px 150px, #fff, transparent), radial-gradient(1px 1px at 60px 190px, #a9cfff, transparent); background-size: 260px 220px; opacity: .55; animation-duration: 240s; }
.starfield i:nth-child(2) { background-image: radial-gradient(1.5px 1.5px at 50px 60px, #fff, transparent), radial-gradient(1.5px 1.5px at 300px 210px, #9fd8ff, transparent), radial-gradient(1.5px 1.5px at 180px 330px, #fff, transparent); background-size: 380px 400px; opacity: .7; animation-duration: 160s; }
.starfield i:nth-child(3) { background-image: radial-gradient(2px 2px at 90px 120px, #e6f4ff, transparent), radial-gradient(2px 2px at 420px 380px, #6fe3ff, transparent); background-size: 560px 520px; opacity: .8; animation-duration: 110s; }
@keyframes starDrift { to { transform: translate3d(-260px, 120px, 0); } }
.site-main { position: relative; min-height: 70vh; padding-top: var(--nav-h); }

/* ---------- newsroom header and filters ---------- */
.news-hero { padding-top: clamp(50px, 8vw, 90px); }
.news-hero .section__head { margin-bottom: clamp(26px, 4vw, 40px); }
.news-hero__title { font-family: var(--font-display); font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.12; letter-spacing: .01em; }
.news-filters { margin-bottom: clamp(28px, 4vw, 44px); }
.news-filters a { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--glass-border); background: rgba(30, 110, 255, .06); font-weight: 600; font-size: .88rem; color: var(--ink-2); transition: .25s; text-decoration: none; }
.news-filters a:hover { color: #fff; }
.news-filters a.is-active { color: #fff; border-color: var(--cyan); background: rgba(30, 155, 255, .28); box-shadow: 0 0 20px rgba(30, 155, 255, .35); }
.news-filters em { font-style: normal; opacity: .65; font-size: .78rem; margin-left: 4px; }
.news-meta { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #6f93c8; margin: 0; }
.news-empty { padding: 40px; text-align: center; color: var(--ink-2); border-radius: var(--radius); }

/* ---------- the featured story: a wide screen beside its headline ---------- */
.news-feature { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(20px, 3vw, 40px); align-items: center; padding: clamp(18px, 2.4vw, 28px);
  margin-bottom: clamp(30px, 4vw, 48px); border-radius: var(--radius); color: var(--ink); text-decoration: none !important;
  background: linear-gradient(180deg, #0c1d44, #08142f); border: 1px solid #1d3a73; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .95); transition: border-color .3s, box-shadow .3s, transform .3s var(--ease); }
.news-feature:hover { border-color: #4aa3ff; box-shadow: 0 0 0 1px rgba(74, 163, 255, .4), 0 0 50px -12px rgba(0, 102, 255, .7), 0 30px 70px -30px rgba(0, 0, 0, .95); transform: translateY(-3px); }
.news-feature__screen { position: relative; aspect-ratio: 16 / 10; }
.news-feature__body h2 { font-size: clamp(1.4rem, 2.6vw, 2.1rem); line-height: 1.2; margin: 10px 0 12px; }
.news-feature__body > p:not(.news-meta):not(.news-feature__label) { color: var(--ink-2); margin: 0 0 14px; }
.news-feature__body .btn { margin-top: 18px; }
.news-feature__label { display: flex; align-items: center; gap: 8px; margin: 0; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: #8cc8ff; }
.news-feature__label s { width: 8px; height: 8px; border-radius: 50%; background: #2f80ff; box-shadow: 0 0 10px #2f80ff; animation: holoBlink 1.6s steps(2, jump-none) infinite; }

/* ---------- cards: a curved TV screen in a film frame ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 26px); }
.news-card { position: relative; display: flex; flex-direction: column; padding: 22px 10px 12px; border-radius: 6px; color: var(--ink); text-decoration: none !important;
  background: #0b1631; box-shadow: 0 0 0 1px #1d3a73, 0 30px 60px -24px rgba(0, 0, 0, .9); transition: box-shadow .3s, transform .35s var(--ease); }
/* sprocket holes along the top and bottom of the frame */
.news-card::before, .news-card::after { content: ""; position: absolute; left: 8px; right: 8px; height: 10px; pointer-events: none;
  background: linear-gradient(90deg, #01040c 0 11px, transparent 11px) 3px 50% / 21px 9px repeat-x; }
.news-card::before { top: 6px; } .news-card::after { bottom: 6px; }
.news-card:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px #4aa3ff, 0 0 40px -6px rgba(0, 102, 255, .7), 0 34px 70px -20px rgba(0, 0, 0, .9); }
.news-card__screen, .news-feature__screen { position: relative; overflow: hidden; border-radius: 15% / 11%; border: 2px solid #1d3e7a; background: #050c1f; }
.news-card__screen { aspect-ratio: 16 / 10; }
.news-card__screen img, .news-feature__screen img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.04); transition: transform .8s var(--ease); }
.news-card:hover .news-card__screen img, .news-feature:hover .news-feature__screen img { transform: scale(1.1); }
/* CRT glass: highlight, vignette and scanlines over the picture */
.news-card__screen::after, .news-feature__screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(ellipse 72% 60% at 34% 14%, rgba(220, 238, 255, .14), transparent 62%),
    radial-gradient(ellipse 140% 120% at 50% 46%, transparent 55%, rgba(1, 6, 22, .45) 76%, rgba(0, 3, 12, .85) 100%),
    repeating-linear-gradient(180deg, rgba(150, 205, 255, .06) 0 1px, transparent 1px 3px);
  box-shadow: inset 0 0 0 1px rgba(108, 196, 255, .35), inset 0 0 26px 6px rgba(0, 20, 70, .8); }
.news-card__placeholder { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, #13307a, #050c1f 70%); }
.news-card__placeholder img { width: 34% !important; height: auto !important; object-fit: contain !important; opacity: .85; filter: drop-shadow(0 0 18px rgba(47, 128, 255, .8)); transform: none !important; }
.news-card__tag { position: absolute; z-index: 2; left: 14px; top: 12px; padding: 4px 10px; border-radius: 99px; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase;
  color: #fff; background: rgba(0, 60, 170, .85); border: 1px solid rgba(108, 196, 255, .5); backdrop-filter: blur(6px); }
.news-card__body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 16px 8px 10px; }
.news-card__body h3 { font-size: 1.06rem; line-height: 1.3; margin: 0; }
.news-card__body > p:not(.news-meta) { color: var(--ink-2); font-size: .9rem; margin: 0; flex: 1; }
.news-card__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-weight: 600; font-size: .86rem; color: var(--blue-300); }
.news-card__more svg { transition: transform .3s var(--ease); }
.news-card:hover .news-card__more svg { transform: translateX(4px); }

/* ---------- pager ---------- */
.news-pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: clamp(30px, 4vw, 44px); }
.news-pager a, .news-pager .is-disabled { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--glass-border); font-weight: 600; font-size: .88rem; color: var(--ink); text-decoration: none; background: rgba(30, 110, 255, .08); }
.news-pager a:hover { border-color: var(--cyan); background: rgba(30, 155, 255, .25); }
.news-pager .is-disabled { opacity: .35; }
.news-pager__count { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- home page strip ---------- */
.news-strip__more { display: flex; justify-content: center; margin-top: clamp(26px, 4vw, 40px); }

/* ---------- article ---------- */
.article { padding-top: clamp(40px, 6vw, 70px); }
.article__wrap { max-width: 900px; }
.article__preview { margin: 0 0 18px; padding: 10px 16px; border-radius: 12px; background: rgba(250, 178, 25, .12); border: 1px solid rgba(250, 178, 25, .4); color: #ffd47a; font-size: .9rem; }
.article__back { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: .9rem; margin-bottom: 26px; text-decoration: none; }
.article__back:hover { color: var(--cyan); }
.article__head h1 { font-family: var(--font-display); font-size: clamp(1.8rem, 4.4vw, 3rem); line-height: 1.15; margin: 0 0 16px; }
.article__lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-2); margin: 0 0 18px; }
.article__cover { position: relative; margin: clamp(26px, 4vw, 40px) 0; padding: 22px 12px; border-radius: 8px; background: #0b1631; box-shadow: 0 0 0 1px #1d3a73, 0 40px 80px -30px rgba(0, 0, 0, .95); }
.article__cover::before, .article__cover::after { content: ""; position: absolute; left: 10px; right: 10px; height: 10px; pointer-events: none; background: linear-gradient(90deg, #01040c 0 12px, transparent 12px) 3px 50% / 22px 9px repeat-x; }
.article__cover::before { top: 6px; } .article__cover::after { bottom: 6px; }
.article__cover img { display: block; width: 100%; max-height: 520px; object-fit: cover; border-radius: 6% / 9%; border: 2px solid #1d3e7a; }
.article__cover .hud-corner { opacity: .5; }
.article__layout { display: grid; grid-template-columns: minmax(0, 1fr) 52px; gap: clamp(20px, 4vw, 46px); align-items: start; }
.article__share { position: sticky; top: calc(var(--nav-h) + 30px); display: grid; gap: 10px; justify-items: center; }
.article__share small { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.article__share a, .article__share button { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid #2f80ff; background: #0a1630; color: #8cc8ff;
  font-weight: 700; font-size: .95rem; cursor: pointer; text-decoration: none; transition: background .2s, color .2s, box-shadow .2s; }
.article__share a:hover, .article__share button:hover, .article__share .is-done { background: #0066ff; color: #fff; box-shadow: 0 0 18px rgba(0, 102, 255, .7); }
.article__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: clamp(36px, 5vw, 56px) 0 0; }
.article__nav a { display: grid; gap: 6px; padding: 18px 20px; border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; border: 1px solid #1d3a73; background: linear-gradient(180deg, #0c1d44, #08142f); transition: border-color .25s; }
.article__nav a:hover { border-color: #4aa3ff; }
.article__nav .is-next { text-align: right; }
.article__nav small { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: #6f93c8; }
.article__cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: clamp(30px, 4vw, 44px); padding: clamp(20px, 3vw, 30px);
  border-radius: var(--radius); background: linear-gradient(180deg, #0c1d44, #08142f); border: 1px solid #1d3a73; }
.article__cta h2 { font-size: clamp(1.2rem, 2.4vw, 1.6rem); margin: 0; }
.article__cta .eyebrow { margin-bottom: 8px; }
.article__related { margin-top: clamp(60px, 8vw, 100px); }
.article__related-title { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 24px; }

/* the article text */
.prose { font-size: 1.06rem; line-height: 1.78; color: #d6e2f7; }
.prose > * { margin: 0 0 1.15em; }
.prose h2, .prose h3, .prose h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.25; margin: 1.8em 0 .6em; letter-spacing: .01em; }
.prose h2 { font-size: 1.45rem; } .prose h3 { font-size: 1.2rem; } .prose h4 { font-size: 1.02rem; }
.prose a { color: var(--cyan); text-decoration: underline; text-decoration-color: rgba(111, 227, 255, .4); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--cyan); }
.prose strong { color: #fff; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--blue-300); }
.prose blockquote { margin-left: 0; padding: 14px 20px; border-left: 3px solid #2f80ff; border-radius: 0 12px 12px 0; background: rgba(30, 110, 255, .1); color: var(--ink); font-style: italic; }
.prose blockquote > :last-child { margin-bottom: 0; }
.prose img { display: block; max-width: 100%; height: auto; margin: 1.6em auto; border-radius: 14px; border: 1px solid #1d3e7a; box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .9); }
.prose hr { border: 0; height: 1px; background: linear-gradient(90deg, transparent, #2f6fd6, transparent); margin: 2.2em 0; }
.prose code { font-family: var(--font-mono); font-size: .88em; padding: 2px 6px; border-radius: 6px; background: rgba(30, 110, 255, .16); }
.prose pre { overflow-x: auto; padding: 16px; border-radius: 12px; background: #040a1c; border: 1px solid #1d3a73; }
.prose pre code { padding: 0; background: none; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { padding: 8px 10px; border-bottom: 1px solid #1d3a73; text-align: left; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-feature { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .news-grid { grid-template-columns: 1fr; }
  .article__layout { grid-template-columns: 1fr; }
  .article__share { position: static; grid-auto-flow: column; justify-content: start; align-items: center; }
  .article__nav { grid-template-columns: 1fr; }
  .article__nav .is-next { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .starfield i, .news-feature__label s { animation: none; }
  .news-card, .news-feature, .news-card__screen img, .news-feature__screen img { transition: none; }
}
