/* YUE - Więcej artykułów v1.1.0 - karty pionowe, także w wąskich sidebarach */
.yue-articles-widget {
  --yue-dark: #0b2856;
  --yue-accent: #1675eb;
  --yue-muted: #5c708f;
  --yue-line: #dfebf6;
  color: var(--yue-dark);
  font-family: inherit;
  max-width: 100%;
  min-width: 0;
  width: 100%;
}
.yue-articles-widget, .yue-articles-widget * { box-sizing: border-box; }

/* Mniejszy nagłówek w miejsce dawnego „Więcej artykułów”. */
.yue-articles-widget .yue-articles-heading {
  margin: 0 0 19px !important;
  padding: 0;
  font-size: clamp(18px, 1.5vw, 21px) !important;
  line-height: 1.3;
  font-weight: 750;
  letter-spacing: -.015em;
  color: var(--yue-dark);
  text-transform: none;
}
.yue-articles-widget .yue-articles-list {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  gap: 0;
}

/* Zawsze: obrazek > tytuł > zajawka > przycisk. */
.yue-articles-widget .yue-articles-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  grid-template-columns: none !important;
  gap: 0 !important;
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: 24px 0;
  border: 0;
  border-bottom: 1px solid var(--yue-line);
  background: transparent;
}
.yue-articles-widget .yue-articles-item:first-child { padding-top: 0; }
.yue-articles-widget .yue-articles-item:last-child { border-bottom: 1px solid var(--yue-line); }
.yue-articles-widget .yue-articles-media {
  display: block;
  flex: 0 0 auto;
  width: 100%;
  max-width: none;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 13px;
  background: #e7eef7;
  margin: 0 0 15px;
  padding: 0;
  text-decoration: none;
}
.yue-articles-widget .yue-articles-photo {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  border: 0;
  border-radius: 0;
  transition: transform .45s ease;
}
.yue-articles-widget .yue-articles-item:hover .yue-articles-photo { transform: scale(1.045); }
.yue-articles-widget .yue-articles-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e6effb, #c9dcf6);
  color: #7b9dc8;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .1em;
}
.yue-articles-widget .yue-articles-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.yue-articles-widget .yue-articles-title {
  width: 100%;
  min-width: 0;
  margin: 0 0 11px !important;
  padding: 0;
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 750;
  line-height: 1.35;
  letter-spacing: -.01em;
}
.yue-articles-widget .yue-articles-title a {
  color: var(--yue-dark);
  text-decoration: none;
  transition: color .2s ease;
}
.yue-articles-widget .yue-articles-title a:hover { color: var(--yue-accent); }
.yue-articles-widget .yue-articles-excerpt {
  width: 100%;
  margin: 0 0 16px !important;
  padding: 0;
  color: var(--yue-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.yue-articles-widget .yue-articles-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  gap: 8px;
  min-height: 36px;
  padding: 9px 16px;
  border: 0;
  border-radius: 9px;
  background: #edf5ff;
  color: #0a62c7;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.1;
  text-decoration: none;
  transition: background .2s, color .2s, transform .2s;
}
.yue-articles-widget .yue-articles-more:hover,
.yue-articles-widget .yue-articles-more:focus-visible {
  background: var(--yue-accent);
  color: #fff;
  transform: translateY(-1px);
}
.yue-articles-widget .yue-articles-more span { font-size: 17px; line-height: .8; }
.yue-articles-widget .yue-articles-pagination { text-align: center; padding-top: 22px; }
.yue-articles-widget .yue-articles-load {
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--yue-dark);
  border: 1px solid #bcd5f5;
  border-radius: 11px;
  background: #fff;
  min-height: 42px;
  padding: 12px 23px;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.yue-articles-widget .yue-articles-load:hover,
.yue-articles-widget .yue-articles-load:focus-visible { background: #edf5ff; border-color: var(--yue-accent); }
.yue-articles-widget .yue-articles-load:disabled { opacity: .65; cursor: wait; }
.yue-articles-widget .yue-articles-empty { color: var(--yue-muted); }

/* Stagger: każdy kolejny artykuł subtelnie pojawia się z góry. */
@media (prefers-reduced-motion: no-preference) {
  .yue-articles-animate.yue-articles-js .yue-articles-item:not(.yue-articles-visible) {
    opacity: 0;
    transform: translateY(-14px);
  }
  .yue-articles-animate.yue-articles-js .yue-articles-item {
    transition: opacity .58s ease, transform .58s cubic-bezier(.2,.8,.2,1);
    transition-delay: var(--yue-articles-delay, 0ms);
  }
  .yue-articles-animate.yue-articles-js .yue-articles-item.yue-articles-visible {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 767px) {
  .yue-articles-widget .yue-articles-item { padding: 20px 0; }
  .yue-articles-widget .yue-articles-heading { margin-bottom: 18px !important; }
  .yue-articles-widget .yue-articles-media { margin-bottom: 12px; }
  .yue-articles-widget .yue-articles-title { font-size: 18px; }
  .yue-articles-widget .yue-articles-excerpt { font-size: 14px; line-height: 1.6; }
}
@media (prefers-reduced-motion: reduce) {
  .yue-articles-widget *, .yue-articles-widget *::before, .yue-articles-widget *::after {
    animation: none !important;
    transition: none !important;
  }
}
