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

* {
  margin: 0;
}

/* The `hidden` attribute must always win — otherwise a class like `.btn`
   (display: inline-flex) overrides it and a "hidden" control stays visible
   (this is what kept the "load more" button showing with nothing left to load). */
[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  /* Belt-and-suspenders against sideways scroll: clip (not hidden) so the
     sticky header and position:sticky descendants keep working. Root causes
     are fixed individually; this guarantees no horizontal jitter slips through. */
  overflow-x: clip;
}

body {
  min-height: 100dvh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

p,
h1,
h2,
h3,
h4 {
  overflow-wrap: break-word;
}

ul,
ol {
  list-style: none;
  padding: 0;
}

a {
  color: inherit;
}

button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
