/* Text contrast treatment for zones A/B/C/D (bright/sunlight backgrounds) */

/* 1) Headings (post titles etc.) inside the zone */
:is(.zone-a, .zone-b, .zone-c, .zone-d)
  :where(h1, h2, h3, h4, h5, h6, .entry-title, .post-title) {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  -webkit-text-stroke: 0.8px #000000 !important;
  text-shadow: none !important;
  filter:
    drop-shadow(1.2px 0 0 #000)
    drop-shadow(-1.2px 0 0 #000)
    drop-shadow(0 1.2px 0 #000)
    drop-shadow(0 -1.2px 0 #000)
    drop-shadow(0 0 2px rgba(0, 0, 0, 0.85));
}

/* 2) Body text (paragraphs, lists, definitions) */
:is(.zone-a, .zone-b, .zone-c, .zone-d) :where(p, li, dd, dt) {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  -webkit-text-stroke: 0.6px #000000 !important;
  text-shadow: none !important;
  filter:
    drop-shadow(1px 0 0 #000)
    drop-shadow(-1px 0 0 #000)
    drop-shadow(0 1px 0 #000)
    drop-shadow(0 -1px 0 #000)
    drop-shadow(0 0 2px rgba(0, 0, 0, 0.85));
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.2px;
}

/* 3) Inline elements inside body text inherit the same treatment */
:is(.zone-a, .zone-b, .zone-c, .zone-d)
  :where(p, li, dd, dt)
  :where(a, span, em, strong, small, code, i, b) {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  -webkit-text-stroke: 0.6px #000000 !important;
  text-shadow: none !important;
  filter:
    drop-shadow(1px 0 0 #000)
    drop-shadow(-1px 0 0 #000)
    drop-shadow(0 1px 0 #000)
    drop-shadow(0 -1px 0 #000)
    drop-shadow(0 0 2px rgba(0, 0, 0, 0.85));
}

/* 4) Slightly larger base text (not applied to zone D pagination) */
.zone-a,
.zone-b,
.zone-c {
  font-size: clamp(16px, 0.96rem + 0.35vw, 19px);
}

/* Section titles outline treatment */
:is(.zone-a, .zone-b, .zone-c, .zone-d)
  :where(.section-title, .section-title h1, .section-title h2, .section-title h3, .section-title .title, .section-title span) {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  -webkit-text-stroke: 0.4px rgba(0, 0, 0, 0.95) !important;
  text-shadow: none !important;
  filter:
    drop-shadow(0.6px 0 0 rgba(0, 0, 0, 0.9))
    drop-shadow(-0.6px 0 0 rgba(0, 0, 0, 0.9))
    drop-shadow(0 0.6px 0 rgba(0, 0, 0, 0.9))
    drop-shadow(0 -0.6px 0 rgba(0, 0, 0, 0.9))
    drop-shadow(0 0 1.2px rgba(0, 0, 0, 0.55));
  font-weight: inherit;
  letter-spacing: inherit;
}

:is(.zone-a, .zone-b, .zone-c, .zone-d)
  .section-title
  :where(span, em, strong, small, a) {
  color: inherit !important;
  -webkit-text-fill-color: inherit !important;
  -webkit-text-stroke: inherit !important;
  text-shadow: none !important;
  filter: inherit !important;
}

/* Pagination navigation inherits the same contrast treatment */
.zone-d-pagination .pagination {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin: 30px auto;
  max-width: 600px;
  align-items: center;
}

.zone-d-pagination .pagination a {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  -webkit-text-stroke: 0.6px #000000 !important;
  text-shadow: none !important;
  filter:
    drop-shadow(1px 0 0 #000)
    drop-shadow(-1px 0 0 #000)
    drop-shadow(0 1px 0 #000)
    drop-shadow(0 -1px 0 #000)
    drop-shadow(0 0 2px rgba(0, 0, 0, 0.85));
  font-weight: 600;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  font-size: 1rem;
}

.zone-d-pagination .pagination a:hover,
.zone-d-pagination .pagination a:focus {
  color: #eef3ff !important;
}

.zone-d-pagination--single .pagination {
  justify-content: center;
  text-align: center;
}
