/* One native link per card, shared by the homepage and news archive. */
.kpim-related-news-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; width:100%; min-width:0; }
.kpim-related-news-item { min-width:0; }
@media (max-width:1023px) { .kpim-related-news-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:767px) { .kpim-related-news-grid { grid-template-columns:minmax(0,1fr); } }
body a.kpim-news-card {
  position:relative; display:flex; flex-direction:column; align-items:stretch;
  width:100%; min-width:0; max-width:100%; height:100%; gap:0; margin:0; padding:0;
  overflow:hidden; border:0; border-radius:16px;
  background:#fff; color:#183141; box-shadow:0 6px 24px #12334507;
  text-decoration:none; cursor:pointer;
}
body a.kpim-news-card:is(:hover,:focus-visible) { color:#183141; text-decoration:none; }
body .kpim-news-card .kpim-news-card-image {
  display:block; flex:0 0 auto; width:100%; max-width:100%; height:auto;
  aspect-ratio:16/9; object-fit:cover; margin:0; padding:0; border-radius:0;
}
body .kpim-news-card .kpim-news-card-content {
  display:flex; flex-direction:column; align-items:stretch; flex:1 1 auto;
  width:100%; min-width:0; gap:0; padding:24px;
}
body .kpim-news-card .kpim-news-card-date,
body #tresc-glowna .kpim-news-card .kpim-news-card-date {
  position:absolute; top:16px; left:16px; z-index:1;
  display:inline-block; width:fit-content; max-width:calc(100% - 32px);
  margin:0; padding:6px 12px; border-radius:8px;
  color:#3b5666; background:#f0f6fa; font-size:.875rem; line-height:1.5; font-weight:400;
}
body .kpim-news-card .kpim-news-card-title,
body #tresc-glowna .kpim-news-card .kpim-news-card-title {
  margin:0 0 12px; color:#005b86; font-size:1.25rem; line-height:1.4;
  font-weight:700; overflow-wrap:anywhere;
}
body .kpim-news-card .kpim-news-card-excerpt,
body #tresc-glowna .kpim-news-card .kpim-news-card-excerpt {
  margin:0; color:#243f4e; font-size:1rem; line-height:1.65; overflow-wrap:anywhere;
}
body .kpim-news-card:is(:hover,:focus-visible) .kpim-news-card-title { text-decoration:underline; text-underline-offset:3px; }
/* A card without a featured image still has one clearly separated date badge. */
body .kpim-news-card:not(:has(.kpim-news-card-image)) .kpim-news-card-date,
body #tresc-glowna .kpim-news-card:not(:has(.kpim-news-card-image)) .kpim-news-card-date {
  position:static; align-self:flex-start; margin:24px 24px 0;
}
html[data-kpim-contrast] body a.kpim-news-card { box-shadow:none; }
@media (max-width:479px) {
  body a.kpim-news-card { border-radius:14px; }
  body .kpim-news-card .kpim-news-card-content { padding:20px; }
  body .kpim-news-card:not(:has(.kpim-news-card-image)) .kpim-news-card-date,
  body #tresc-glowna .kpim-news-card:not(:has(.kpim-news-card-image)) .kpim-news-card-date { margin:20px 20px 0; }
}
