/* MealSelf News (2026-11-10): homepage block, /news/ list and post pages. Uses the tokens in styles.css. */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 900px) { .news-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .news-grid { grid-template-columns: 1fr; } }
.news-card { display: flex; flex-direction: column; color: var(--text); padding: 0; overflow: hidden; transition: border-color 160ms ease, transform 160ms cubic-bezier(0.23, 1, 0.32, 1); }
.news-card:hover { text-decoration: none; border-color: var(--line2); transform: translateY(-2px); }
.news-thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--card2); }
.news-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 400ms cubic-bezier(0.23, 1, 0.32, 1); }
.news-card:hover .news-thumb img { transform: scale(1.03); }
.news-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 22px; }
.news-card h3 { margin: 0; font-size: 20px; line-height: 1.2; }
.news-card p { margin: 0; flex: 1; }
.news-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.news-date { font-size: 13px; font-weight: 600; color: var(--text3); font-variant-numeric: tabular-nums; }
.news-more { font-size: 14px; font-weight: 700; color: var(--accent-text, var(--accent)); white-space: nowrap; }
/* one post: a wide feature card, image beside the text */
.news-grid-single { grid-template-columns: 1fr; }
.news-grid-single .news-card.has-img { display: grid; grid-template-columns: 1.1fr 1fr; }
.news-grid-single .news-thumb { aspect-ratio: auto; min-height: 320px; }
.news-grid-single .news-body { justify-content: center; padding: clamp(24px, 4vw, 44px); gap: 14px; }
.news-grid-single h3 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.03em; }
.news-grid-single p { flex: 0; font-size: 17px; }
.news-grid-single .news-foot { justify-content: flex-start; gap: 20px; }
@media (max-width: 760px) {
  .news-grid-single .news-card.has-img { grid-template-columns: 1fr; }
  .news-grid-single .news-thumb { aspect-ratio: 16 / 10; min-height: 0; }
}
/* two posts: two equal cards, no empty third column */
.news-grid-two { grid-template-columns: 1fr 1fr; gap: 18px; }
.news-grid-two .news-card h3 { font-size: clamp(20px, 2.2vw, 24px); }
@media (max-width: 620px) { .news-grid-two { grid-template-columns: 1fr; } }
/* Keep reading cards under an article (2026-11-21) */
.news-related { margin-top: 56px; }
.news-related h2 { font-size: clamp(24px, 3.4vw, 32px); margin: 0 0 18px; }
.news-related .news-card h3 { font-size: 19px; margin: 0; }
.legal .news-related .news-card p { margin: 0; }
.news-all { margin-top: 24px; }

.news-page { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); }
.news-page h1 { font-size: clamp(34px, 5vw, 52px); }

.news-post .news-back { display: inline-block; font-size: 14px; font-weight: 600; color: var(--text2); margin-bottom: 28px; }
.news-post .news-back:hover { color: var(--text); text-decoration: none; }
.news-post h1 { margin: 8px 0 14px; }
.news-post .news-lede { font-size: 19px; color: var(--text); line-height: 1.5; }
.news-post article p, .news-post article li { line-height: 1.65; }
.news-post article ol { padding-left: 22px; margin: 10px 0; display: grid; gap: 6px; }
.news-post article ol li { color: var(--text2); font-size: 16px; }
.news-post article strong { color: var(--text); }
.news-hero { display: block; width: 100%; height: auto; border-radius: var(--radius); margin: 28px 0 8px; border: 1px solid var(--line); }
.news-figure { margin: 28px 0; }
.news-figure img { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); }
.news-post article h3 { font-size: 19px; margin: 24px 0 8px; }
.news-post article a { text-decoration: underline; text-underline-offset: 2px; }
.news-cta { margin-top: 48px; text-align: center; padding: clamp(28px, 5vw, 44px) 22px; background: radial-gradient(60% 100% at 50% 0%, rgba(52, 199, 123, 0.18), transparent 70%), var(--card); }
.news-cta h2 { font-size: clamp(24px, 3.4vw, 32px); margin: 10px 0 0; }
.news-post .news-cta p { max-width: 48ch; margin: 10px auto 22px; }
.news-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.nav-links a[aria-current="page"] { color: var(--text); }

@media (prefers-reduced-motion: reduce) { .news-card { transition: none; } .news-card:hover { transform: none; } }
