/* ═══════════════════════════════════════════════════
   EMILIO: aktualności (renderuje assets/aktualnosci.js)
   Program wieczorów zamiast kart: cienkie linie zamiast pudełek, zdjęcia 4:5,
   tytuły w Cormorancie, daty w Source Sans Pro (cyfry proste).
   Bez efektów najechania; tylko :focus-visible.
   ═══════════════════════════════════════════════════ */
:root {
  --nw-ink: var(--text-b, #161615);
  --nw-muted: var(--text-b2, #6f6a63);
  --nw-rule: var(--white3, #e0d6cc);
  --nw-burgundy: var(--burgundy, #3d0a05);
  --nw-gold: #8a6a3f;
}

#newsGrid, #newsList { display: block; }

.nw-home a, .nw-list a { color: inherit; text-decoration: none; }
.nw-home a:focus-visible, .nw-list a:focus-visible {
  outline: 2px solid var(--nw-burgundy);
  outline-offset: 6px;
  border-radius: 2px;
}

/* zdjęcia: jeden format w całej sekcji */
.nw-feature__media, .nw-brief__media, .nw-entry__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #1c1c1c;
  border-radius: 2px;
  box-shadow: 0 18px 40px -26px rgba(22, 22, 21, .55);
}
.nw-feature__media img, .nw-brief__media img, .nw-entry__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

/* etykiety nad tytułem */
.nw-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
  margin: 0 0 12px;
  font-family: var(--ff-body);
  font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  font-variant-numeric: lining-nums;
  color: var(--nw-muted);
}
.nw-meta > * + *::before {
  content: ""; display: inline-block; width: 4px; height: 4px; margin-right: 14px;
  vertical-align: middle; border-radius: 50%; background: var(--nw-rule);
}
.nw-meta__type { color: var(--nw-gold); }
.nw-soon {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 10px;
  font-family: var(--ff-body);
  font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--nw-burgundy);
}
.nw-soon::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--nw-burgundy); box-shadow: 0 0 0 4px rgba(61, 10, 5, .12);
}

/* wezwanie: link z kreską, bez strzałek */
.nw-cta {
  display: inline-block;
  margin-top: 18px; padding-bottom: 4px;
  font-family: var(--ff-body);
  font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--nw-burgundy);
  border-bottom: 1px solid currentColor;
}

/* ─────────── Strona główna ─────────── */
.nw-home {
  display: grid;
  gap: 40px;
  text-align: left;
}
.nw-feature { display: grid; gap: 24px; }
.nw-feature__title {
  margin: 0;
  font-family: var(--ff-display); font-weight: 400;
  font-size: clamp(30px, 1.2vw + 20px, 40px); line-height: 1.1;
  color: var(--nw-ink);
  text-wrap: balance;
}
.nw-feature__excerpt {
  margin: 16px 0 0; max-width: 54ch;
  font-size: 17px; line-height: 1.7; color: var(--nw-muted);
}

