/* =====================================================================
   NEWS UI - text-first editorial design (no article images on the site)
   Loaded last by includes/header.php. Uses the theme tokens (--ux-*), so
   Admin -> Site Settings -> Theme colours and dark mode keep working.

   .tone-0 ... .tone-7   category colour (--k), picked by nx_tone() / window.ctTone()
   .nx-*                 shared atoms (kicker, badge, avatar, meta, rows, cols)
   .nxf-*                home "Featured Stories"      .nxl  home series lead story
   .nxp-*                /news + /news/category/*     .nx-side  sidebar lists
   ===================================================================== */

/* ---------- category tones ---------- */
.tone-0 { --k: #c8102e; } .tone-1 { --k: #1d4ed8; } .tone-2 { --k: #047857; } .tone-3 { --k: #b45309; }
.tone-4 { --k: #7c3aed; } .tone-5 { --k: #0e7490; } .tone-6 { --k: #be185d; } .tone-7 { --k: #4338ca; }
html[data-theme="dark"] .tone-0 { --k: #ff6b81; } html[data-theme="dark"] .tone-1 { --k: #6ea8ff; }
html[data-theme="dark"] .tone-2 { --k: #34d399; } html[data-theme="dark"] .tone-3 { --k: #fbbf24; }
html[data-theme="dark"] .tone-4 { --k: #b197fc; } html[data-theme="dark"] .tone-5 { --k: #22d3ee; }
html[data-theme="dark"] .tone-6 { --k: #f472b6; } html[data-theme="dark"] .tone-7 { --k: #8c9bff; }

:root {
  --nx-serif: var(--ux-heading-font, "Source Serif 4", Georgia, "Times New Roman", serif);
  --nx-r: 14px;
  --nx-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 2px 8px rgba(15, 23, 42, .04);
  --nx-shadow-hi: 0 2px 4px rgba(15, 23, 42, .06), 0 14px 32px -8px rgba(15, 23, 42, .18);
}
html[data-theme="dark"] { --nx-shadow: 0 1px 2px rgba(0, 0, 0, .3); --nx-shadow-hi: 0 14px 32px -8px rgba(0, 0, 0, .7); }

/* ---------- atoms ---------- */
.nx-kicker {
  display: inline-flex; align-items: center; gap: 7px; max-width: 100%;
  font-family: var(--ux-font); font-size: 11px; font-weight: 800; line-height: 1.2; letter-spacing: .075em; text-transform: uppercase;
  color: var(--k, var(--ux-red)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nx-kicker::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 2px; background: currentColor; }

.nx-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; line-height: 1; white-space: nowrap;
}
.nx-badge--hot { background: var(--ux-orange); color: #111; }
.nx-badge--hot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.nx-badge--glass { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.nx-badge--solid { background: var(--k, var(--ux-slate)); color: #fff; }
html[data-theme="dark"] .nx-badge--solid { color: #0d1117; }

.nx-avatar {
  flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, .14); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
  font-size: 13px; font-weight: 800; letter-spacing: .02em;
}
.nx-avatar--sm { width: 34px; height: 34px; font-size: 12px; background: color-mix(in srgb, var(--k, var(--ux-orange)) 14%, var(--ux-panel-bg)); color: var(--k, var(--ux-text)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--k, var(--ux-orange)) 30%, transparent); }

.nx-byline { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 12.5px; color: rgba(255, 255, 255, .72); }
.nx-byline b { font-size: 13.5px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx-byline--ink { color: var(--ux-muted); }
.nx-byline--ink b { color: var(--ux-text); }

.nx-cta { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: #fff; color: #111; font-size: 13px; font-weight: 800; transition: gap .2s var(--ux-ease), transform .2s var(--ux-ease); }
.nx-cta--ink { background: transparent; color: var(--k, var(--ux-link)); padding: 6px 0; }
a:hover .nx-cta, a:focus-visible .nx-cta { gap: 12px; }

.nx-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font-size: 12px; font-weight: 500; color: var(--ux-muted); font-variant-numeric: tabular-nums; }
.nx-meta > * + *::before { content: "\00B7"; margin: 0 7px; opacity: .7; }
.nx-arrow { display: inline-block; transition: transform .2s var(--ux-ease); color: var(--k, var(--ux-link)); font-weight: 700; }
a:hover .nx-arrow { transform: translateX(4px); }

/* section header (Featured Stories, More stories, Related) */
.nx-sechead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.nx-sechead h2, .nx-rel__h { display: flex; align-items: center; gap: 10px; margin: 0; font-family: var(--ux-font); font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: var(--ux-text); }
.nx-sechead__bar { width: 4px; height: 20px; border-radius: 4px; background: linear-gradient(180deg, var(--ux-orange), var(--ux-red)); }
.nx-sechead > a { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ux-link); text-decoration: none; }
.nx-sechead > a:hover { color: var(--ux-link-hover); text-decoration: none; }

/* =====================================================================
   HOME - FEATURED STORIES
   ===================================================================== */
.nxf { margin: 4px 0 26px; }
.nxf-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }

/* hero: dark editorial panel, typography carries it */
.nxf-hero { position: relative; min-width: 0; border-radius: var(--nx-r); overflow: hidden; isolation: isolate;
  background:
    radial-gradient(120% 80% at 100% 0%, color-mix(in srgb, var(--k, var(--ux-orange)) 42%, transparent) 0%, transparent 55%),
    radial-gradient(90% 70% at 0% 100%, rgba(255, 255, 255, .06) 0%, transparent 60%),
    linear-gradient(160deg, color-mix(in srgb, var(--ux-slate) 88%, #000) 0%, var(--ux-slate) 45%, color-mix(in srgb, var(--ux-slate) 70%, #000) 100%);
  box-shadow: var(--nx-shadow); }
html[data-theme="dark"] .nxf-hero { box-shadow: inset 0 0 0 1px var(--ux-border); }
.nxf-hero__link { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 18px; height: 100%; min-height: 340px; padding: 26px 26px 22px; color: #fff; text-decoration: none; }
.nxf-hero__link:hover, .nxf-hero__link:focus { color: #fff; text-decoration: none; }
.nxf-hero__deco { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.nxf-hero__deco::before { content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 44px 44px; -webkit-mask-image: linear-gradient(200deg, #000 0%, transparent 65%); mask-image: linear-gradient(200deg, #000 0%, transparent 65%); }
.nxf-hero__deco i { position: absolute; right: -90px; top: -90px; width: 340px; height: 340px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .09); }
.nxf-hero__deco i:nth-child(2) { width: 520px; height: 520px; right: -180px; top: -180px; border-color: rgba(255, 255, 255, .06); }
.nxf-hero__deco i:nth-child(3) { width: 200px; height: 200px; right: -20px; top: -20px; border: 0; background: radial-gradient(circle, color-mix(in srgb, var(--k, var(--ux-orange)) 55%, transparent), transparent 70%); opacity: .55; filter: blur(8px); }
.nxf-hero__top { display: flex; flex-wrap: wrap; gap: 8px; }
.nxf-hero__main { display: flex; flex-direction: column; gap: 14px; margin-top: auto; }
.nxf-hero__title { margin: 0; font-family: var(--nx-serif); font-size: clamp(26px, 3.1vw, 40px); font-weight: 700; line-height: 1.12; letter-spacing: -.015em; color: #fff; text-wrap: balance;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.nxf-hero__link:hover .nxf-hero__title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: rgba(255, 255, 255, .45); }
.nxf-hero__desc { max-width: 62ch; font-size: 15.5px; line-height: 1.6; color: rgba(255, 255, 255, .78);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nxf-hero__foot { display: flex; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); }

/* tiles: light cards, colour rule on top, big index number */
.nxf-tile { position: relative; min-width: 0; border-radius: var(--nx-r); background: var(--ux-panel-bg); border: 1px solid var(--ux-border); box-shadow: var(--nx-shadow); overflow: hidden;
  transition: transform .25s var(--ux-ease), box-shadow .25s var(--ux-ease), border-color .25s; }
.nxf-tile::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--k); }
.nxf-tile::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, color-mix(in srgb, var(--k) 7%, transparent) 0%, transparent 46%); }
.nxf-tile:hover { transform: translateY(-3px); box-shadow: var(--nx-shadow-hi); border-color: color-mix(in srgb, var(--k) 40%, var(--ux-border)); }
.nxf-tile__link { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 12px; height: 100%; min-height: 200px; padding: 18px 18px 16px; color: var(--ux-text); text-decoration: none; }
.nxf-tile__link:hover { color: var(--ux-text); text-decoration: none; }
.nxf-tile__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; min-width: 0; }
.nxf-tile__num { flex: none; margin-top: -4px; font-family: var(--nx-serif); font-size: 34px; font-weight: 700; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums;
  color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--k) 45%, transparent); }
.nxf-tile__title { font-family: var(--nx-serif); font-size: 19px; font-weight: 700; line-height: 1.28; letter-spacing: -.01em; color: var(--ux-text); text-wrap: pretty;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.nxf-tile__link:hover .nxf-tile__title { color: var(--ux-link-hover); }
.nxf-tile__desc { display: none; font-size: 13.5px; line-height: 1.55; color: var(--ux-muted); -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nxf-tile__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--ux-border); font-size: 12px; font-weight: 600; color: var(--ux-muted); }

/* strip: 4 numbered headlines */
.nxf-strip { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: 1fr; border-radius: var(--nx-r); background: var(--ux-panel-bg); border: 1px solid var(--ux-border); box-shadow: var(--nx-shadow); overflow: hidden; }
.nxf-strip li + li { border-top: 1px solid var(--ux-border); }
.nxf-strip a { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; height: 100%; padding: 15px 16px; color: var(--ux-text); text-decoration: none; transition: background .15s; }
.nxf-strip a:hover { background: var(--ux-hover-bg); text-decoration: none; }
.nxf-strip__n { font-family: var(--nx-serif); font-size: 28px; font-weight: 700; line-height: .9; color: var(--k); font-variant-numeric: tabular-nums; }
.nxf-strip__tx { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.nxf-strip__title { font-size: 14.5px; font-weight: 700; line-height: 1.38; color: var(--ux-text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nxf-strip a:hover .nxf-strip__title { color: var(--ux-link-hover); }
.nxf-strip time { font-size: 11.5px; font-weight: 500; color: var(--ux-muted); }

@media (min-width: 640px) {
  .nxf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nxf-hero { grid-column: 1 / -1; }
  .nxf-hero__link { min-height: 380px; padding: 32px 32px 26px; }
  .nxf-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nxf-strip li + li { border-top: 0; }
  .nxf-strip li:nth-child(n+3) { border-top: 1px solid var(--ux-border); }
  .nxf-strip li:nth-child(2n) { border-left: 1px solid var(--ux-border); }
}
@media (min-width: 1024px) {
  .nxf-grid { grid-template-columns: minmax(0, 1.9fr) repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); }
  .nxf-hero { grid-column: 1; grid-row: 1 / span 2; }
  .nxf-hero__link { min-height: 448px; padding: 36px 36px 28px; }
  .nxf-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .nxf-strip li:nth-child(n+3) { border-top: 0; }
  .nxf-strip li + li { border-left: 1px solid var(--ux-border); }
}
@media (max-width: 639px) {
  .nxf-grid { gap: 10px; }
  .nxf-hero__link { min-height: 340px; padding: 22px 20px 18px; gap: 14px; }
  .nxf-hero__title { font-size: 25px; -webkit-line-clamp: 5; }
  .nxf-hero__desc { font-size: 14.5px; }
  .nxf-hero .nx-cta { padding: 8px 12px; font-size: 12px; }
  .nxf-hero .nx-avatar { width: 34px; height: 34px; font-size: 12px; }
  .nxf-tile__link { min-height: 0; padding: 16px; gap: 10px; }
  .nxf-tile__title { font-size: 17.5px; -webkit-line-clamp: 3; }
  .nxf-tile__num { font-size: 28px; }
  .nx-sechead h2 { font-size: 18px; }
}

/* =====================================================================
   HOME - SERIES NEWS BLOCK (partials/home_news.php)
   ===================================================================== */
.hm-body:has(> .nxl) { padding: 0; }
.nxl { position: relative; border-bottom: 1px solid var(--ux-border);
  background: linear-gradient(135deg, color-mix(in srgb, var(--k) 7%, var(--ux-panel-bg)) 0%, var(--ux-panel-bg) 60%); }
.nxl::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--k); }
.nxl__link { display: flex; flex-direction: column; gap: 12px; padding: 24px 24px 20px 28px; color: var(--ux-text); text-decoration: none; }
.nxl__link:hover { color: var(--ux-text); text-decoration: none; }
.nxl__top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.nxl__title { font-family: var(--nx-serif); font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; line-height: 1.18; letter-spacing: -.015em; color: var(--ux-text); text-wrap: balance; }
.nxl__link:hover .nxl__title { color: var(--ux-link-hover); }
.nxl__desc { max-width: 72ch; font-size: 15px; line-height: 1.62; color: var(--ux-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nxl__foot { display: flex; align-items: center; gap: 10px; margin-top: 4px; }

.nx-cols { display: grid; grid-template-columns: 1fr; border-bottom: 1px solid var(--ux-border); }
.nx-col { position: relative; display: flex; flex-direction: column; gap: 9px; min-width: 0; padding: 18px 20px 16px; color: var(--ux-text); text-decoration: none; transition: background .15s; }
.nx-col::before { content: ""; position: absolute; left: 20px; top: 0; width: 32px; height: 3px; border-radius: 0 0 3px 3px; background: var(--k); transition: width .25s var(--ux-ease); }
.nx-col:hover { background: var(--ux-hover-bg); color: var(--ux-text); text-decoration: none; }
.nx-col:hover::before { width: 64px; }
.nx-col + .nx-col { border-top: 1px solid var(--ux-border); }
.nx-col__title { font-family: var(--nx-serif); font-size: 17px; font-weight: 700; line-height: 1.32; color: var(--ux-text); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.nx-col:hover .nx-col__title { color: var(--ux-link-hover); }
.nx-col .nx-meta { margin-top: auto; }
@media (min-width: 640px) {
  .nx-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nx-col + .nx-col { border-top: 0; border-left: 1px solid var(--ux-border); }
}

/* compact story rows */
.nx-rows { display: flex; flex-direction: column; }
.nx-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--ux-border); transition: background .15s; }
.nx-row:last-child { border-bottom: 0; }
.nx-row:hover { background: color-mix(in srgb, var(--ux-hover-bg) 70%, transparent); }
.nx-row::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 0 3px 3px 0; background: var(--k, var(--ux-border)); opacity: 0; transition: opacity .2s; }
.nx-row:hover::before { opacity: 1; }
.nx-row__body { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.nx-row__title { margin: 0; font-family: var(--nx-serif); font-size: 18.5px; font-weight: 700; line-height: 1.3; letter-spacing: -.008em; }
.nx-row__title a { color: var(--ux-text); text-decoration: none; }
.nx-row__title a::after { content: ""; position: absolute; inset: 0; }   /* whole row clickable */
.nx-row__title a:hover, .nx-row:hover .nx-row__title a { color: var(--ux-link-hover); text-decoration: none; }
.nx-row__desc { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ux-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nx-row--dated { grid-template-columns: 56px minmax(0, 1fr); }
.nx-row__date { display: flex; flex-direction: column; align-items: center; justify-content: center; align-self: start; width: 56px; height: 60px; border-radius: 12px;
  background: color-mix(in srgb, var(--k) 9%, var(--ux-panel-bg)); color: var(--k); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--k) 22%, transparent); font-variant-numeric: tabular-nums; }
.nx-row__date b { font-family: var(--nx-serif); font-size: 24px; font-weight: 700; line-height: 1; }
.nx-row__date span { margin-top: 3px; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.nx-rows--card { background: var(--ux-panel-bg); border: 1px solid var(--ux-border); border-radius: var(--nx-r); box-shadow: var(--nx-shadow); overflow: hidden; }
.nx-rows--flush .nx-row { padding-left: 4px; padding-right: 4px; }
.nx-rows--flush .nx-row::before { left: -16px; }
@media (max-width: 639px) {
  .nx-row { padding: 16px; gap: 12px; }
  .nx-row__title { font-size: 16.5px; }
  .nx-row--dated { grid-template-columns: 46px minmax(0, 1fr); }
  .nx-row__date { width: 46px; height: 52px; border-radius: 10px; }
  .nx-row__date b { font-size: 20px; }
  .nxl__link { padding: 20px 16px 16px 20px; }
  .nx-col { padding: 16px; }
  .nx-col::before { left: 16px; }
}

.nx-more { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; border-top: 1px solid var(--ux-border); font-size: 13.5px; font-weight: 800; color: var(--ux-link); text-decoration: none; transition: background .15s, gap .2s; }
.nx-more:hover { background: var(--ux-hover-bg); color: var(--ux-link-hover); text-decoration: none; gap: 12px; }
.nx-more__n { display: inline-grid; place-items: center; min-width: 26px; height: 20px; padding: 0 7px; border-radius: 999px; background: var(--ux-hover-bg); color: var(--ux-muted); font-size: 11.5px; font-weight: 800; }
.nx-rows + .nx-more, .nx-cols + .nx-more { border-top: 1px solid var(--ux-border); }
.hm-body > .nx-rows + .nx-more { border-top: 1px solid var(--ux-border); }
.hm-block, .hm-news { border-radius: var(--nx-r); box-shadow: var(--nx-shadow); }
.hm-block .cb-head h2 { font-size: 19px; letter-spacing: -.02em; }

/* =====================================================================
   SIDEBAR (includes/sidebar.php)
   ===================================================================== */
.cb-side .cb-card { border-radius: var(--nx-r); box-shadow: var(--nx-shadow); }
.nx-side .cb-trend a { grid-template-columns: 30px minmax(0, 1fr); padding: 13px 16px; position: relative; }
.nx-side .cb-trend .cb-num { font-family: var(--nx-serif); font-size: 26px; color: color-mix(in srgb, var(--ux-muted) 45%, transparent); }
.nx-side .cb-trend li:nth-child(-n+3) .cb-num { color: var(--k, var(--ux-orange)); }
.nx-side .cb-cat { color: var(--k, var(--ux-red)); font-weight: 800; letter-spacing: .07em; }
.nx-side .cb-tt { font-size: 14px; line-height: 1.4; }

.nx-mv { list-style: none; margin: 0; padding: 0; counter-reset: nxmv; }
.nx-mv li + li a { border-top: 1px solid var(--ux-border); }
.nx-mv a { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; padding: 13px 16px; color: var(--ux-text); text-decoration: none; transition: background .15s; }
.nx-mv a::before { counter-increment: nxmv; content: counter(nxmv, decimal-leading-zero); font-size: 12px; font-weight: 800; color: var(--ux-muted); font-variant-numeric: tabular-nums; padding-top: 2px; }
.nx-mv a:hover { background: var(--ux-hover-bg); text-decoration: none; }
.nx-mv__tx { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.nx-mv__title { font-size: 14px; font-weight: 700; line-height: 1.4; color: var(--ux-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nx-mv a:hover .nx-mv__title { color: var(--ux-link-hover); }
.nx-mv__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11.5px; font-weight: 500; color: var(--ux-muted); }
.nx-mv__v { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: var(--ux-text); }
.nx-mv__v .fa { color: var(--k); }
.nx-mv__bar { display: block; height: 4px; border-radius: 4px; background: var(--ux-hover-bg); overflow: hidden; }
.nx-mv__bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--k) 55%, transparent), var(--k)); }

.nx-tl { list-style: none; margin: 0; padding: 4px 0; position: relative; }
.nx-tl::before { content: ""; position: absolute; left: 82px; top: 18px; bottom: 18px; width: 1px; background: var(--ux-border); }
.nx-tl a { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 22px; padding: 11px 16px; color: var(--ux-text); text-decoration: none; transition: background .15s; }
.nx-tl a::before { content: ""; position: absolute; left: 79px; top: 17px; width: 7px; height: 7px; border-radius: 50%; background: var(--k); box-shadow: 0 0 0 3px var(--ux-panel-bg); }
.nx-tl a:hover { background: var(--ux-hover-bg); text-decoration: none; }
.nx-tl__t { padding-top: 1px; font-size: 11.5px; font-weight: 700; color: var(--ux-muted); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.nx-tl__tx { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.nx-tl .nx-kicker { font-size: 10px; }
.nx-tl .nx-kicker::before { display: none; }
.nx-tl__title { font-size: 13.5px; font-weight: 700; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nx-tl a:hover .nx-tl__title { color: var(--ux-link-hover); }

/* =====================================================================
   /news + /news/category/{slug}  (assets/js/pages/news.html)
   ===================================================================== */
.nxp-head { margin: 0 0 18px; }
.nxp-titlebar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 18px; padding: 2px 0 14px; border-bottom: 2px solid var(--ux-text); }
.nxp-eyebrow { display: block; margin-bottom: 4px; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ux-red); }
.nxp-title { margin: 0; font-family: var(--nx-serif); font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; line-height: 1.05; letter-spacing: -.02em; color: var(--ux-text); }
.nxp-titlebar__side { display: flex; align-items: center; gap: 14px; padding-bottom: 4px; }
.nxp-count { font-size: 13px; color: var(--ux-muted); }
.nxp-count b { color: var(--ux-text); font-weight: 800; font-variant-numeric: tabular-nums; }
.nxp-allcats { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--ux-border); background: var(--ux-panel-bg); font-size: 12.5px; font-weight: 700; color: var(--ux-text); text-decoration: none; transition: border-color .15s, color .15s; }
.nxp-allcats:hover { border-color: var(--ux-text); color: var(--ux-text); text-decoration: none; }
.nxp-desc { margin: 12px 0 0; font-size: 15px; line-height: 1.6; color: var(--ux-muted); }
.nxp-chips { display: flex; gap: 8px; margin-top: 14px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.nxp-chips::-webkit-scrollbar { display: none; }
.nxp-chips .chip-sk { display: flex; gap: 8px; }
.nxp-chip { flex: none; display: inline-flex; align-items: center; height: 34px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--ux-border); background: var(--ux-panel-bg); font-size: 13px; font-weight: 600; color: var(--ux-text); text-decoration: none; white-space: nowrap; transition: border-color .15s, background .15s, color .15s; }
.nxp-chip:hover { border-color: var(--ux-text); color: var(--ux-text); text-decoration: none; }
.nxp-chip.is-active { background: var(--ux-slate); border-color: var(--ux-slate); color: #fff; }
html[data-theme="dark"] .nxp-chip.is-active { background: var(--ux-text); border-color: var(--ux-text); color: var(--ux-ink); }

.nxp-top { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 26px; }
.nxp-hero .nxf-hero__link { min-height: 380px; }
.nxp-hero .nxf-hero__title { font-size: clamp(26px, 2.7vw, 34px); }
.nxp-stack { display: flex; flex-direction: column; border-radius: var(--nx-r); background: var(--ux-panel-bg); border: 1px solid var(--ux-border); box-shadow: var(--nx-shadow); overflow: hidden; }
.nxp-stack__h { margin: 0; padding: 14px 18px 12px; border-bottom: 1px solid var(--ux-border); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ux-muted); }
.nxp-item { flex: 1; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 16px 18px; color: var(--ux-text); text-decoration: none; transition: background .15s; }
.nxp-item + .nxp-item { border-top: 1px solid var(--ux-border); }
.nxp-item:hover { background: var(--ux-hover-bg); color: var(--ux-text); text-decoration: none; }
.nxp-item__n { font-family: var(--nx-serif); font-size: 30px; font-weight: 700; line-height: .9; color: var(--k); font-variant-numeric: tabular-nums; }
.nxp-item__tx { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.nxp-item__title { font-family: var(--nx-serif); font-size: 17px; font-weight: 700; line-height: 1.3; color: var(--ux-text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nxp-item:hover .nxp-item__title { color: var(--ux-link-hover); }
.nxp-sub { margin-top: 4px; }
.nxp-sk-hero { display: flex; flex-direction: column; justify-content: flex-end; min-height: 380px; padding: 28px; border-radius: var(--nx-r); background: var(--ux-panel-bg); border: 1px solid var(--ux-border); }
.nxp-sk-item { display: flex; flex-direction: column; padding: 18px; }
.nxp-sk-item + .nxp-sk-item { border-top: 1px solid var(--ux-border); }
@media (min-width: 900px) {
  .nxp-top { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
}
.nx-loadmore { display: flex; align-items: center; justify-content: center; width: 100%; height: 48px; margin-top: 16px; border-radius: 999px; border: 1px solid var(--ux-border); background: var(--ux-panel-bg); color: var(--ux-text); font-size: 14px; font-weight: 800; cursor: pointer; box-shadow: var(--nx-shadow); transition: border-color .15s, transform .15s; }
.nx-loadmore:hover:not([disabled]) { border-color: var(--ux-text); transform: translateY(-1px); }
.nx-loadmore[disabled] { opacity: .6; cursor: default; }

/* shared <news-card> (no media) */
.nx-card { position: relative; border-top: 3px solid var(--k) !important; }
.nx-card .nc__body { padding: 16px; gap: 8px; }
.nx-card__title { font-family: var(--nx-serif); font-size: 17px; line-height: 1.32; }

/* series / team / player / venue "News" tab (partials/news_list.php) */
.sr-news.nx-rows { padding: 0; }
.sr-news .nx-row { border-bottom: 1px solid var(--ux-border); }
.sr-news .nx-row:last-child { border-bottom: 0; }
.nx-skrow { grid-template-columns: 1fr !important; }

/* match centre news tab (scorecard-live.php) */
.mc-nw .nx-kicker { margin-bottom: 6px; font-size: 11px; }
.mc-nw h3 { font-family: var(--nx-serif); }

/* =====================================================================
   ARTICLE PAGE (news-detail.php)
   ===================================================================== */
.nx-article { position: relative; overflow: hidden; }
.nx-article::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--k), color-mix(in srgb, var(--k) 30%, transparent)); }
.nx-article .ct-title { font-family: var(--nx-serif); font-size: clamp(28px, 4vw, 42px); font-weight: 700; line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; margin: 10px 0 14px; }
.nx-article .ct-excerpt { font-size: 18.5px; line-height: 1.55; color: var(--ux-muted); border-left: 3px solid var(--k); padding-left: 14px; }
.nx-article .ct-tag { background: color-mix(in srgb, var(--k) 12%, var(--ux-panel-bg)); color: var(--k); border-radius: 999px; padding: 4px 11px; letter-spacing: .07em; }
.nx-article a.ct-tag:hover { background: var(--k); color: #fff; }
.nx-artmeta { display: flex; align-items: center; gap: 12px; padding: 14px 0; }
.nx-artmeta__by { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nx-artmeta__sub { display: flex; flex-wrap: wrap; gap: 0; font-size: 12.5px; color: var(--ux-muted); }
.nx-artmeta__sub > * + *::before { content: "\00B7"; margin: 0 7px; }
.nx-article .ct-body { font-family: var(--nx-serif); font-size: 19px; line-height: 1.72; }
.nx-article .ct-body h2, .nx-article .ct-body h3 { font-family: var(--ux-font); letter-spacing: -.015em; }
@media (max-width: 767px) { .nx-article .ct-body { font-size: 17.5px; } .nx-article .ct-excerpt { font-size: 16.5px; } }

.nx-rel { padding: 18px 0 0 !important; overflow: hidden; }
.nx-rel__h { padding: 0 18px 14px; font-size: 18px; border-bottom: 1px solid var(--ux-border); }
.nx-rel__grid { display: grid; grid-template-columns: 1fr; }
.nx-rel__grid .nx-col + .nx-col { border-top: 1px solid var(--ux-border); }
@media (min-width: 640px) {
  .nx-rel__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nx-rel__grid .nx-col + .nx-col { border-top: 0; }
  .nx-rel__grid .nx-col:nth-child(n+3) { border-top: 1px solid var(--ux-border); }
  .nx-rel__grid .nx-col:nth-child(2n) { border-left: 1px solid var(--ux-border); }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  .nxf-tile, .nx-arrow, .nx-cta, .nx-col::before, .nx-loadmore { transition: none; }
  .nxf-tile:hover { transform: none; }
}
.nxp-item__meta { font-size: 12px; font-weight: 500; color: var(--ux-muted); font-variant-numeric: tabular-nums; }
