/* ============================================================
   NEWS — the reader's side
   ------------------------------------------------------------
   A reading page, so it is built around one measure of text and
   gets out of the way. Everything here uses the tokens from
   tokens.css; nothing redefines a colour.

   The `.news-body` rules matter more than they look: that block
   styles markup an author wrote, and the allowlist in
   content/sanitise.py is what decides which of these selectors
   can ever match. If a tag is not in that allowlist, a rule for
   it here is dead code -- so the two lists are kept in step.
   ============================================================ */

body {
  background: var(--page, #f6f8fb);
  color: var(--ink, #0b1b2b);
  /* Fill the viewport and let the news column grow, so the footer sits at
     the bottom on a short article instead of floating mid-page with a band
     of empty ground below it. */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.news-main { flex: 1 0 auto; }

/* Scores treats the entire viewport as the stadium-at-night shell when the
   dark preference is active. News must do the same; changing only cards left
   a pale page showing through between otherwise-dark surfaces. */
[data-theme="dark"] body {
  background: var(--shell);
}

/* --- chrome --------------------------------------------------- */

.news-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4, 16px);
  padding: var(--s-4, 16px) var(--s-5, 20px);
  border-bottom: 1px solid var(--surface-line, #e2e8f0);
  background: var(--surface, #fff);
}

.news-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3, 12px);
  color: inherit;
  text-decoration: none;
  font-family: var(--font-display, inherit);
  font-size: 1.15rem;
}
.news-brand .brand-word { font-weight: 700; }
.news-brand .brand-sub { color: var(--ink-soft, #64748b); font-weight: 500; }

.news-top-link {
  color: var(--ink-mid, #475569);
  text-decoration: none;
  font-size: var(--t-meta, .875rem);
}
.news-top-link:hover { color: var(--brand, #174a7e); }

.news-main {
  max-width: 44rem;
  margin: 0 auto;
  padding: var(--s-7, 32px) var(--s-5, 20px) var(--s-9, 64px);
}

.news-foot {
  border-top: 1px solid var(--surface-line, #e2e8f0);
  padding: var(--s-6, 24px) var(--s-5, 20px);
  color: var(--ink-soft, #64748b);
  font-size: var(--t-meta, .875rem);
  text-align: center;
}

/* --- the breaking banner -------------------------------------- */

.breaking {
  background: var(--danger, #b91c1c);
  color: #fff;
}
.breaking-link {
  display: flex;
  align-items: center;
  gap: var(--s-3, 12px);
  max-width: 60rem;
  margin: 0 auto;
  padding: var(--s-3, 12px) var(--s-5, 20px);
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}
.breaking-flag {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .75rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  flex: none;
}
.breaking-link:hover { text-decoration: underline; }

/* --- headings and bylines ------------------------------------- */

.news-title {
  font-family: var(--font-display, inherit);
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 var(--s-3, 12px);
}

.news-kicker {
  display: block;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .75rem;
  font-weight: 600;
  color: var(--brand, #174a7e);
  margin-bottom: var(--s-2, 8px);
}

.news-standfirst {
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--ink-mid, #475569);
  margin: 0 0 var(--s-4, 16px);
}

.news-byline {
  font-size: var(--t-meta, .875rem);
  color: var(--ink-soft, #64748b);
  margin: 0;
}

.news-head { margin-bottom: var(--s-6, 24px); }
/* Byline on the reader: author picked out, meta muted, laid on one line. */
.news-byline-author { font-weight: 700; color: inherit; }
.news-byline-author + .news-byline-meta::before {
  content: "\00b7"; margin: 0 .5ch; opacity: .6;
}

.news-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: var(--s-4, 16px);
  font-size: var(--t-meta, .875rem);
  font-weight: 600;
  color: var(--on-shell-mid, #475569);
  transition: color .18s ease, gap .18s ease;
}
.news-back::before { content: "\2190"; font-size: 1.05em; line-height: 1; }
.news-back:hover { color: var(--blue-500); gap: 10px; text-decoration: none; }

/* --- the list ------------------------------------------------- */

.news-list {
  display: grid;
  gap: var(--s-6, 24px);
  margin-top: var(--s-6, 24px);
}

.news-card {
  background: var(--surface, #fff);
  border: 1px solid var(--surface-line, #e2e8f0);
  border-radius: var(--r-lg, 14px);
  overflow: hidden;
  padding: 0 0 var(--s-4, 16px);
}

.news-card-figure { display: block; }
.news-card-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--surface-sunk, #eef2f7);
}

.news-card-link {
  display: block;
  padding: var(--s-5, 20px) var(--s-5, 20px) 0;
  color: inherit;
  text-decoration: none;
}
.news-card-title {
  font-family: var(--font-display, inherit);
  font-size: 1.35rem;
  line-height: 1.25;
  margin: 0 0 var(--s-2, 8px);
}
.news-card-link:hover .news-card-title { color: var(--brand, #174a7e); }
.news-card-standfirst {
  color: var(--ink-mid, #475569);
  margin: 0 0 var(--s-3, 12px);
}
.news-card .news-byline { padding: 0 var(--s-5, 20px); }

.news-empty, .news-loading {
  color: var(--ink-soft, #64748b);
  padding: var(--s-7, 32px) 0;
}

/* --- one article ---------------------------------------------- */

.news-hero {
  margin: var(--s-5, 20px) clamp(24px, 4vw, 52px) 0;
}
.news-hero img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-lg, 14px);
  background: var(--surface-sunk, #eef2f7);
}
.news-hero figcaption {
  margin-top: var(--s-2, 8px);
  font-size: var(--t-meta, .875rem);
  color: var(--ink-soft, #64748b);
}

.news-correction {
  border-left: 3px solid var(--warn, #b45309);
  background: var(--surface-sunk, #f4f6fb);
  padding: var(--s-4, 16px);
  border-radius: 0 var(--r-md, 10px) var(--r-md, 10px) 0;
  margin: var(--s-5, 20px) 0 0;
  font-size: var(--t-meta, .9375rem);
}

/* Author-written markup. Every selector here corresponds to a tag
   the sanitiser allows; nothing else can appear. */
.news-body {
  padding: clamp(18px, 2.5vw, 26px) 0 4px;
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--ink, #0b1b30);
}
/* Lead paragraph carries a touch more weight, the way a print intro does. */
.news-body > p:first-of-type {
  font-size: 1.3rem;
  line-height: 1.62;
  color: var(--ink, #0b1b30);
}
.news-body > * + * { margin-top: 1.1em; }
.news-body h2 { font-size: 1.5rem; line-height: 1.25; margin-top: 1.8em; }
.news-body h3 { font-size: 1.25rem; line-height: 1.3; margin-top: 1.6em; }
.news-body h4 { font-size: 1.0625rem; margin-top: 1.4em; }
.news-body a {
  color: var(--art-accent, #1d4ed8);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, var(--art-accent, #1d4ed8) 45%, transparent);
  transition: text-decoration-color .15s ease;
}
.news-body a:hover { text-decoration-color: currentColor; }
.news-body ul, .news-body ol { padding-left: 1.35em; }
.news-body li + li { margin-top: .4em; }
.news-body blockquote {
  margin-inline: 0;
  padding-left: var(--s-4, 16px);
  border-left: 3px solid var(--surface-line, #cbd5e1);
  color: var(--ink-mid, #475569);
  font-style: italic;
}
.news-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--r-md, 10px);
}
.news-body figure { margin-inline: 0; }
.news-body figcaption {
  margin-top: var(--s-2, 8px);
  font-size: var(--t-meta, .875rem);
  color: var(--ink-soft, #64748b);
}
.news-body pre {
  overflow-x: auto;
  padding: var(--s-4, 16px);
  border-radius: var(--r-md, 10px);
  background: var(--surface-sunk, #eef2f7);
  font-size: .875rem;
}
.news-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .9em;
}
/* A table an author pasted can be wider than the measure. Scrolling it
   is the only option that does not either clip it or push the page
   sideways. */
.news-body table {
  display: block;
  overflow-x: auto;
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t-meta, .9375rem);
}
.news-body th, .news-body td {
  border: 1px solid var(--surface-line, #e2e8f0);
  padding: var(--s-2, 8px) var(--s-3, 12px);
  text-align: left;
}
.news-body hr {
  border: 0;
  border-top: 1px solid var(--surface-line, #e2e8f0);
  margin-block: var(--s-6, 24px);
}

/* Footer of the sheet: tags on the left, a way back on the right, on a rule. */
.news-article-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3, 12px);
  margin-top: clamp(24px, 3vw, 34px);
  padding: clamp(18px, 2.5vw, 24px) 0 0;
  border-top: 1px solid var(--surface-line, #e2e8f0);
}
.news-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2, 8px);
}
.news-tag {
  font-size: .8125rem;
  padding: 4px 11px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--art-accent, #2563eb) 12%, transparent);
  color: var(--art-accent, #475569);
  font-weight: 600;
}
.news-foot-link {
  margin-inline-start: auto;
  font-size: var(--t-meta, .875rem);
  font-weight: 600;
  color: var(--art-accent, #1d4ed8);
}
.news-foot-link:hover { text-decoration: underline; }

/* --- preview -------------------------------------------------- */

.preview-bar {
  display: flex;
  align-items: center;
  gap: var(--s-3, 12px);
  flex-wrap: wrap;
  padding: var(--s-3, 12px) var(--s-5, 20px);
  background: var(--warn, #b45309);
  color: #fff;
  font-size: var(--t-meta, .875rem);
}

/* --- Pacy newsroom shell -------------------------------------
   The list is deliberately denser and darker than the article reader. The
   reader keeps a calm measure; the landing page belongs to the live product. */

.news-page {
  width: min(100% - 40px, 1320px);
  margin-inline: auto;
}

.news-site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--navy-900);
  color: var(--on-shell);
  border-bottom: 1px solid var(--shell-line);
}

.news-header-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: var(--s-7);
}

.news-site-header .news-brand {
  color: var(--white);
  font-size: 1.35rem;
  font-weight: 800;
  flex: none;
}

.news-primary {
  display: flex;
  align-self: stretch;
  gap: 4px;
}

.news-primary a {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--on-shell-mid);
  padding: 0 17px;
  text-decoration: none;
  font-weight: 650;
  border-bottom: 3px solid transparent;
}
.news-primary a:hover { color: var(--white); }
.news-primary a[aria-current="page"] {
  color: var(--white);
  background: rgba(37, 99, 235, .22);
  border-bottom-color: var(--electric);
}

.news-live-dot,
.news-score-pulse {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 4px rgba(229, 53, 43, .13);
  flex: none;
}

.news-score-cta {
  margin-inline-start: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--r-md);
  color: var(--on-shell);
  text-decoration: none;
  font-weight: 650;
}
.news-score-cta:hover { background: rgba(255, 255, 255, .07); }

.news-sports {
  background: var(--shell);
  border-bottom: 1px solid var(--shell-line);
  color: var(--on-shell-mid);
  overflow-x: auto;
}
.news-sports-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  white-space: nowrap;
}
.news-sports a {
  color: inherit;
  text-decoration: none;
  padding: 9px 15px;
  border-radius: var(--r-md);
  font-weight: 650;
  font-size: var(--t-meta);
}
.news-sports a:hover { color: var(--on-shell); background: var(--shell-hover); }
.news-sports a[aria-current="page"] {
  color: var(--white);
  background: var(--med-blue);
}

/* The same life the scores page gives its sport chips: an accent underline
   that springs in on hover, and on the current category glows and breathes. */
.news-sports a { position: relative; }
.news-sports a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, transparent, var(--electric) 30%, var(--blue-300) 50%, var(--electric) 70%, transparent);
  transform: scaleX(0);
  opacity: 0;
  transition: transform var(--d-med) var(--ease-spring),
              opacity var(--d-fast) var(--ease-out);
}
.news-sports a:hover::after { transform: scaleX(.62); opacity: .9; }
.news-sports a[aria-current="page"]::after {
  transform: scaleX(1);
  opacity: 1;
  background: linear-gradient(90deg, transparent, #60a5fa 22%, #fff 50%, #60a5fa 78%, transparent);
  box-shadow: 0 0 7px #2563eb, 0 0 14px rgba(59, 130, 246, .55);
  animation: sportChipCurrent 1.8s ease-in-out infinite;
}

/* --- sport-switch lightning ---------------------------------
   The strike starts directly beneath the brand and travels through the
   sports rail. A clipped facet follows it for one beat, borrowing the logo's
   geometry rather than falling back to a generic loading shimmer. */
.news-tab-transition {
  --strike-origin: max(26px, calc((100vw - var(--page-max)) / 2 + 30px));
  position: fixed;
  z-index: 59;
  inset-inline: 0;
  top: var(--header-h);
  height: 58px;
  overflow: hidden;
  pointer-events: none;
  isolation: isolate;
}
.news-tab-transition[hidden] { display: none; }
.news-tab-transition::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(4, 16, 31, .46);
  backdrop-filter: blur(2px);
  animation: newsTabVeil 720ms var(--ease-out) both;
}
.news-tab-facet {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(118deg, rgba(37, 99, 235, .9) 0 28%, transparent 28.4%),
    linear-gradient(298deg, rgba(23, 74, 126, .84) 0 48%, transparent 48.4%),
    var(--deep-navy);
  clip-path: polygon(0 0, 78% 0, 100% 50%, 78% 100%, 0 100%, 13% 50%);
  transform: scaleX(0);
  transform-origin: left center;
  animation: newsFacetWake 720ms var(--ease-out) both;
}
[dir="rtl"] .news-tab-facet { transform-origin: right center; }
.news-tab-trace {
  position: absolute;
  z-index: 2;
  inset-inline-start: var(--strike-origin);
  top: 27px;
  width: calc(100% - var(--strike-origin));
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg,
    transparent, var(--bolt-deep) 14%, var(--bolt-core) 55%,
    var(--white) 76%, var(--bolt-hot) 91%, transparent);
  box-shadow: 0 0 7px var(--bolt-core), 0 0 18px rgba(37, 99, 235, .85),
              0 0 28px rgba(255, 176, 32, .42);
  transform: scaleX(0);
  transform-origin: left center;
  animation: newsTraceGrow 610ms 35ms var(--ease-out) both;
}
[dir="rtl"] .news-tab-trace {
  background: linear-gradient(270deg,
    transparent, var(--bolt-deep) 14%, var(--bolt-core) 55%,
    var(--white) 76%, var(--bolt-hot) 91%, transparent);
  transform-origin: right center;
}
.news-tab-bolt {
  position: absolute;
  z-index: 4;
  inset-inline-start: var(--strike-origin);
  top: 5px;
  width: 31px;
  height: 47px;
  color: var(--white);
  animation: newsBoltRun 660ms 24ms var(--ease-out) both;
}
.news-tab-bolt svg { display: block; width: 100%; height: 100%; overflow: visible; }
.news-bolt-glow {
  fill: none;
  stroke: var(--bolt-core);
  stroke-width: 7;
  opacity: .85;
  filter: blur(5px);
}
.news-bolt-core { fill: var(--white); stroke: var(--bolt-hot); stroke-width: 1.4; }
.news-tab-transition-label {
  position: absolute;
  z-index: 3;
  inset-inline-start: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: var(--r-pill);
  color: var(--white);
  background: rgba(4, 16, 31, .66);
  box-shadow: 0 6px 24px rgba(4, 16, 31, .4);
  font-size: var(--t-meta);
  font-weight: 700;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  animation: newsSportName 720ms var(--ease-out) both;
}
[dir="rtl"] .news-tab-transition-label { transform: translate(50%, -50%); }
.news-tab-transition-label strong {
  color: var(--blue-300);
  font-family: var(--font-display);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.news-tab-transition-label strong::after { content: "//"; margin-inline-start: 9px; color: var(--bolt-hot); }

@keyframes newsTabVeil {
  0%, 100% { opacity: 0; }
  16%, 72% { opacity: 1; }
}
@keyframes newsFacetWake {
  0% { opacity: 0; transform: scaleX(0); }
  18% { opacity: .92; }
  68% { opacity: .7; transform: scaleX(1); }
  100% { opacity: 0; transform: scaleX(1); }
}
@keyframes newsTraceGrow {
  0% { opacity: 0; transform: scaleX(0); }
  12% { opacity: 1; }
  78% { opacity: 1; transform: scaleX(1); }
  100% { opacity: 0; transform: scaleX(1); }
}
@keyframes newsBoltRun {
  0% { opacity: 0; transform: translateX(-20px) scale(.72) rotate(-8deg); }
  12% { opacity: 1; }
  72% { opacity: 1; transform: translateX(calc(100vw - var(--strike-origin) - 62px)) scale(1.05) rotate(7deg); }
  100% { opacity: 0; transform: translateX(calc(100vw - var(--strike-origin) - 42px)) scale(.6) rotate(12deg); }
}
[dir="rtl"] .news-tab-bolt { animation-name: newsBoltRunRtl; }
@keyframes newsBoltRunRtl {
  0% { opacity: 0; transform: translateX(20px) scale(.72) rotate(8deg); }
  12% { opacity: 1; }
  72% { opacity: 1; transform: translateX(calc(-100vw + var(--strike-origin) + 62px)) scale(1.05) rotate(-7deg); }
  100% { opacity: 0; transform: translateX(calc(-100vw + var(--strike-origin) + 42px)) scale(.6) rotate(-12deg); }
}
@keyframes newsSportName {
  0%, 28% { opacity: 0; transform: translate(-50%, calc(-50% + 7px)) scale(.9); }
  45%, 72% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, calc(-50% - 5px)) scale(.96); }
}
[dir="rtl"] .news-tab-transition-label { animation-name: newsSportNameRtl; }
@keyframes newsSportNameRtl {
  0%, 28% { opacity: 0; transform: translate(50%, calc(-50% + 7px)) scale(.9); }
  45%, 72% { opacity: 1; transform: translate(50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(50%, calc(-50% - 5px)) scale(.96); }
}
.news-home-view.news-tab-settle { animation: newsTabSettle 280ms var(--ease-out) both; }
@keyframes newsTabSettle {
  from { opacity: .62; transform: translateY(7px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .news-tab-transition { display: none !important; }
  .news-home-view.news-tab-settle { animation: none; }
}
[data-motion="off"] .news-tab-transition { display: none !important; }
[data-motion="off"] .news-home-view.news-tab-settle { animation: none; }

/* Search uses the same shell trigger as Scores, but keeps results inside the
   newsroom so switching sections never feels like leaving the application. */
.news-search-open { overflow: hidden; }
.news-search-overlay {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: start center;
  padding: min(13vh, 110px) 20px 20px;
  background: rgba(3, 15, 30, .76);
  backdrop-filter: blur(7px);
}
.news-search-overlay[hidden] { display: none; }
.news-search-dialog {
  width: min(100%, 720px);
  max-height: min(76vh, 700px);
  overflow: auto;
  padding: var(--s-5);
  border: 1px solid var(--surface-line);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .3);
}
.news-search-head { display: flex; align-items: center; gap: 16px; margin-bottom: var(--s-4); }
.news-search-head h2 { margin: 0; flex: 1; }
.news-search-head .icon-btn { color: var(--ink); border-color: var(--surface-line); }
.news-search-input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--surface-line);
  border-radius: var(--r-md);
  background: var(--surface-sunk);
  color: var(--ink);
  font: 500 1rem var(--font-body);
}
.news-search-input:focus { outline: 3px solid var(--focus); outline-offset: 2px; }
.news-search-results { display: grid; gap: 8px; margin-top: var(--s-4); }
.news-search-result {
  display: grid;
  gap: 4px;
  padding: 13px 14px;
  border-radius: var(--r-md);
  color: var(--ink);
  text-decoration: none;
}
.news-search-result:hover { background: var(--blue-050); text-decoration: none; }
.news-search-result > span:last-child { color: var(--ink-soft); font-size: var(--t-meta); }
.news-search-empty { margin: 0; padding: 20px 4px; color: var(--ink-soft); }

.news-main {
  max-width: 1320px;
  padding: var(--s-7) 20px var(--s-10);
}

.article-view {
  max-width: min(100%, 62rem);
  margin-inline: auto;
}

/* An article owns its page: a transparent wrapper holding a wide, immersive
   hero and, beneath it, a centred reading card at a comfortable measure. */
.news-article {
  --art-accent: var(--blue-600, #1d4ed8);
  display: block;
}
[data-theme="dark"] .news-article { --art-accent: #8fb2ff; }

/* The hero carries the newsroom masthead's own navy / electric-blue language,
   so the page reads as Pacy — not a coloured box. Used when there is no photo. */
.news-hero-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: clamp(280px, 34vw, 430px);
  padding: clamp(36px, 5vw, 60px) clamp(28px, 5vw, 60px) clamp(84px, 9vw, 128px);
  border-radius: var(--r-xl, 20px);
  color: var(--white);
  background:
    linear-gradient(125deg, rgba(37, 99, 235, .82), transparent 48%),
    linear-gradient(145deg, transparent 0 56%, rgba(23, 74, 126, .70) 56% 74%, transparent 74%),
    var(--midnight);
  box-shadow: 0 26px 64px rgba(3, 16, 32, .32),
              inset 0 1px 0 rgba(255, 255, 255, .06);
}
.news-hero-band::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -55% -25%;
  pointer-events: none;
  background: conic-gradient(from 100deg at 50% 50%, transparent 0 42%,
              rgba(82, 151, 255, .14) 47%, transparent 53% 100%);
  animation: newsMastSweep 16s linear infinite;
}
.news-hero-band::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(120deg, transparent 0 24px,
              rgba(255, 255, 255, .028) 25px 26px);
}
.news-hero-band-inner {
  position: relative;
  z-index: 1;
  max-width: 46rem;
}
.news-hero-band .news-kicker { color: #a9c2ff; margin-bottom: 10px; }
.news-hero-band .news-title {
  color: var(--white);
  font-size: clamp(2.4rem, 1.6rem + 3.2vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -.03em;
  margin: 0 0 14px;
  text-shadow: 0 12px 34px rgba(3, 16, 32, .36);
}
.news-hero-band .news-standfirst {
  color: var(--on-dark-mid, #cdddf3);
  font-size: clamp(1.05rem, 1rem + .4vw, 1.28rem);
  max-width: 42rem;
  margin: 0 0 16px;
}
.news-hero-band .news-byline { color: rgba(255, 255, 255, .74); }
.news-hero-band .news-byline-author { color: var(--white); }

/* Full-bleed photo hero (when the article carries one). */
.news-hero { margin: 0; }
.news-hero img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-xl, 20px);
  background: var(--surface-sunk, #eef2f7);
}

/* The reading card — lifts over the hero and holds the body at book width. */
.news-reading {
  position: relative;
  z-index: 2;
  width: min(100%, 44rem);
  margin: 0 auto;
  background: var(--surface, #fff);
  border: 1px solid var(--surface-line, #e2e8f0);
  border-radius: var(--r-xl, 20px);
  box-shadow: 0 30px 70px rgba(3, 16, 32, .22);
  padding: clamp(28px, 4vw, 52px) clamp(24px, 5vw, 56px) clamp(24px, 4vw, 40px);
}
.news-hero-band + .news-reading { margin-top: clamp(-76px, -7vw, -48px); }
.news-hero + .news-reading { margin-top: clamp(-60px, -6vw, -36px); }

.news-reading .news-head { margin: 0 0 var(--s-4, 16px); padding: 0; }
.news-reading .news-title {
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 6px 0 12px;
}
.news-reading .news-standfirst { margin: 0 0 14px; }
.news-byline { display: flex; flex-wrap: wrap; align-items: baseline; }

/* Reading progress — a thin accent line across the top of the viewport. */
.news-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.news-progress.is-active { opacity: 1; }
.news-progress::before {
  content: "";
  display: block;
  height: 100%;
  width: var(--news-progress, 0%);
  background: linear-gradient(90deg, var(--blue-500, #2f6fe0), var(--blue-300, #7fa5f8));
  box-shadow: 0 0 14px rgba(47, 111, 224, .6);
  transition: width .12s linear;
}

.news-masthead {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  min-height: 230px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-6);
  padding: clamp(28px, 4vw, 54px);
  margin-bottom: var(--s-7);
  border-radius: var(--r-xl);
  color: var(--white);
  background:
    linear-gradient(125deg, rgba(37,99,235,.78), transparent 46%),
    linear-gradient(145deg, transparent 0 56%, rgba(23,74,126,.72) 56% 74%, transparent 74%),
    var(--midnight);
  box-shadow: 0 24px 60px rgba(3, 16, 32, .18),
              inset 0 1px 0 rgba(255, 255, 255, .06);
}
.news-masthead::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -45% -20%;
  pointer-events: none;
  background: conic-gradient(from 100deg at 50% 50%, transparent 0 42%,
              rgba(82, 151, 255, .13) 47%, transparent 53% 100%);
  animation: newsMastSweep 14s linear infinite;
}
.news-masthead::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(120deg, transparent 0 22px,
              rgba(255,255,255,.025) 23px 24px);
  background-position: 0 0;
  animation: newsMastLines 16s linear infinite;
}
.news-masthead > * { position: relative; z-index: 1; }
.news-mast-beam {
  position: absolute;
  z-index: 0;
  inset-block: -30%;
  inset-inline-start: 47%;
  width: 22%;
  pointer-events: none;
  opacity: .7;
  background: linear-gradient(90deg, transparent, rgba(55, 139, 235, .32), transparent);
  transform: skewX(-34deg) translateX(-220%);
  animation: newsMastBeam 8s 1.2s cubic-bezier(.4, 0, .2, 1) infinite;
}
.news-mast-orbit {
  position: absolute;
  z-index: 0;
  width: 360px;
  height: 360px;
  inset-inline-end: -150px;
  inset-block-start: -185px;
  border: 1px solid rgba(130, 181, 255, .13);
  border-radius: 50%;
  box-shadow: 0 0 0 44px rgba(37, 99, 235, .035),
              0 0 0 88px rgba(37, 99, 235, .025);
  animation: newsOrbitBreathe 6s ease-in-out infinite;
}
.news-masthead .news-title {
  max-width: 760px;
  margin: 5px 0 8px;
  color: var(--white);
  font-size: clamp(2.5rem, 5vw, 4.7rem);
  line-height: .98;
  letter-spacing: -.045em;
  text-shadow: 0 10px 32px rgba(3, 16, 32, .32);
}
.news-masthead p {
  max-width: 680px;
  margin: 0;
  color: var(--on-dark-mid);
  font-size: 1.08rem;
}
.news-mast-kicker {
  color: #a9c2ff;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .76rem;
  font-weight: 800;
}
.news-mast-live {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  border-radius: var(--r-md);
  background: rgba(255,255,255,.09);
  color: var(--white);
  text-decoration: none;
  font-weight: 750;
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 12px 28px rgba(3, 16, 32, .18);
  transition: transform 180ms var(--ease-out), background-color 180ms ease,
              border-color 180ms ease;
}
.news-mast-live:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,.13);
  border-color: rgba(121, 175, 255, .34);
}

@keyframes newsMastSweep { to { transform: rotate(1turn); } }
@keyframes newsMastLines { to { background-position: 96px 0; } }
@keyframes newsMastBeam {
  0%, 58% { opacity: 0; transform: skewX(-34deg) translateX(-240%); }
  64% { opacity: .72; }
  82% { opacity: .45; transform: skewX(-34deg) translateX(420%); }
  100% { opacity: 0; transform: skewX(-34deg) translateX(420%); }
}
@keyframes newsOrbitBreathe {
  0%, 100% { opacity: .48; transform: scale(.96); }
  50% { opacity: .9; transform: scale(1.035); }
}

.news-home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: var(--s-6);
  align-items: start;
}
.news-editorial { min-width: 0; }
.news-feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, .9fr);
  gap: var(--s-5);
}

.news-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  box-shadow: 0 10px 30px rgba(7, 27, 51, .055);
  transition: transform 240ms var(--ease-out), box-shadow 240ms ease,
              border-color 240ms ease;
}
.news-card::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset-block: 0;
  inset-inline-start: -45%;
  width: 32%;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.16), transparent);
  transform: skewX(-18deg);
  transition: inset-inline-start 620ms var(--ease-out), opacity 180ms ease;
}
.news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(63, 128, 220, .38);
  box-shadow: 0 18px 42px rgba(7, 27, 51, .13),
              0 0 0 1px rgba(37, 99, 235, .05);
}
.news-card:hover::after { inset-inline-start: 118%; opacity: 1; }
.news-card-copy { padding-bottom: var(--s-4); }
.news-card-figure { overflow: hidden; background: var(--midnight); }
.news-card-figure img { transition: transform .55s var(--ease-out), filter .4s ease; }
.news-card:hover .news-card-figure img { transform: scale(1.035); filter: saturate(1.08); }
.news-card-fallback {
  min-height: 220px;
  aspect-ratio: 3 / 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--s-6);
  color: var(--white);
  background:
    linear-gradient(135deg, transparent 0 54%, rgba(37,99,235,.55) 54% 72%, transparent 72%),
    repeating-linear-gradient(120deg, transparent 0 20px, rgba(255,255,255,.035) 21px 22px),
    var(--midnight);
  background-size: auto, 112px 100%, auto;
  transition: background-position 620ms var(--ease-out);
}
.news-card:hover .news-card-fallback { background-position: 7% 0, 28px 0, 0 0; }
.news-card-fallback span {
  color: var(--blue-300);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .72rem;
  font-weight: 800;
}
.news-card-fallback strong {
  margin-top: 5px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 3rem);
}
.news-card-lead .news-card-title { font-size: clamp(1.6rem, 2.3vw, 2.25rem); }
.news-card-lead .news-card-figure img,
.news-card-lead .news-card-fallback { aspect-ratio: 16 / 8.2; }
.news-card-supporting .news-card-figure img,
.news-card-supporting .news-card-fallback { aspect-ratio: 4 / 3; }

.news-latest { margin-top: var(--s-7); }
.news-section-head {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: var(--s-3);
  margin-bottom: var(--s-4);
  border-bottom: 2px solid var(--midnight);
}
.news-section-head::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: -2px;
  width: min(34%, 180px);
  height: 2px;
  background: linear-gradient(90deg, var(--electric), #74b8ff, transparent);
  transform-origin: left;
  animation: newsHeadlineTrace 3.8s ease-in-out infinite;
}
@keyframes newsHeadlineTrace {
  0%, 100% { opacity: .65; transform: scaleX(.3); }
  48% { opacity: 1; transform: scaleX(1); }
}
.news-section-head h2 { margin: 0; font-size: 1.55rem; }
.news-section-head span { color: var(--ink-soft); font-size: var(--t-meta); }
.news-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); }

