/* Home proposal — banery w hero + układ poniżej. */

.suit-rule {
  height: 4px;
  background: var(--suit-red);
  opacity: 0.85;
}

.suit-rule--thin {
  height: 2px;
  opacity: 0.9;
}

.suit-rule--ink {
  height: 4px;
  background: #141414;
  opacity: 1;
}

/* Wyniki na żywo — odpowiednik slotów live_* z index.php (max 5). */
.live-strip {
  background: linear-gradient(160deg, var(--felt) 0%, var(--felt-2) 100%);
  color: #f4efe4;
  padding: 1rem 0 1.15rem;
  border-bottom: none;
}

.live-strip-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d9c9a4;
}

.live-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 99px;
  background: var(--suit-red);
  box-shadow: 0 0 0 0 rgba(196, 30, 58, 0.55);
  animation: live-pulse 1.4s ease-out infinite;
}

@keyframes live-pulse {
  70% { box-shadow: 0 0 0 8px rgba(196, 30, 58, 0); }
  100% { box-shadow: 0 0 0 0 rgba(196, 30, 58, 0); }
}

.live-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.live-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.35rem 0.85rem;
  text-align: center;
  padding: 0.55rem 0.75rem;
  background: rgba(244, 239, 228, 0.06);
  border: 1px solid rgba(244, 239, 228, 0.12);
}

.live-list strong {
  font-family: var(--serif);
  font-weight: 550;
  font-size: 1.05rem;
  color: #fff;
}

.live-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 800;
  font-size: 0.95rem;
  color: #f0d9a5;
  text-decoration: none;
}

.live-list a:hover {
  color: #fff;
}

.live-list a img {
  width: 18px;
  height: 8px;
  flex: none;
}

@media (prefers-reduced-motion: reduce) {
  .live-dot { animation: none; }
}

/* Nekrolog / wspomnienie — wpisy z tabeli zmarli. */
.obit-band {
  background: #16120f;
  color: #e8e0d2;
  padding: 1.35rem 0 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.obit-band .wrap {
  display: grid;
  gap: 1.5rem;
}

.obit-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.15rem 1.35rem;
  align-items: start;
  max-width: 42rem;
  margin-inline: auto;
  text-align: left;
}

.obit-card:not(:has(.obit-photo)) {
  grid-template-columns: 1fr;
}

.obit-photo {
  width: 5.5rem;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: grayscale(1);
  border: 1px solid rgba(244, 239, 228, 0.18);
  background: #0c0a09;
}

.obit-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #b8a888;
}

.obit-name {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  line-height: 1.15;
  color: #fff;
  font-style: italic;
}

.obit-years {
  margin: 0.25rem 0 0.75rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 0.95rem;
  color: #d9c9a4;
}

.obit-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #cfc6b8;
}

.obit-text p {
  margin: 0 0 0.5rem;
}

.obit-text p:last-child {
  margin-bottom: 0;
}

@media (max-width: 560px) {
  .obit-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}

.hero.hero-carousel {
  padding: 1.35rem 0 1.6rem;
}

.hero.hero-carousel .hero-track {
  display: grid;
}

/* Stack slides — bez crossfade (duchów tekstu z sąsiednich slajdów) */
.hero.hero-carousel .hero-slide {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.2fr);
  gap: 1.1rem 1.5rem;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 0;
  transition: none;
}

.hero.hero-carousel .hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

.hero-banner {
  margin: 0;
  overflow: hidden;
  line-height: 0;
  justify-self: stretch;
  order: 2;
}

.hero-copy {
  min-width: 0;
  order: 1;
}

.hero-banner img {
  display: block;
  width: 100%;
  height: auto;
  max-height: clamp(10rem, 28vw, 17rem);
  object-fit: contain;
  object-position: center right;
}

.hero.hero-carousel .hero-copy .meta {
  margin-bottom: 0.5rem;
  font-size: 0.82rem;
  gap: 6px 12px;
}

.hero.hero-carousel .hero-copy h1 {
  margin: 0 0 0.35rem;
  max-width: none;
  font-size: clamp(1.25rem, 2.4vw, 1.85rem);
  line-height: 1.2;
  font-weight: 550;
}

