/* News card partial (partials/news_card.html). Design v4: navy surfaces, mint accents.
   The rust sport tag is the one sanctioned non-mint colour (client news reference). 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);
  --nc-tag-bg: #c2410c;   /* sport tag chip (rust) */
  --nc-tag-fg: #ffffff;
}
.nc { display: flex; color: var(--text, #eef2f6); text-decoration: none; min-width: 0; -webkit-tap-highlight-color: transparent; }
.nc:focus-visible { outline: 2px solid var(--b-mint); outline-offset: 2px; border-radius: 12px; }
.nc-title { font-weight: 700; color: var(--text, #eef2f6); overflow-wrap: break-word; }
.nc-meta { color: var(--muted, #8e9aa8); font-size: 13px; line-height: 18px; display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nc-meta .icon { width: 14px; height: 14px; }
.nc-dot { font-size: 10px; line-height: 1; }
.nc-summary { color: var(--text-2, #c3ccd6); font-size: 14px; line-height: 20px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.nc-tag { display: inline-block; align-self: flex-start; background: var(--nc-tag-bg); color: var(--nc-tag-fg); font-size: 12px; font-weight: 600; letter-spacing: .02em; padding: 2px 7px; border-radius: 4px; line-height: 16px; text-transform: uppercase; white-space: nowrap; }

/* Media + fallback art (navy + faint sport icon) */
.nc-media { position: relative; display: block; overflow: hidden; flex: none; isolation: isolate; background: var(--surface-3, #222b36); }
.nc-art-icon { position: absolute; left: 50%; top: 50%; width: 42%; height: 42%; max-width: 72px; max-height: 72px; transform: translate(-50%, -50%); color: var(--muted, #8e9aa8); opacity: .35; z-index: 0; }
.nc-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; display: block; }

/* compact: right-column "Sports news" lead item */
.nc-compact { flex-direction: column; gap: 8px; }
.nc-compact .nc-media { width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; }
.nc-compact .nc-title { font-size: 15px; line-height: 22px; font-weight: 600; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.nc-compact:hover .nc-title { color: var(--b-mint-ink); }

/* row: thumbnail left, text, chevron */
.nc-row { align-items: center; gap: 14px; background: var(--surface, #151b23); border: 1px solid var(--border, #232c37); border-radius: 10px; padding: 8px; transition: background-color .15s ease-out, border-color .15s ease-out; }
.nc-row:hover { background: var(--surface-2, #1b232d); border-color: var(--border-strong, #2e3946); }
.nc-row .nc-media { width: 132px; align-self: stretch; min-height: 88px; border-radius: 8px; }
.nc-row .nc-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; padding: 4px 0; }
.nc-row .nc-title { font-size: 15px; line-height: 21px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.nc-row:hover .nc-title { color: var(--b-mint-ink); }
.nc-chev { flex: none; width: 28px; height: 28px; display: grid; place-items: center; color: var(--text-2, #c3ccd6); }
.nc-chev .icon { width: 18px; height: 18px; }
@media (max-width: 560px) {
  .nc-row { gap: 12px; }
  .nc-row .nc-media { width: 96px; min-height: 80px; }
  .nc-row .nc-summary { display: none; }
  .nc-row .nc-title { font-size: 14px; line-height: 20px; -webkit-line-clamp: 3; line-clamp: 3; }
  .nc-chev { display: none; }
}

/* inside the right column / list cards: rows are divided, not boxed */
.news-side .nc-row, .news-row-card .nc-row { border: 0; border-radius: 0; padding: 12px 0; background: transparent; }
.news-side .nc-row + .nc-row { border-top: 1px solid var(--border, #232c37); }
.news-side .nc-row .nc-media { width: 72px; min-height: 56px; }
.news-side .nc-row .nc-summary, .news-side .nc-row .nc-chev { display: none; }
.news-side .nc-row .nc-title { font-size: 13px; line-height: 19px; font-weight: 600; -webkit-line-clamp: 3; line-clamp: 3; }
.news-side .nc-row .nc-tag { display: none; }
.news-row-card .nc-row { padding: 12px var(--pad-card, 16px); }

/* hero: big dark story card, text left, photo right fading into the card */
.nc-hero { position: relative; min-height: 348px; border-radius: 12px; overflow: hidden; isolation: isolate; background: var(--surface, #151b23); border: 1px solid var(--border, #232c37); align-items: center; }
.nc-hero .nc-media { position: absolute; top: 0; right: 0; bottom: 0; width: 62%; z-index: 0; background: transparent;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.25) 14%, rgba(0,0,0,.75) 30%, #000 46%); mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.25) 14%, rgba(0,0,0,.75) 30%, #000 46%); }
.nc-hero .nc-media img { object-position: center 25%; }
.nc-hero .nc-art-icon { left: 64%; top: 50%; width: 180px; height: 180px; max-width: none; max-height: none; opacity: .18; }
.nc-hero .nc-body { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 32px 28px; width: 50%; min-width: 0; }
.nc-hero .nc-tags { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.nc-hero .nc-tag { font-size: 15px; line-height: 20px; padding: 5px 11px; border-radius: 5px; letter-spacing: .01em; }
.nc-hero .nc-tag-sub { font-size: 15px; line-height: 20px; font-weight: 600; letter-spacing: .01em; color: var(--text, #eef2f6); padding-left: 12px; border-left: 1px solid var(--border-strong, #2e3946); }
.nc-hero .nc-title { color: var(--text, #eef2f6); font-size: clamp(28px, 2.6vw, 42px); line-height: 1.1; font-weight: 800; font-style: italic; font-synthesis: style; letter-spacing: -.005em; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; text-wrap: balance; margin-top: 2px; }
.nc-hero .nc-meta { color: var(--text-2, #c3ccd6); font-size: 15px; margin-top: 4px; }
.nc-hero:hover .nc-title { color: var(--b-mint-ink); }
.nc-hero:hover { border-color: var(--border-strong, #2e3946); }
@media (max-width: 900px) {
  .nc-hero { flex-direction: column; align-items: stretch; min-height: 0; }
  .nc-hero .nc-media { position: relative; width: 100%; aspect-ratio: 16 / 9; height: auto;
    -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 100%); mask-image: linear-gradient(180deg, #000 62%, transparent 100%); }
  .nc-hero.no-img .nc-media { aspect-ratio: 16 / 6; }
  .nc-hero .nc-art-icon { left: 50%; width: 96px; height: 96px; }
  .nc-hero .nc-body { width: 100%; padding: 4px 18px 20px; gap: 10px; margin-top: -24px; }
  .nc-hero .nc-tag, .nc-hero .nc-tag-sub { font-size: 12px; line-height: 16px; }
  .nc-hero .nc-tag { padding: 3px 8px; }
  .nc-hero .nc-title { font-size: 26px; line-height: 1.15; }
  .nc-hero .nc-meta { font-size: 13px; }
}
