/* ════════════════════════════════════════════════════════════
   PARITY — News listing (key: news)
   Live spec: components/pages/NewsPage.tsx + ui/Badge.tsx, values
   copied from the compiled Tailwind CSS (af28952f8cad502b.css).
   Markup: home.php (article.news-card > a.news-card__link).
   The card visuals sit on the link (live's card IS the <a>); the
   <article> only stretches it to the grid row height.
   ════════════════════════════════════════════════════════════ */

/* <Section background="white">: bg-surface text-neutral-800 (padding
   py-16 sm:py-20 comes from the shared .section rule) */
.section.news-section {
  background-color: var(--surface);
  color: var(--neutral-800);
}

/* grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 */
.news-section .news-cards {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.5rem;
}
@media (min-width: 768px)  { .news-section .news-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .news-section .news-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* neutralise the old style.css card shell on the <article> */
.news-cards .news-card,
.news-cards .news-card:hover {
  display: flex;
  flex-direction: column;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: none;
  box-shadow: none;
  transform: none;
  transition: none;
}

/* group block bg-surface-alt p-6 rounded-lg border border-neutral-200
   hover:border-primary-300 hover:shadow-md transition-all duration-base */
.news-cards .news-card__link {
  display: block;
  flex: 1 1 auto;
  padding: 1.5rem;
  background-color: var(--surface-alt);
  border: 1px solid var(--neutral-200);
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 0.25s;
}
.news-cards .news-card__link:hover {
  border-color: var(--primary-300);
  box-shadow: 0 4px 12px rgba(26, 25, 22, 0.08);
}
/* keyboard focus: live's global ring-2 ring-primary-500 ring-offset-2,
   stacked with the hover shadow; the card keeps its own 12px corners */
.news-cards .news-card__link:focus-visible {
  outline: none;
  border-radius: 12px;
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--primary-500);
}
.news-cards .news-card__link:hover:focus-visible {
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--primary-500), 0 4px 12px rgba(26, 25, 22, 0.08);
}

/* <img> mb-4 aspect-video w-full rounded-md object-cover */
.news-cards .news-card__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  margin: 0 0 1rem;
}

/* flex items-center gap-2 mb-3 */
.news-cards .news-card__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
}

/* Badge secondary sm: inline-flex items-center rounded-full font-medium
   whitespace-nowrap bg-secondary-100 text-secondary-800 text-xs px-2 py-0.5 */
.news-cards .news-card__cat {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 500;
  white-space: nowrap;
  padding: 0.125rem 0.5rem;
  background-color: var(--secondary-100);
  color: var(--secondary-800);
}

/* <time> text-xs text-neutral-500 */
.news-cards .news-card__date {
  font-size: 0.75rem;
  line-height: 1rem;
  color: var(--neutral-500);
}

/* font-heading text-lg font-semibold text-neutral-900 mb-2
   group-hover:text-primary-600 transition-colors (h3 base: tracking-tight) */
.news-cards .news-card__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--neutral-900);
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 0.15s;
}
.news-cards .news-card__link:hover .news-card__title { color: var(--primary-600); }

/* text-sm text-neutral-600 leading-relaxed */
.news-cards .news-card__excerpt {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--neutral-600);
}

/* mt-4 inline-flex items-center gap-1.5 text-sm font-semibold text-primary-600 */
.news-cards .news-card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  color: var(--primary-600);
}
/* arrow: transition-transform group-hover:translate-x-1 */
.news-cards .news-card__more svg {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 0.15s;
}
.news-cards .news-card__link:hover .news-card__more svg { transform: translateX(0.25rem); }