.news-rail {
  display: grid;
  gap: var(--s-5);
  position: sticky;
  top: 86px;
}
.news-rail-panel {
  overflow: hidden;
  border: 1px solid var(--surface-line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.news-rail-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--surface-line);
}
.news-rail-head h2 { margin: 0; font-size: 1rem; }
.news-live-count {
  margin-inline-start: auto;
  min-width: 25px;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--live-soft);
  color: var(--live);
  text-align: center;
  font-size: .76rem;
  font-weight: 800;
}
.news-live-list { display: grid; }
.news-live-match {
  position: relative;
  display: grid;
  gap: 5px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--surface-line);
  color: var(--ink);
  text-decoration: none;
  transition: background-color 160ms ease, padding-inline-start 180ms var(--ease-out);
}
.news-live-match:hover { background: var(--blue-050); padding-inline-start: 22px; }
.news-live-league {
  padding-inline-end: 50px;
  color: var(--ink-soft);
  font-size: .72rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.news-live-team { display: flex; justify-content: space-between; gap: 10px; font-size: .88rem; }
.news-live-stage { position: absolute; inset-inline-end: 18px; top: 13px; color: var(--live); font-size: .74rem; font-weight: 800; }
.news-all-scores {
  display: block;
  padding: 14px 18px;
  color: var(--med-blue);
  text-decoration: none;
  font-size: .84rem;
  font-weight: 750;
}
.news-rail-empty { padding: 18px; color: var(--ink-soft); }
.news-desk-panel {
  padding: 22px;
  color: var(--on-dark);
  border: 0;
  background: linear-gradient(145deg, var(--deep-navy), var(--midnight));
}
.news-desk-panel h2 { margin: 5px 0 8px; font-size: 1.45rem; }
.news-desk-panel p { color: var(--on-dark-mid); font-size: .9rem; }
.news-topic-links { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.news-topic-links a {
  color: var(--on-dark);
  background: rgba(255,255,255,.10);
  border-radius: 999px;
  padding: 6px 10px;
  text-decoration: none;
  font-size: .78rem;
  transition: transform 160ms var(--ease-out), background-color 160ms ease;
}
.news-topic-links a:hover { transform: translateY(-2px); background: rgba(255,255,255,.14); }

.news-score-pulse {
  animation: newsLivePulse 2.2s ease-out infinite;
}
@keyframes newsLivePulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(229, 53, 43, .12); }
  48% { box-shadow: 0 0 0 8px rgba(229, 53, 43, 0); }
}

