/* © Hoang LLC. All rights reserved. */
/* The news pages (owner 2026-12-05): the list of app updates and one page per update in vi / en / ja, written by
   tools/web/news_pages.py. Loaded after site.css, which styles the homepage's header, menu and footer these pages carry; built on its
   tokens (--paper, --ink, --line, --display ...). */

.news-main { padding: 28px 0 56px; }
.news-wrap { max-width: 860px; overflow-wrap: anywhere; }

/* ------------------------------------------------------------------ the list */
.news-head h1 { font-size: clamp(32px, 8vw, 48px); margin: 4px 0 10px; text-wrap: balance; }
.news-lead { font-size: 17px; color: var(--ink-2); max-width: 640px; }
.news-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 20px; }
.news-card {
  background: var(--card); border: var(--line); border-radius: var(--radius); box-shadow: var(--pop); padding: 16px 18px 14px;
}
.news-card h2 { font-size: clamp(21px, 5.6vw, 27px); margin: 10px 0 8px; text-wrap: balance; }
.news-card h2 a { text-decoration: none; }
.news-card h2 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.news-summary { margin: 0 0 8px; color: var(--ink-2); }
.news-more { margin: 0; }
.news-more a { font-weight: 700; color: #0B5CAD; text-underline-offset: 2px; }
.news-more a:hover { color: var(--coral); }

/* ------------------------------------------------------------------ version and date */
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0; font-size: 14px; color: var(--muted); }
.news-version {
  display: inline-block; padding: 2px 12px; border: 2px solid var(--ink); border-radius: 999px; background: var(--parcel); color: var(--ink);
  font: 700 13px/1.5 var(--display); letter-spacing: .03em; white-space: nowrap;
}
.news-meta time { font-weight: 600; }

/* ------------------------------------------------------------------ one post */
.news-back { margin: 0 0 14px; font-size: 15px; }
.news-back a { font-weight: 700; color: #0B5CAD; text-decoration: none; }
.news-back a::before { content: "\2190\00a0"; }
.news-back a:hover { color: var(--coral); text-decoration: underline; }
.news-post h1 { font-size: clamp(28px, 7vw, 42px); margin: 12px 0 18px; text-wrap: balance; }
.news-body { font-size: 16.5px; line-height: 1.75; }
.news-body p { margin: 0 0 14px; }
.news-body ul {
  margin: 0 0 18px; padding: 14px 18px 14px 38px; background: var(--card); border: var(--line); border-radius: var(--radius);
  box-shadow: 0 3px 0 var(--ink);
}
.news-body li { margin: 0 0 6px; }
.news-body li:last-child { margin-bottom: 0; }
.news-all { margin: 30px 0 0; }

@media (min-width: 720px) {
  .news-main { padding: 44px 0 72px; }
  .news-card { padding: 20px 24px 18px; }
}

@media print {
  .topbar, .footer, .skip, .news-all { display: none; }
  .news-card, .news-body ul { box-shadow: none; }
}
