/* ==========================================================================
   MediPalas — reset
   Modern, minimal, accessibility-preserving. Nothing brand-specific here.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
}

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd, ol, ul, fieldset, legend {
  margin: 0;
  padding: 0;
}

ul[role='list'], ol[role='list'] { list-style: none; }

body {
  min-height: 100svh;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.12;
  text-wrap: balance;
  font-weight: inherit;
}

p, li { text-wrap: pretty; }

/* Media defaults — every image on this site ships with width/height to keep CLS at zero. */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}
img, video { height: auto; }
svg { fill: currentColor; }

/* Forms inherit type instead of falling back to the UA's 13px Arial. */
input, button, textarea, select {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}
button { background: none; border: 0; cursor: pointer; }
textarea { resize: vertical; }

fieldset { border: 0; min-inline-size: 0; }

table { border-collapse: collapse; border-spacing: 0; }

a { color: inherit; }

/* Keep the underline meaningful: remove it only where we restyle deliberately. */
a:not([class]) { text-decoration-skip-ink: auto; }

/* Focus: never remove the ring. Mouse users simply don't see it. */
:focus-visible {
  outline: var(--focus-ring-width, 3px) solid var(--focus-ring, #4E9A2E);
  outline-offset: var(--focus-ring-offset, 2px);
  border-radius: 2px;
}
:focus:not(:focus-visible) { outline: none; }

[hidden] { display: none !important; }

/* Anchor scrolling clears the sticky header without a JS offset hack. */
:target { scroll-margin-top: var(--header-clearance, 6rem); }

/* Honour the OS setting. Lenis and every GSAP timeline are also disabled in JS —
   this rule is the belt to that braces, so the site is usable even if JS fails. */
@media (prefers-reduced-motion: reduce) {
  html:focus-within { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
