/* =========================================================
   PrecioSea - news.css (Nyheter: listing + articles)
   Uses only the variables from site.css
   ========================================================= */

/* ---------- Listing: card grid ---------- */
.news-section { padding-top: 20px; }
.news-section .section-head { margin-bottom: 18px; }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.news-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--radius-lg); background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.news-media { margin: 0; background: var(--line-2); }
.news-media img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.news-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 10px; font-size: .8rem; font-weight: 600; color: var(--ink-3); }
.news-tag {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary);
  font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.news-title { margin: 0 0 8px; font-size: 1.12rem; font-weight: 800; line-height: 1.3; color: var(--ink); }
.news-title a { color: inherit; text-decoration: none; }
.news-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.news-card:hover .news-title a { color: var(--primary); }
.news-teaser { margin: 0 0 16px; font-size: .94rem; line-height: 1.55; color: var(--ink-2); }
.news-more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; font-weight: 700; color: var(--primary); }
.news-more svg { width: 16px; height: 16px; transition: transform .2s ease; }
.news-card:hover .news-more svg { transform: translateX(3px); }

/* ---------- Article: cover photo first in .prose ---------- */
.prose > .prose-figure:first-child { margin-top: 0; }

@media (max-width: 900px) {
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
@media (max-width: 600px) {
  .news-section { padding-top: 12px; }
  .news-grid { grid-template-columns: 1fr; }
  .news-body { padding: 16px; }
  .news-title { font-size: 1.06rem; }
}
@media (prefers-reduced-motion: reduce) {
  .news-card, .news-more svg { transition: none; }
  .news-card:hover { transform: none; }
  .news-card:hover .news-more svg { transform: none; }
}
