/**
 * Shared reset — the only stylesheet common to all four sites.
 *
 * Deliberately minimal: it normalises browser defaults and provides the two
 * accessibility primitives every site needs (skip link, focus visibility).
 * Everything else — colour, type, spacing, motion — belongs to each site's own
 * design system so the sites do not read as variations of one template.
 */

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

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

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

ul[class],
ol[class] {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

p, li {
  text-wrap: pretty;
}

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

svg {
  height: auto;
}

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

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

table {
  border-collapse: collapse;
  width: 100%;
}

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

address {
  font-style: normal;
}

/* Focus: never remove the indicator, only replace the default with a clearer one.
   Each design system sets --focus-ring to a colour that meets contrast on its
   own backgrounds. */
:focus-visible {
  outline: 3px solid var(--focus-ring, currentColor);
  outline-offset: 2px;
  border-radius: var(--focus-radius, 2px);
}

/* `main` is programmatically focused after skip-link activation; it must not
   then show a focus ring, because it is a scroll target rather than a control. */
main:focus {
  outline: none;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 999;
  padding: 0.75rem 1.25rem;
  background: #000;
  color: #fff;
  font: 600 1rem/1 system-ui, sans-serif;
  text-decoration: none;
  transform: translateY(-120%);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

/* Visually hidden, but still announced by assistive technology. */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
