/* Readability pass, 26 August 2026. Load after the existing site/tool styles.
   Keep text relative to the reader's default size, including on wide screens. */
html:root {
    font-size: clamp(100%, calc(75% + .3125vw), 137.5%);
    scroll-padding-block: 8rem 5rem;
}

:root {
    --content-width: 80rem;
    --measure: 68ch;
    --text-base: 1.0625rem;
    --text-sm: 1rem;
    --leading-body: 1.7;
}

/* Full-width backgrounds may grow; paragraphs keep a readable line length. */
html body #content p:not(.sr-only) {
    max-width: var(--measure);
    font-size: var(--text-base) !important;
    line-height: var(--leading-body) !important;
}

html body #content .wijers-lead,
html body #content > section:first-child p {
    font-size: clamp(1.125rem, 1rem + .2vw, 1.3125rem) !important;
}

html body #content :is(h1, h2, h3) {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: normal;
}

html body #content h1 { line-height: 1.12 !important; }
html body #content :is(h2, h3) { line-height: 1.2 !important; }

html body #content :is(p, li, summary, label, a, button) {
    overflow-wrap: anywhere;
    word-break: normal;
}

html body #content :is(.wijers-grid, .wijers-cards, .wijers-about-booking__intro) > * {
    min-width: 0;
    max-width: 100%;
}

/* Preserve contrast when an older page alternates its section backgrounds. */
html body #content > .wijers-section--blue:not(.wijers-cancellation-cta) {
    background: var(--wijers-blue) !important;
}

html body #content .wijers-section--blue :is(h2, h3, p) {
    color: #fff !important;
}

/* Small explanations and form labels remain readable at every breakpoint. */
html body #content :is(label, input, textarea, select),
html body #content .wijers-faq-item summary {
    font-size: max(1rem, 16px) !important;
    line-height: 1.5 !important;
}

html body #content :is(input, textarea, select) { max-width: 100%; }
html body #content .wijers-faq-item summary > span { flex-shrink: 0; }

html body #content button {
    font-size: max(1rem, 16px) !important;
    line-height: 1.45 !important;
    white-space: normal;
}

html body #content .wijers-message-field label span,
html body #content .wijers-message-field small {
    color: var(--wijers-muted);
}

html body #content .wijers-message-field small,
html body #content .wijers-yealink-choice small {
    font-size: 1rem;
    line-height: 1.6;
}

html body #content .wijers-yealink-progress__item:not([data-state="active"]):not([data-state="done"]) {
    color: var(--wijers-muted);
}

html body #content .wijers-yealink-progress__item,
html body #content .wijers-yealink-progress__item span {
    font-size: 1rem;
}

html body #content .wijers-yealink-check__question p {
    color: #fff !important;
}

html body #content .wijers-yealink-warning {
    display: block;
    font-size: 1rem;
    line-height: 1.6;
}

.wijers-yealink-warning > strong {
    display: block;
    margin-bottom: .3rem;
}

html body #content .wijers-yealink-result__summary pre {
    font-size: 1rem;
    overflow-wrap: anywhere;
}

@media (max-width: 600px) {
    .wijers-yealink-progress { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wijers-yealink-progress__item { justify-content: flex-start; }
}

html body #content :is(.wijers-button, a[class*="rounded-3xl"], button[class*="rounded-3xl"]) {
    min-height: 3rem;
    max-width: 100%;
    font-size: 1rem !important;
    line-height: 1.45 !important;
    white-space: normal !important;
    text-align: center;
}

html body #content :is(.wijers-button, a[class*="rounded-3xl"], button[class*="rounded-3xl"]) svg {
    flex-shrink: 0;
}

/* All section links stay visible, without a hidden sideways scroll strip. */
.wijers-section-nav__inner {
    flex-wrap: wrap;
    overflow: visible;
}

.wijers-section-nav a {
    flex: 0 1 auto;
    max-width: 100%;
    white-space: normal;
    font-size: 1rem;
    min-height: 2.75rem;
}

/* Fix intrinsic grid sizing around the long Dutch booking heading. */
.wijers-about-booking__intro {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .75fr);
}

@media (max-width: 960px) {
    .wijers-about-booking__intro { grid-template-columns: minmax(0, 1fr); }
}

/* Existing carousel controls only: no changes to reviews or their contents. */
[data-review-carousel-panel] .wijers-carousel-meta > .flex {
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
