/* Dziennik zmian: hardcoded fallback and editable Elementor document. */
.jsw-dziennik-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 32px;
}

.jsw-dziennik-hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-l) 70%, var(--navy-l) 100%);
  padding: 56px 0 48px;
  position: relative;
  overflow: hidden;
}

.jsw-dziennik-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 50% 60% at 80% 40%, rgba(111, 198, 230, 0.12), transparent 60%);
}

.jsw-dziennik-hero .jsw-dziennik-content {
  position: relative;
  z-index: 1;
}

.jsw-dziennik-hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.025em;
  color: #fff !important;
  margin-bottom: 10px;
}

.jsw-dziennik-hero h1 em {
  font-style: italic;
  color: var(--yellow) !important;
}

.jsw-dziennik-hero p {
  font-size: .9rem;
  color: rgba(255, 255, 255, .65);
  font-weight: 300;
  line-height: 1.7;
  max-width: 520px;
}

.jsw-dziennik-page-body {
  padding: 48px 0 80px;
  background: var(--white);
}

.jsw-dziennik-year-section {
  padding: 0;
  background: var(--white);
}

.jsw-dziennik-year-section-first {
  padding-top: 48px;
}

.jsw-dziennik-year-section-last {
  padding-bottom: 80px;
}

.jsw-dziennik-year-section + .jsw-dziennik-year-section .jsw-changelog-year {
  margin-top: 48px;
}

.jsw-changelog-year {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--navy);
  line-height: 1.2;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--navy);
  margin-bottom: 2px;
}

.elementor-widget-heading.jsw-changelog-year .elementor-heading-title {
  font-size: 1.2rem !important;
  font-weight: 900 !important;
  color: var(--navy) !important;
  line-height: 1.2;
}

.jsw-timeline-entry {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.elementor-section.jsw-timeline-entry {
  display: block;
}

.elementor-section.jsw-timeline-entry > .elementor-container {
  align-items: flex-start;
}

.elementor-section.jsw-timeline-entry .elementor-widget {
  margin-bottom: 0;
}

.elementor-section.jsw-timeline-entry .elementor-column-gap-no > .elementor-column > .elementor-element-populated {
  padding: 0;
}

.elementor-section.jsw-timeline-entry .jsw-tl-date-col {
  padding-right: 20px;
}

.jsw-tl-date,
.elementor-widget-heading.jsw-tl-date .elementor-heading-title {
  font-size: .75rem !important;
  font-weight: 700 !important;
  color: var(--muted) !important;
  line-height: 1.4;
}

.jsw-tl-content h4,
.jsw-tl-content .elementor-widget-heading .elementor-heading-title {
  font-size: .9rem !important;
  font-weight: 700 !important;
  color: var(--navy) !important;
  margin-bottom: 4px;
  line-height: 1.35;
}

.jsw-tl-meta,
.elementor-widget-heading.jsw-tl-meta .elementor-heading-title {
  font-size: .68rem !important;
  color: var(--navy) !important;
  font-weight: 700 !important;
  margin-bottom: 4px;
  line-height: 1.35;
}

.jsw-tl-desc,
.elementor-widget-text-editor.jsw-tl-desc,
.elementor-widget-text-editor.jsw-tl-desc p,
.elementor-widget-text-editor.jsw-tl-desc li {
  font-size: .82rem !important;
  color: var(--muted) !important;
  line-height: 1.65;
  margin-bottom: 0;
}

.jsw-tl-desc p:last-child,
.jsw-tl-desc ul:last-child,
.jsw-tl-desc ol:last-child {
  margin-bottom: 0;
}

.jsw-tl-desc ul,
.jsw-tl-desc ol {
  margin-top: 8px;
  padding-left: 20px;
}

.jsw-tl-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.jsw-tl-list li {
  font-size: .8rem;
  color: #3a4560;
  padding: 3px 0;
  display: flex;
  gap: 8px;
}

.jsw-tl-list li::before {
  content: '•';
  color: var(--red);
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .jsw-dziennik-content {
    padding-right: 24px;
    padding-left: 24px;
  }

  .jsw-dziennik-hero {
    padding: 48px 0 44px;
  }

  .elementor-section.jsw-timeline-entry > .elementor-container {
    flex-direction: column;
  }

  .elementor-section.jsw-timeline-entry .jsw-tl-date-col,
  .elementor-section.jsw-timeline-entry .jsw-tl-content {
    width: 100%;
  }

  .elementor-section.jsw-timeline-entry .jsw-tl-date-col {
    padding-right: 0;
    padding-bottom: 6px;
  }
}
