.sz-community {
  --sz-community-accent: #e5e3bd;
  --sz-community-text: #fffdf5;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #41482e;
  color: var(--sz-community-text);
  margin: 0;
  scroll-margin-top: 6rem;
}

.sz-community-photo,
.sz-community::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sz-community-photo {
  z-index: -2;
  background: #454d31 url('wspolne-czytanie-biblii-mateusza-8.jpg') 50% 73% / cover no-repeat;
  filter: grayscale(.34) sepia(.13) saturate(.82);
}

.sz-community::after {
  content: "";
  z-index: -1;
  background:
    linear-gradient(180deg, transparent 58%, #2b3223ba 100%),
    linear-gradient(100deg, #252b1cf0 0%, #343c25d6 24%, #4b57334f 48%, #30381ee5 100%);
}

@supports (clip-path: inset(0)) {
  .sz-community { clip-path: inset(0); }
  .sz-community-photo { position: fixed; height: 100vh; height: 100svh; }
  :is(.sz-motion-off, .sz-motion-off body) .sz-community-photo { position: absolute; height: auto; }
}

.sz-community .sz-community-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .87fr);
  align-items: center;
  gap: clamp(1.25rem, 1.95vw, 2.65rem) clamp(2.5rem, 11vw, 13rem);
  padding-block: clamp(2.25rem, 3.35vw, 4rem) clamp(1.55rem, 2.35vw, 2.75rem);
}

.sz-community h2,
.sz-community h3,
.sz-community p { margin: 0; color: inherit; }

.sz-community .sz-community-eyebrow {
  color: var(--sz-community-accent);
  font-size: .76rem;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: .105em;
  text-transform: uppercase;
}

.sz-community h2 {
  font-size: clamp(2.45rem, 4.5vw, 4.05rem);
  line-height: 1.02;
  letter-spacing: -.052em;
  margin-block: .65rem .85rem;
}

.sz-community-lead > p:last-child {
  max-width: 38ch;
  color: #f4f2e4;
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  line-height: 1.55;
}

.sz-community-cards { display: grid; gap: .75rem; min-width: 0; }

.sz-community-card {
  padding: clamp(1rem, 1.45vw, 1.55rem);
  border: 1px solid #f5efcc74;
  border-radius: 1.2rem;
  background: linear-gradient(137deg, #76814570, #273221a8 55%, #27322181);
  box-shadow: 0 .8rem 2rem #181b173d, inset 0 1px 0 #fff9e35c;
  backdrop-filter: blur(11px) saturate(120%);
}

.sz-community-next {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: clamp(.85rem, 1.6vw, 1.4rem);
  background: linear-gradient(137deg, #969d5e72, #323c28a6 56%, #323c287c);
}

.sz-community-card h3 {
  margin: 0 0 .38rem;
  font-size: clamp(1.18rem, 1.75vw, 1.58rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}

.sz-community-next h3 { margin-top: .42rem; }
.sz-community-card p { line-height: 1.5; color: #f1f1e4; }
.sz-community-card time { font-weight: 700; }
.sz-community-card .sz-community-change { color: var(--sz-community-accent); font-size: .86rem; margin-top: .46rem; }

.sz-community-date-square {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  width: clamp(2.95rem, 4.8vw, 4.6rem);
  aspect-ratio: 1;
  background: #e5e3bd;
  color: #272f20;
  border-radius: .55rem;
  box-shadow: 0 0 0 3px #e5e3bd52;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.sz-community-date-square > span { font-size: clamp(1.45rem, 2.5vw, 2.3rem); font-weight: 800; letter-spacing: -.055em; }
.sz-community-date-square > small { margin-top: .25rem; font-size: .71rem; font-weight: 750; text-transform: uppercase; }
.sz-community-date-square::after {
  content: "";
  position: absolute;
  inset: -3px;
  border: 2px solid #fff5bf;
  border-radius: .72rem;
  box-shadow: 0 0 .6rem #fff5bf70;
  opacity: 0;
  pointer-events: none;
}

.sz-community.is-visible .sz-community-date-square::after { animation: sz-community-calendar-pulse 2.3s ease-out 2; }

@keyframes sz-community-calendar-pulse {
  0% { opacity: 0; transform: scale(1); }
  25% { opacity: 1; }
  80%, 100% { opacity: 0; transform: scale(1.23); }
}

.sz-community-list { list-style: none; padding: 0; margin: 0; }
.sz-community-list > li { overflow-wrap: anywhere; padding-block: .68rem; }
.sz-community-list > li + li { border-top: 1px solid #80807066; }
.sz-community-list li p { margin: .22rem 0 0; }
.sz-community-list h3 { margin: 0; }
.sz-community-news .sz-community-list > li { padding-block: 1rem; }
.sz-community-card .sz-community-item-meta { color: var(--sz-community-accent); font-size: .91rem; }

.sz-community-updates > .sz-community-link { display: inline-block; margin-top: .62rem; }

.sz-community-location {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 1.7rem;
  padding-top: 1rem;
  border-top: 1px solid #f0eecc6b;
}

.sz-community-location address { font-style: normal; line-height: 1.5; }
.sz-community-location address > span { display: block; font-size: .86rem; color: #eeedd8; }
.sz-community-location address > strong { font-size: 1.08rem; }
.sz-community-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem 1.2rem; }

.sz-community a.sz-community-action {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 44px;
  border: 1px solid #f5efcb;
  border-radius: .6rem;
  padding: .55rem .95rem;
  font-weight: 750;
  color: #28301f;
  background: #e5e3bd;
  text-decoration: none;
}

.sz-community a.sz-community-action:hover { background: #f5f0d3; }
.sz-community a.sz-community-link { color: #f8f4d7; font-size: .92rem; font-weight: 650; text-decoration: underline; text-underline-offset: .19em; }
.sz-community a.sz-community-link:hover { color: #fff; }
.sz-community a:focus-visible { outline: 2px solid #fff6b9; outline-offset: 4px; }

@media (max-width: 860px) {
  .sz-community .sz-community-layout { grid-template-columns: 1fr; gap: 1.1rem; padding-block: 2.05rem 1.6rem; }
  .sz-community-photo { background-position: 53% 72%; }
  .sz-community::after { background: linear-gradient(180deg, #2c341fed 0%, #3d482aa6 48%, #2a3221ed 100%); }
  .sz-community h2 { margin-block: .55rem .8rem; }
  .sz-community-location { padding-top: .9rem; }
}

.sz-motion-off .sz-community-date-square::after { animation: none !important; }

@media (prefers-reduced-motion: reduce) {
  .sz-community-photo { position: absolute; height: auto; }
  .sz-community-date-square::after { animation: none !important; }
}