.nw-side { list-style: none; margin: 0; padding: 0; }
.nw-brief + .nw-brief { border-top: 1px solid var(--nw-rule); }
.nw-brief__link {
  display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px;
  padding: 22px 0;
}
.nw-brief:first-child .nw-brief__link { padding-top: 0; }
.nw-brief .nw-meta { margin-bottom: 6px; font-size: 11px; }
.nw-brief .nw-soon { margin-bottom: 6px; font-size: 10px; }
.nw-brief__title {
  margin: 0;
  font-family: var(--ff-display); font-weight: 400;
  font-size: 23px; line-height: 1.18; color: var(--nw-ink);
  text-wrap: balance;
}
.nw-brief__excerpt {
  margin: 8px 0 0;
  font-size: 15px; line-height: 1.6; color: var(--nw-muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.nw-brief .nw-cta { margin-top: 10px; font-size: 11px; }

@media (max-width: 599.98px) {
  .nw-home { gap: 8px; }
  .nw-feature__media { margin: 0 -4px; }
  .nw-side { border-top: 1px solid var(--nw-rule); padding-top: 22px; }
}

@media (min-width: 900px) {
  .nw-home {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: 0;
    align-items: start;
  }
  .nw-feature {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 40px; align-items: center;
    padding-right: 48px;
  }
  .nw-side {
    border-left: 1px solid var(--nw-rule);
    padding-left: 40px;
    align-self: stretch;
  }
  .nw-brief__link { grid-template-columns: 104px minmax(0, 1fr); }
}

/* ─────────── Zakładka Aktualności ─────────── */
.nw-list { max-width: 1040px; margin: 56px auto 0; text-align: left; }

.nw-month {
  display: flex; align-items: baseline; gap: 14px;
  margin: 72px 0 0; padding-bottom: 14px;
  border-bottom: 1px solid var(--nw-ink);
  font-family: var(--ff-display); font-weight: 400;
  color: var(--nw-ink);
}
.nw-month:first-child { margin-top: 0; }
.nw-month__name { font-style: italic; font-size: clamp(30px, 1.6vw + 20px, 40px); line-height: 1; }
.nw-month__year {
  font-family: var(--ff-body); font-size: 13px; font-weight: 600; letter-spacing: .2em;
  font-variant-numeric: lining-nums; color: var(--nw-muted);
}

.nw-entry { padding: 36px 0; }
.nw-entry + .nw-entry { border-top: 1px solid var(--nw-rule); }
.nw-entry__date { display: none; }
.nw-entry__link { display: grid; gap: 22px; }
.nw-entry__title {
  margin: 0;
  font-family: var(--ff-display); font-weight: 400;
  font-size: clamp(28px, 1.5vw + 20px, 38px); line-height: 1.1;
  color: var(--nw-ink);
  text-wrap: balance;
}
.nw-entry__excerpt {
  margin: 14px 0 0; max-width: 60ch;
  font-size: 17px; line-height: 1.75; color: var(--nw-muted);
}
/* nadchodzące: cienka bordowa linia przy zdjęciu */
.nw-entry--soon .nw-entry__media { box-shadow: 0 0 0 1px var(--nw-burgundy), 0 18px 40px -26px rgba(22, 22, 21, .55); }

/* telefon: duże zdjęcie tylko dla nadchodzących, minione wpisy zwarte (miniatura obok tekstu) */
@media (max-width: 599.98px) {
  .nw-entry:not(.nw-entry--soon) { padding: 26px 0; }
  .nw-entry:not(.nw-entry--soon) .nw-entry__link { grid-template-columns: 104px minmax(0, 1fr); gap: 16px; align-items: start; }
  .nw-entry:not(.nw-entry--soon) .nw-meta { font-size: 11px; margin-bottom: 6px; }
  .nw-entry:not(.nw-entry--soon) .nw-entry__title { font-size: 24px; line-height: 1.15; }
  .nw-entry:not(.nw-entry--soon) .nw-entry__excerpt { margin-top: 8px; font-size: 15px; line-height: 1.6; }
  .nw-entry:not(.nw-entry--soon) .nw-cta { margin-top: 12px; font-size: 11px; }
}

@media (min-width: 600px) {
  .nw-entry__link { grid-template-columns: 220px minmax(0, 1fr); gap: 36px; align-items: start; }
}

@media (min-width: 900px) {
  .nw-entry {
    display: grid; grid-template-columns: 112px minmax(0, 1fr);
    padding: 48px 0;
  }
  .nw-entry__date {
    display: flex; flex-direction: column; gap: 8px;
    padding-top: 2px;
    font-family: var(--ff-body); font-variant-numeric: lining-nums;
  }
  .nw-entry__day { font-size: 56px; font-weight: 300; line-height: .9; color: var(--nw-burgundy); }
  .nw-entry__mon { font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--nw-muted); }
  .nw-entry .nw-meta__date { display: none; }
  .nw-entry .nw-meta__date + *::before { display: none; }
  .nw-entry__link { grid-template-columns: 280px minmax(0, 1fr); gap: 48px; }
  .nw-entry__body { padding-top: 6px; }
}
