/* css/news.css — news list, article page, home teaser */

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

.news-lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: var(--s6);
  padding: var(--s5) 0 var(--s6);
  border-bottom: 1px solid var(--frost);
  margin-bottom: var(--s5);
}

.news-lead h2 { font-size: 34px; line-height: 1.1; letter-spacing: -0.015em; margin: var(--s2) 0 var(--s3); }
.news-lead h2 a { color: inherit; }
.news-lead .lead { font-size: var(--text-l); color: var(--ink-2); margin: 0 0 var(--s4); max-width: 60ch; }

.news-lead-side { align-self: end; }
.news-lead-side .news-teams img { width: 40px; height: 40px; }

.kicker {
  font-family: var(--font-num);
  font-weight: 600;
  font-size: var(--text-m);
  letter-spacing: 0.01em;
  color: var(--red-line);
}

.news-meta {
  display: flex;
  align-items: center;
  gap: var(--s3);
  font-size: var(--text-s);
  color: var(--ink-3);
  flex-wrap: wrap;
}

.news-meta time { font-family: var(--font-num); font-weight: 600; font-size: var(--text-m); color: var(--ink-2); }
.news-meta .sep { color: var(--frost); }

.news-teams { display: inline-flex; gap: var(--s1); }
.news-teams img { width: 22px; height: 22px; object-fit: contain; }

.news-list { list-style: none; margin: 0; padding: 0; }

.news-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: var(--s4);
  align-items: start;
  padding: var(--s4) 0;
  border-bottom: 1px solid var(--frost);
}

.news-row time {
  font-family: var(--font-num);
  font-weight: 600;
  font-size: var(--text-m);
  color: var(--ink-2);
  line-height: 1.5;
  white-space: nowrap;
}

.news-row time small { display: block; font-size: var(--text-xs); font-weight: 500; color: var(--ink-3); }
.news-row h3 { font-size: var(--text-l); font-weight: 600; margin: 0 0 var(--s1); }
.news-row h3 a { color: inherit; }
.news-row .lead { margin: 0; color: var(--ink-2); font-size: var(--text-m); max-width: 70ch; }
.news-row .kicker { font-size: var(--text-s); }
.news-row .news-teams { padding-top: 3px; }

.news-empty { padding: var(--s6) 0; color: var(--ink-3); }

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

.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: var(--s7);
  align-items: start;
}

.article { max-width: 720px; }
.article header { padding-bottom: var(--s5); margin-bottom: var(--s5); border-bottom: 1px solid var(--frost); }
.article h1 { font-size: 40px; line-height: 1.08; letter-spacing: -0.02em; margin: var(--s2) 0 var(--s4); }
.article .lead { font-size: 20px; line-height: 1.4; color: var(--ink-2); margin: 0 0 var(--s4); }

.article-body { font-size: 17px; line-height: 1.6; }
.article-body p { margin: 0 0 1.1em; max-width: 68ch; }
.article-body h2 { font-size: var(--text-xl); margin: 1.6em 0 0.5em; }
.article-body h3 { font-size: 20px; margin: 1.4em 0 0.4em; }
.article-body ul, .article-body ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.article-body li { margin-bottom: 0.3em; }
.article-body blockquote {
  margin: 1.4em 0;
  padding: var(--s2) 0 var(--s2) var(--s4);
  border-left: 3px solid var(--red-line);
  font-size: var(--text-l);
  color: var(--ink);
}

.article-foot {
  margin-top: var(--s6);
  padding-top: var(--s4);
  border-top: 1px solid var(--frost);
  display: flex;
  gap: var(--s2);
  flex-wrap: wrap;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: 4px 10px 4px 6px;
  border: 1px solid var(--frost);
  border-radius: 999px;
  background: var(--board);
  font-size: var(--text-s);
  font-weight: 600;
  color: var(--ink);
}

.tag-chip img { width: 18px; height: 18px; object-fit: contain; }
.tag-chip:hover { border-color: var(--ink-3); text-decoration: none; }

/* right rail */
.article-rail { display: grid; gap: var(--s5); position: sticky; top: calc(var(--header-h) + var(--s4)); }

.scorebox { display: block; color: inherit; }
.scorebox:hover { text-decoration: none; border-color: var(--ink-3); }
.scorebox-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--s3);
  padding: var(--s4);
}
.scorebox-team { display: flex; flex-direction: column; align-items: center; gap: var(--s2); font-size: var(--text-s); font-weight: 600; text-align: center; }
.scorebox-team img { width: 44px; height: 44px; object-fit: contain; }
.scorebox-score { font-family: var(--font-num); font-weight: 700; font-size: 34px; letter-spacing: -0.02em; }
.scorebox-foot { padding: var(--s2) var(--s4) var(--s3); text-align: center; font-size: var(--text-s); color: var(--ink-3); border-top: 1px solid var(--frost-2); }

.rail-list { list-style: none; margin: 0; padding: 0; }
.rail-list li { padding: var(--s3) var(--s4); border-top: 1px solid var(--frost-2); }
.rail-list li:first-child { border-top: 0; }
.rail-list a { color: inherit; font-weight: 600; display: block; }
.rail-list time { display: block; font-size: var(--text-xs); color: var(--ink-3); margin-top: 2px; }

/* ---------- home teaser ---------- */

.home-news { margin-bottom: var(--s6); }
.home-news .news-row { grid-template-columns: 56px minmax(0, 1fr); padding: var(--s3) 0; }
.home-news .news-row h3 { font-size: var(--text-m); margin: 0; }
.home-news .news-row .lead, .home-news .news-row .news-teams { display: none; }

@media (max-width: 900px) {
  .news-lead { grid-template-columns: 1fr; gap: var(--s4); }
  .news-lead h2 { font-size: 28px; }
  .article-grid { grid-template-columns: 1fr; gap: var(--s5); }
  .article h1 { font-size: 30px; }
  .article-rail { position: static; }
}

@media (max-width: 600px) {
  .news-row { grid-template-columns: 56px minmax(0, 1fr); }
  .news-row .news-teams { display: none; }
}

/* match page tab */
.match-news { max-width: 760px; margin: 0 auto; }
.match-news .news-row { grid-template-columns: 72px minmax(0, 1fr); }
.match-news .news-row .news-teams { display: none; }
