/* Sports news page (public/news.html, news_timeline.html). Design v4: navy + mint.
   Rust (#c2410c family) is allowed only for sport tag chips and the newest timeline dot. Tokens only. */
:root {
  --b-mint: var(--accent, #5ce1ad);
  --b-mint-hover: var(--accent-hover, #74eabd);
  --b-mint-ink: var(--accent-text, #5ce1ad);
  --b-mint-soft: var(--accent-soft, rgba(92, 225, 173, .14));
  --b-on-mint: var(--on-accent, #062417);
  --b-live: var(--live, #ff4d4f);
  --nw-rust: #f26b3a;   /* newest timeline dot */
  --nw-side-w: 372px;
}

/* No bet slip on news (nothing to bet on here); the sports sidebar stays. */
@media (min-width: 1100px) {
  body.page-news .shell { grid-template-columns: minmax(0, 1fr); }
  body.page-news .side-slip { display: none; }
}
@media (min-width: 1280px) { body.page-news .shell { grid-template-columns: var(--side-w, 248px) minmax(0, 1fr); } }
body.page-news .main :is(.nc, .nw-pill):is(:hover, :active) { transform: none !important; }
body.page-news .fx-pre { opacity: 1 !important; transform: none !important; }

/* ---- Layout: main column + live column ---------------------------------- */
.nw-layout { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.nw-main, .nw-side { display: contents; }
.nw-head { order: 1; }
.nw-searchnote { order: 2; }
.nw-hero { order: 3; min-width: 0; }
.nw-score { order: 4; }
.nw-tl { order: 5; }
.nw-rows { order: 6; min-width: 0; }
@media (min-width: 769px) and (max-width: 1099px) {
  .nw-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .nw-head, .nw-searchnote, .nw-hero, .nw-rows { grid-column: 1 / -1; }
  .nw-score { grid-column: 1; } .nw-tl { grid-column: 2; }
}
@media (min-width: 1100px) {
  .nw-layout { display: grid; grid-template-columns: minmax(0, 1fr) var(--nw-side-w); gap: 20px; align-items: start; }
  .nw-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
  .nw-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; position: sticky; top: calc(var(--header-h, 64px) + 16px); }
}
@media (min-width: 1100px) and (max-width: 1365px) { :root { --nw-side-w: 320px; } }

/* ---- Title + sport chips ------------------------------------------------ */
.nw-head { display: grid; gap: 14px; margin: 0; min-width: 0; }
.nw-title { margin: 0; font-size: 32px; line-height: 38px; font-weight: 700; letter-spacing: -.01em; color: var(--text, #eef2f6); }
.nw-chips { display: flex; align-items: center; gap: 10px; min-width: 0; position: relative; }
.nw-pills { display: flex; align-items: center; gap: 12px; flex: 1 1 auto; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.nw-pills::-webkit-scrollbar { display: none; }
.nw-pill { display: inline-flex; align-items: center; justify-content: center; gap: 10px; flex: none; height: 40px; padding: 0 22px; border-radius: 8px; background: transparent; border: 1px solid var(--border-strong, #2e3946); color: var(--text, #eef2f6); font-weight: 500; font-size: 15px; text-decoration: none; white-space: nowrap; transition: background-color .15s ease-out, color .15s ease-out, border-color .15s ease-out; }
.nw-pill .icon { width: 20px; height: 20px; color: var(--text-2, #c3ccd6); }
.nw-pill:hover { border-color: var(--muted, #8e9aa8); background: var(--surface, #151b23); }
.nw-pill.is-active { background: var(--b-mint); border-color: var(--b-mint); color: var(--b-on-mint); font-weight: 700; padding: 0 28px; }
.nw-pill.is-active .icon { color: currentColor; }
.nw-pill.is-active:hover { background: var(--b-mint-hover); }
.nw-pill:focus-visible, .nw-more-btn:focus-visible, .nw-more-item:focus-visible { outline: 2px solid var(--b-mint); outline-offset: 2px; }
.nw-more { position: relative; flex: none; margin-left: auto; }
.nw-more-btn { width: 46px; height: 40px; border-radius: 8px; display: grid; place-items: center; border: 1px solid var(--border-strong, #2e3946); color: var(--text, #eef2f6); cursor: pointer; list-style: none; transition: background-color .15s ease-out, border-color .15s ease-out; }
.nw-more-btn::-webkit-details-marker { display: none; }
.nw-more-btn .icon { width: 18px; height: 18px; transition: transform .15s ease-out; }
.nw-more-btn:hover, .nw-more[open] .nw-more-btn { background: var(--surface, #151b23); border-color: var(--muted, #8e9aa8); }
.nw-more[open] .nw-more-btn .icon { transform: rotate(180deg); }
.nw-more.is-active .nw-more-btn { border-color: var(--b-mint); color: var(--b-mint-ink); }
.nw-more-menu { position: absolute; z-index: 30; top: calc(100% + 6px); right: 0; min-width: 230px; background: var(--surface, #151b23); border: 1px solid var(--border-strong, #2e3946); border-radius: 10px; box-shadow: 0 12px 32px rgba(0, 0, 0, .35); padding: 6px; display: grid; }
.nw-more-item { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 10px; border-radius: 6px; color: var(--text, #eef2f6); text-decoration: none; font-size: 14px; font-weight: 500; }
.nw-more-item .icon { width: 18px; height: 18px; color: var(--text-2, #c3ccd6); flex: none; }
.nw-more-item small { margin-left: auto; color: var(--muted, #8e9aa8); font-size: 12px; }
.nw-more-item:hover { background: var(--surface-2, #1b232d); }
.nw-more-item.is-active { background: var(--b-mint-soft); color: var(--b-mint-ink); }

.nw-searchnote { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--text-2, #c3ccd6); font-size: 14px; }
.nw-searchnote .icon { width: 16px; height: 16px; color: var(--muted, #8e9aa8); }
.nw-searchnote a { color: var(--b-mint-ink); font-weight: 600; }

/* ---- Hero --------------------------------------------------------------- */
.nw-hero .nc-hero { width: 100%; }
.nw-hero-empty { position: relative; min-height: 300px; border-radius: 12px; display: flex; align-items: center; overflow: hidden; background: var(--surface, #151b23); border: 1px solid var(--border, #232c37); }
.nw-hero-empty-art { position: absolute; right: 8%; top: 50%; transform: translateY(-50%); color: var(--muted, #8e9aa8); opacity: .2; }
.nw-hero-empty-art .icon { width: 180px; height: 180px; }
.nw-hero-empty-body { position: relative; z-index: 2; padding: 28px; max-width: 620px; display: grid; justify-items: start; gap: 10px; }
.nw-hero-empty h2 { margin: 0; font-size: 28px; line-height: 1.15; font-weight: 800; font-style: italic; color: var(--text, #eef2f6); }
.nw-hero-empty p { margin: 0; color: var(--text-2, #c3ccd6); font-size: 15px; }
.nw-hero-empty a { color: var(--b-mint-ink); font-weight: 600; }

/* ---- Side cards (shared) ------------------------------------------------ */
.nw-score, .nw-tl { background: var(--surface, #151b23); border: 1px solid var(--border, #232c37); border-radius: 12px; min-width: 0; margin: 0; }

/* ---- Live score card ---------------------------------------------------- */
.nw-score { display: flex; flex-direction: column; padding: 4px 14px 10px; }
.nw-score-top { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 10px 0 11px; border-bottom: 1px solid var(--border, #232c37); }
.nw-score-comp { margin: 0; font-size: 16px; line-height: 22px; font-weight: 500; color: var(--text, #eef2f6); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1 1 0; padding-left: 12px; border-left: 1px solid var(--border-strong, #2e3946); }
.nw-live { display: inline-flex; align-items: center; gap: 8px; color: var(--b-live); font-size: 16px; font-weight: 600; flex: none; }
.nw-live .dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; animation: nw-pulse 1.6s ease-in-out infinite; }
.nw-live[data-st="delayed"] { color: var(--warning, #f5b84b); }
@keyframes nw-pulse { 50% { opacity: .35; } }
.nw-final { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 6px; background: var(--surface-2, #1b232d); border: 1px solid var(--border, #232c37); color: var(--text-2, #c3ccd6); font-size: 12px; font-weight: 600; flex: none; }
.nw-teams { list-style: none; margin: 0; padding: 0; display: grid; }
.nw-team { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--border, #232c37); }
.nw-team .crest { width: 46px; height: 46px; border-radius: 50%; }
.nw-team-name { min-width: 0; font-size: 18px; line-height: 24px; font-weight: 500; color: var(--text, #eef2f6); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nw-team-score { display: grid; justify-items: end; text-align: right; font-variant-numeric: tabular-nums; padding-right: 10px; }
.nw-team-score b { font-size: 28px; line-height: 32px; font-weight: 700; color: var(--text, #eef2f6); }
.nw-team-score small { color: var(--muted, #8e9aa8); font-size: 12px; }
.nw-team-score small:empty { display: none; }
.nw-period { margin: 0; padding: 12px 8px; font-size: 14px; line-height: 20px; color: var(--text-2, #c3ccd6); border-bottom: 1px solid var(--border, #232c37); }
.nw-score-actions { display: grid; gap: 4px; padding-top: 14px; }
.nw-follow { margin: 0; }
.nw-follow-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 44px; border: 0; border-radius: 8px; background: var(--b-mint); color: var(--b-on-mint); font: inherit; font-size: 17px; font-weight: 700; text-decoration: none; cursor: pointer; transition: background-color .15s ease-out; }
.nw-follow-btn:hover { background: var(--b-mint-hover); color: var(--b-on-mint); }
.nw-follow-btn .icon { width: 20px; height: 20px; }
.nw-follow-btn.is-on { background: var(--b-mint-soft); color: var(--b-mint-ink); box-shadow: inset 0 0 0 1px var(--b-mint); }
.nw-follow-btn.is-on .icon { fill: currentColor; }
.nw-follow-btn:focus-visible { outline: 2px solid var(--b-mint); outline-offset: 2px; }
.nw-score-link { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; color: var(--text, #eef2f6); font-size: 16px; font-weight: 500; text-decoration: none; }
.nw-score-link:hover { color: var(--b-mint-ink); }
.nw-score-link .icon { width: 16px; height: 16px; }
.nw-score-empty { display: grid; gap: 12px; justify-items: center; text-align: center; padding: 20px 0 6px; font-size: 14px; color: var(--text, #eef2f6); }
.nw-score-empty p { margin: 0; }
.nw-empty-icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2, #1b232d); border: 1px solid var(--border, #232c37); color: var(--text-2, #c3ccd6); }
.nw-empty-icon .icon { width: 22px; height: 22px; }

/* ---- Live updates timeline --------------------------------------------- */
.nw-tl { padding: 0 14px 6px; display: flex; flex-direction: column; overflow: hidden; }
.nw-tl-title { display: flex; align-items: center; gap: 12px; margin: 0; padding: 16px 2px 14px; border-bottom: 1px solid var(--border, #232c37); font-size: 22px; line-height: 28px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--text, #eef2f6); }
.nw-tl-icon { display: grid; place-items: center; color: var(--text, #eef2f6); }
.nw-tl-icon .icon { width: 24px; height: 24px; }
.nw-tl-list { list-style: none; margin: 0; padding: 16px 2px 2px; display: grid; }
.nw-tl-item { display: grid; grid-template-columns: 74px 22px minmax(0, 1fr); column-gap: 10px; position: relative; }
.nw-tl-time { font-size: 14px; line-height: 20px; font-weight: 400; color: var(--text-2, #c3ccd6); white-space: nowrap; font-variant-numeric: tabular-nums; text-transform: uppercase; }
.nw-tl-dot { position: relative; display: block; }
.nw-tl-dot::before { content: ""; position: absolute; left: 50%; top: 4px; width: 13px; height: 13px; margin-left: -6.5px; border-radius: 50%; background: var(--surface, #151b23); border: 2px solid var(--muted, #8e9aa8); z-index: 1; box-sizing: border-box; }
.nw-tl-dot::after { content: ""; position: absolute; left: 50%; top: 19px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--border-strong, #2e3946); }
.nw-tl-item:last-child .nw-tl-dot::after { display: none; }
.nw-tl-item.is-latest .nw-tl-dot::before { background: var(--nw-rust); border-color: var(--nw-rust); }
.nw-tl-body { display: grid; gap: 2px; padding: 0 0 16px; color: var(--text, #eef2f6); text-decoration: none; min-width: 0; }
.nw-tl-body b { font-size: 15px; line-height: 21px; font-weight: 600; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.nw-tl-body:hover b { color: var(--b-mint-ink); }
.nw-tl-body:focus-visible { outline: 2px solid var(--b-mint); outline-offset: 2px; border-radius: 6px; }
.nw-tl-detail { font-size: 13px; line-height: 18px; color: var(--text-2, #c3ccd6); }
.nw-tl-more { display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px; align-self: flex-end; min-height: 40px; color: var(--muted, #8e9aa8); font-size: 13px; font-weight: 500; text-decoration: none; }
.nw-tl-more:hover { color: var(--b-mint-ink); }
.nw-tl-more .icon { width: 14px; height: 14px; }
.nw-tl-empty { margin: 0; padding: 16px 2px; font-size: 14px; color: var(--muted, #8e9aa8); }
/* full timeline page */
.nw-tl-full { max-width: 860px; padding-bottom: 8px; }
.nw-tl-headrow { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; border-bottom: 1px solid var(--border, #232c37); }
.nw-tl-headrow .nw-tl-title { border-bottom: 0; }
.nw-tl-lede { margin: 12px 2px 0; font-size: 13px; line-height: 20px; max-width: 68ch; color: var(--muted, #8e9aa8); }
.nw-tl-full .nw-tl-item { grid-template-columns: 80px 22px minmax(0, 1fr); }
.page-news-timeline .nw-head { margin-bottom: 16px; }

/* ---- Latest headlines --------------------------------------------------- */
.nw-section-title { margin: 6px 0 12px; font-size: 26px; line-height: 32px; font-weight: 700; letter-spacing: -.01em; color: var(--text, #eef2f6); }
.nw-row-grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .nw-row-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.nw-row-grid .nc-row { min-height: 166px; gap: 18px; padding: 8px 14px 8px 8px; }
.nw-row-grid .nc-row .nc-media { width: 166px; min-height: 148px; }
.nw-row-grid .nc-row .nc-body { gap: 6px; }
.nw-row-grid .nc-row .nc-title { font-size: 17px; line-height: 21px; }
.nw-row-grid .nc-row .nc-tag { margin-bottom: 2px; }
.nw-pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-top: 16px; font-size: 13px; }
.nw-pager > :last-child { justify-self: end; }
.nw-pager > :first-child { justify-self: start; }
.nw-pager-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--border-strong, #2e3946); color: var(--text, #eef2f6); font-weight: 600; font-size: 14px; text-decoration: none; }
.nw-pager-btn:hover { border-color: var(--b-mint); color: var(--b-mint-ink); }
.nw-pager-btn .icon { width: 16px; height: 16px; }
.nw-pager-info { color: var(--muted, #8e9aa8); }
.nw-empty { display: grid; justify-items: center; gap: 8px; padding: 28px; border: 1px dashed var(--border-strong, #2e3946); border-radius: 12px; color: var(--muted, #8e9aa8); text-align: center; }
.nw-empty .icon { width: 28px; height: 28px; }
.nw-empty p { margin: 0; }
.nw-credit { font-size: 12px; margin: 16px 0 0; color: var(--muted, #8e9aa8); }

/* ---- Mobile ------------------------------------------------------------- */
@media (max-width: 768px) {
  .nw-layout { gap: 14px; }
  .nw-head { gap: 12px; }
  .nw-title { font-size: 24px; line-height: 30px; }
  .nw-pills { gap: 8px; margin-right: -2px; }
  .nw-pill { height: 44px; padding: 0 16px; font-size: 14px; gap: 8px; }
  .nw-pill.is-active { padding: 0 20px; }
  .nw-pill .icon { width: 18px; height: 18px; }
  .nw-more { position: static; }
  .nw-more-btn { width: 44px; height: 44px; }
  .nw-more-menu { right: 0; left: auto; top: calc(100% + 6px); max-height: 60vh; overflow-y: auto; }
  .nw-section-title { font-size: 22px; line-height: 28px; margin: 4px 0 10px; }
  .nw-row-grid { gap: 10px; }
  .nw-row-grid .nc-row { min-height: 0; gap: 12px; padding: 8px; }
  .nw-row-grid .nc-row .nc-media { width: 104px; min-height: 96px; }
  .nw-row-grid .nc-row .nc-title { font-size: 15px; line-height: 20px; }
  .nw-team-name { font-size: 16px; }
  .nw-team .crest { width: 40px; height: 40px; }
  .nw-team-score b { font-size: 24px; }
  .nw-tl-title { font-size: 20px; }
  .nw-tl-item { grid-template-columns: 66px 20px minmax(0, 1fr); column-gap: 8px; }
  .nw-tl-time { font-size: 13px; }
  .nw-hero-empty { min-height: 240px; }
  .nw-hero-empty-body { padding: 20px; }
  .nw-hero-empty h2 { font-size: 22px; }
}
