/* Theme default - news.css: news list, articles, tags and cover pictures. */
/* ---- News and articles ---- */
.update-more { display: inline-block; margin-top: 0.4rem; font-style: normal; font-size: 0.82rem; font-weight: 600; color: var(--accent, currentColor); }
.update[target="_blank"] .update-more::after { content: " \2197"; }
.updates-more { margin: 1.1rem 0 0; font-weight: 600; }
.article { max-width: 46rem; margin-inline: auto; }
.article-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: 0 0 1.4rem; color: var(--dim); font-family: var(--mono); font-size: 0.82rem; }
.article-body { font-size: 1.06rem; line-height: 1.8; }
.article-body h2 { margin: 2.2rem 0 0.7rem; font-size: 1.4rem; }
.article-body p, .article-body ul { margin: 0 0 1.1rem; }
.article-body ul { padding-left: 1.3rem; }
.article-body a, .article-source a { text-decoration: underline; text-underline-offset: 0.18em; }
.article-source { margin-top: 2rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }

/* ---- Tags, thumbnails and cover pictures in news ---- */
.tag { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.15rem 0.7rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 0.8rem; text-decoration: none; background: transparent; }
a.tag:hover, .tag.is-on { border-color: var(--accent, currentColor); color: var(--text, inherit); }
.tag.is-on { font-weight: 600; }
.tag-count { opacity: 0.6; font-size: 0.72rem; }
.tag-filter { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0 0 1.4rem; }
.tag-row { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.5rem; }
.news-item.has-thumb { grid-template-columns: 7rem 1fr 10rem; align-items: start; }
.news-thumb { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-s, 8px); border: 1px solid var(--line); }
.article-cover { margin: 0 0 1.6rem; }
.article-cover img { width: 100%; height: auto; border-radius: var(--r-m, 12px); border: 1px solid var(--line); }
.article-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; margin: 1.6rem 0 0; }
@media (max-width: 720px) {
  .news-item.has-thumb { grid-template-columns: 1fr; }
  .news-item.has-thumb .news-thumb { order: -1; }
}

/* ---- Article page: source card, share, previous/next, more news ---- */
.article-back { font-weight: 600; text-decoration: none; }
.article-back:hover { text-decoration: underline; }
.source-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.2rem 1.1rem;
  margin: 2rem 0 0;
  padding: 1.05rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: rgb(var(--surface-rgb) / 0.5);
  text-decoration: none;
  transition: border-color 0.25s, transform 0.25s;
}
.source-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.source-label { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.source-host { font-weight: 600; overflow-wrap: anywhere; }
.source-open { font-size: 0.86rem; color: var(--primary); white-space: nowrap; }
.article-share { margin: 1.4rem 0 0; }
.share-copy { display: inline-flex; width: auto; }
.article-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: var(--gap); max-width: 46rem; margin: 2.6rem auto 0; }
.article-nav-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: rgb(var(--surface-rgb) / 0.5);
  text-decoration: none;
  transition: border-color 0.25s, transform 0.25s;
}
.article-nav-item:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.article-nav-item.is-newer { text-align: right; }
.article-nav-dir { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.article-nav-title { font-weight: 600; line-height: 1.35; }
#more-news .head { margin-bottom: 1.4rem; }
@media (max-width: 720px) {
  .source-card { grid-template-columns: 1fr; }
  .article-nav-item.is-newer { text-align: left; }
}
