/* KSC READING BODY READABILITY POLISH V1 */
/* Scope: reading pages only */
/* Content is not modified. Typography only. */

html body.ksc-reading-body-readability-polish-v1 {
  --ksc-yellow: #FFD300 !important;
  --ksc-reading-max-width: 1060px !important;
}

/* Main reading container */
html body.ksc-reading-body-readability-polish-v1 main {
  max-width: var(--ksc-reading-max-width) !important;
}

/* Reading paragraphs: calmer long-form rhythm */
html body.ksc-reading-body-readability-polish-v1 main p {
  max-width: 980px !important;
  font-size: clamp(17px, 1.08vw, 19px) !important;
  line-height: 1.78 !important;
  letter-spacing: -0.006em !important;
  margin-top: 0 !important;
  margin-bottom: 20px !important;
}

/* Keep title already fixed yellow; do not change title layout */
html body.ksc-reading-body-readability-polish-v1 h1,
html body.ksc-reading-body-readability-polish-v1 h1 * {
  color: #FFD300 !important;
  -webkit-text-fill-color: #FFD300 !important;
}

/* Section breathing after title card */
html body.ksc-reading-body-readability-polish-v1 main > section:first-of-type {
  margin-bottom: 30px !important;
}

/* Body text contrast */
html body.ksc-reading-body-readability-polish-v1 main p,
html body.ksc-reading-body-readability-polish-v1 main li {
  color: rgba(255, 255, 255, .90) !important;
}

/* Prevent full-width tiring lines on large screens */
@media (min-width: 1280px) {
  html body.ksc-reading-body-readability-polish-v1 main p {
    max-width: 940px !important;
  }
}

/* Mobile reading comfort */
@media (max-width: 640px) {
  html body.ksc-reading-body-readability-polish-v1 main p {
    font-size: 16.5px !important;
    line-height: 1.72 !important;
    margin-bottom: 18px !important;
  }
}