.news-motion-item {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition: opacity 520ms var(--ease-out), transform 620ms var(--ease-out);
  transition-delay: min(calc(var(--news-order, 0) * 65ms), 390ms);
}
.news-motion-item.is-visible { opacity: 1; transform: none; }

.news-empty-state {
  position: relative;
  min-height: 240px;
  max-width: 40rem;
  margin: clamp(24px, 5vw, 56px) auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 18px;
  padding: clamp(36px, 6vw, 64px) clamp(24px, 5vw, 48px);
  overflow: hidden;
  border: 1px solid var(--surface-line);
  border-radius: var(--r-xl, 20px);
  background: linear-gradient(150deg, var(--surface), var(--surface-sunk));
  box-shadow: 0 20px 48px rgba(7, 27, 51, .08);
}
.news-empty-state p {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.5;
  max-width: 34ch;
  color: var(--ink-mid, #475569);
}
.news-empty-mark {
  width: 46px;
  height: 62px;
  flex: none;
  clip-path: polygon(58% 0, 8% 56%, 45% 56%, 31% 100%, 92% 39%, 57% 39%);
  background: linear-gradient(160deg, #75b8ff, var(--electric));
  filter: drop-shadow(0 8px 14px rgba(37, 99, 235, .28));
  animation: newsEmptyCharge 3.6s ease-in-out infinite;
}
@keyframes newsEmptyCharge {
  0%, 100% { opacity: .62; transform: translateY(2px); }
  50% { opacity: 1; transform: translateY(-3px); }
}

.news-foot { background: var(--navy-900); border: 0; color: var(--on-shell-mid); }
.news-foot-inner { display: flex; align-items: center; gap: var(--s-5); text-align: left; }
.news-foot-inner strong { color: var(--white); font-size: 1.1rem; }
.news-foot-inner p { margin: 0; }
.news-foot-inner a { margin-inline-start: auto; color: var(--on-shell); }

@media (max-width: 980px) {
  .news-primary a { padding-inline: 11px; }
  .news-score-cta { display: none; }
  .news-home-grid { grid-template-columns: 1fr; }
  .news-rail { position: static; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .news-page { width: min(100% - 28px, 1320px); }
  .news-header-inner { min-height: 58px; gap: 16px; }
  .news-primary { margin-inline-start: auto; }
  .news-primary a { display: none; }
  .news-primary a[aria-current="page"], .news-primary a:first-child { display: flex; }
  .news-sports-inner { width: max-content; min-width: 100%; padding-inline: 14px; }
  .news-main { padding: 18px 14px 56px; }
  .news-masthead { min-height: 205px; padding: 26px 22px; border-radius: var(--r-lg); }
  .news-masthead .news-title { font-size: 2.7rem; }
  .news-mast-live { display: none; }
  .news-feature-grid, .news-list, .news-rail { grid-template-columns: 1fr; }
  .news-card-lead .news-card-figure img,
  .news-card-lead .news-card-fallback { aspect-ratio: 4 / 3; }
  .news-foot-inner { align-items: flex-start; flex-direction: column; gap: 8px; }
  .news-foot-inner a { margin-inline-start: 0; }
  .news-search-overlay { padding: 70px 12px 12px; }
  .news-search-dialog { padding: 16px; border-radius: var(--r-lg); }
}

@media (prefers-reduced-motion: reduce) {
  .news-masthead::before, .news-masthead::after, .news-mast-beam,
  .news-mast-orbit, .news-section-head::after, .news-score-pulse,
  .news-empty-mark, .news-hero-band::before { animation: none; }
  .news-progress, .news-progress::before { transition: none; }
  .news-motion-item { opacity: 1; transform: none; transition: none; }
  .news-card, .news-card::after, .news-card-figure img,
  .news-card-fallback, .news-live-match, .news-topic-links a,
  .news-mast-live { transition: none; }
}
[data-motion="off"] .news-masthead::before,
[data-motion="off"] .news-masthead::after,
[data-motion="off"] .news-mast-beam,
[data-motion="off"] .news-mast-orbit,
[data-motion="off"] .news-section-head::after,
[data-motion="off"] .news-score-pulse,
[data-motion="off"] .news-hero-band::before,
[data-motion="off"] .news-empty-mark { animation: none; }
[data-motion="off"] .news-progress,
[data-motion="off"] .news-progress::before { transition: none; }
[data-motion="off"] .news-motion-item { opacity: 1; transform: none; transition: none; }
[data-motion="off"] .news-card,
[data-motion="off"] .news-card::after,
[data-motion="off"] .news-card-figure img,
[data-motion="off"] .news-card-fallback,
[data-motion="off"] .news-live-match,
[data-motion="off"] .news-topic-links a,
[data-motion="off"] .news-mast-live { transition: none; }