.hero.hero-carousel .hero-copy .lead {
  margin-bottom: 0.85rem;
  max-width: 44ch;
  font-size: 0.92rem;
  line-height: 1.4;
}

.hero-thumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.55rem;
  margin-top: 1.15rem;
}

.hero-thumb {
  appearance: none;
  margin: 0;
  padding: 0;
  border: 2px solid transparent;
  background: transparent;
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  width: clamp(5.5rem, 14vw, 7.5rem);
  line-height: 0;
  opacity: 0.55;
  transition: opacity 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-thumb img {
  display: block;
  width: 100%;
  height: 2.65rem;
  object-fit: cover;
  object-position: center;
}

.hero-thumb:hover,
.hero-thumb:focus-visible {
  opacity: 0.9;
  outline: none;
}

.hero-thumb.is-active {
  opacity: 1;
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(196, 163, 90, 0.35);
}

@media (max-width: 820px) {
  .hero.hero-carousel .hero-slide {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .hero-banner {
    order: 2;
  }

  .hero-copy {
    order: 1;
  }

  .hero.hero-carousel .hero-copy h1 {
    font-size: clamp(1.2rem, 5.2vw, 1.65rem);
  }

  .hero-banner img {
    max-height: clamp(9rem, 42vw, 14rem);
    object-position: center;
  }
}

.home-band {
  padding: 2rem 0 2.75rem;
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(16rem, 0.72fr);
  gap: 1.75rem 2rem;
  align-items: start;
}

.home-panel,
.home-articles {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.home-articles {
  margin-top: 1.35rem;
}

/* Prawy rail — aktualności / zwycięzcy (inspiracja PZBS „Nowości”) */
.news-rail {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  position: sticky;
  top: 5.5rem;
}

.news-rail-head {
  background: var(--red);
  color: #fff;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.65rem 1rem;
}

.news-rail-list {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0;
  background: linear-gradient(180deg, #faf6f0 0%, var(--ivory) 100%);
}

.news-rail-list > li {
  border-bottom: 1px solid var(--line);
}

.news-rail-list > li:last-child {
  border-bottom: 0;
}

.news-rail-list a {
  display: grid;
  grid-template-columns: 0.65rem 1fr;
  column-gap: 0.65rem;
  align-items: start;
  padding: 0.75rem 1rem 0.8rem 0.9rem;
  text-decoration: none;
  color: inherit;
}

.news-rail-list a::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.4rem;
  border: 1.5px solid var(--red);
  border-radius: 50%;
  flex-shrink: 0;
}

.news-rail-list a:hover {
  background: rgba(155, 27, 46, 0.05);
}

.news-rail-list a:hover .news-rail-title {
  color: var(--red-deep);
}

.news-rail-kicker {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.news-rail-kicker[data-kind="winner"] {
  color: var(--red);
}

.news-rail-title {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

.news-rail-meta {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.35;
}

.news-rail-foot {
  display: block;
  text-align: center;
  padding: 0.7rem 1rem 0.9rem;
  font-size: 0.86rem;
  font-weight: 600;
  border-top: 1px solid var(--line);
  background: var(--paper);
  text-decoration: none;
}

.article-list {
  display: grid;
  gap: 0;
  background: linear-gradient(180deg, #faf6f0 0%, var(--ivory) 100%);
}

.article-card {
  padding: 1rem 1.1rem 1.05rem;
  border-bottom: 1px solid var(--line);
}

.article-card:last-child {
  border-bottom: 0;
}

.article-card h3 {
  margin: 0 0 0.4rem;
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}

.article-card h3 a {
  text-decoration: none;
  color: var(--ink);
}

.article-card h3 a:hover {
  color: var(--red-deep);
}

.article-teaser {
  margin: 0 0 0.55rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--muted);
  max-width: 52ch;
}

.article-more {
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.article-more:hover {
  color: var(--red-deep);
}

@media (max-width: 900px) {
  .home-grid {
    grid-template-columns: 1fr;
  }

  .news-rail {
    position: static;
  }
}
