/* ===== Kickwise: home page "Top stories" (assets/home-news.js) =====
   Adds our article covers to the existing .top-lead / .top-row cards of assets/styles.css.
   assets/home-news.js links this file by itself if index.html does not. */

/* ---------- Our cover (the same component as in assets/news.css) ---------- */
.top-news .poster {
  --pitch: color-mix(in srgb, var(--accent) 26%, transparent);
  position: relative; display: block; width: 100%; height: 100%; overflow: hidden; isolation: isolate;
  container-type: size; color: var(--chalk);
  background: radial-gradient(120% 140% at 0% 0%, var(--surface-2), var(--bg-2) 62%);
}
.top-news .poster-pitch { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(circle at calc(100% - 15cqw) 50%, var(--pitch) 0 1.8cqh, transparent calc(1.8cqh + 1px)); }
.top-news .poster-pitch::before { content: ""; position: absolute; top: 50%; right: 15cqw; width: 88cqh; aspect-ratio: 1;
  transform: translate(50%, -50%); border: max(1px, .55cqh) solid var(--pitch); border-radius: 50%; }
.top-news .poster-pitch::after { content: ""; position: absolute; top: 0; bottom: 0; right: 15cqw; width: max(1px, .55cqh);
  transform: translateX(50%); background: var(--pitch); }
.top-news .poster-label { position: absolute; left: 5.5cqw; top: 9cqh; display: flex; align-items: center; gap: .5em; max-width: 78cqw;
  font: 700 clamp(10px, 4.8cqh, 20px)/1.1 var(--body); color: var(--accent); white-space: nowrap; }
.top-news .poster-label svg { width: 1.5em; height: 1.5em; flex: none; }
.top-news .poster-label span { overflow: hidden; text-overflow: ellipsis; }
.top-news .poster-names { position: absolute; left: 5.5cqw; right: 5.5cqw; bottom: 9cqh; display: flex; flex-direction: column;
  font-family: var(--display); font-weight: 900; text-transform: uppercase; line-height: .9; letter-spacing: .01em;
  font-size: min(calc(160cqw / var(--len, 8)), calc(58cqh / var(--lines, 1)), 150px); }
.top-news .poster-names span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-bottom: .02em; }
.top-news .poster-names span:nth-child(2) { color: var(--accent); }
.top-news .poster-names span:nth-child(3) { color: var(--muted); }
@container (max-width: 110px) {
  .top-news .poster-names, .top-news .poster-label span { display: none; }
  .top-news .poster-label { inset: 0; max-width: none; justify-content: center; color: color-mix(in srgb, var(--accent) 70%, var(--muted)); }
  .top-news .poster-label svg { width: 40cqw; height: 40cqw; }
}

/* ---------- The cards ---------- */
.top-news .top-img, .top-news .top-thumb { overflow: hidden; }
.top-news .top-thumb { border: 1px solid var(--line); }
/* Labels above the headlines: quiet, in sentence case */
.top-news .kicker span { font-size: 12.5px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.top-row .rank { font-size: 24px; }
