/* Reset, document defaults, accessibility basics. Nothing project-specific. */

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

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

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-base);
  font-weight: 400;
  min-height: 100vh;
  overflow-x: hidden;          /* nothing may scroll the page sideways */
}

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

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

/* headings take face, size and line-height from their class, per mockup node — a
   global display face silently changes every card title set in the body face */
h1, h2, h3, h4 { font: inherit; }

a { color: inherit; }

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

/* Visible focus is not optional, whatever the mockup shows. */
:focus-visible { outline: 2px solid var(--color-lime); outline-offset: 2px; }
:focus:not(:focus-visible) { outline: none; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: var(--z-modal);
  padding: var(--space-8) var(--space-16); background: var(--color-lime); color: var(--color-text-dark); font-family: var(--font-display); font-weight: 700;
}
.skip-link:focus { left: var(--space-8); top: var(--space-8); }

/* A hidden control inside a component must stay hidden even when the component
   sizes its inputs (`.field input { width:100% }`): the doubled class wins. */
.visually-hidden.visually-hidden { width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; }

/* A hidden element must stay hidden even when a component sets display.
   Without this a closed panel keeps its height and pushes sections down. */
[hidden][hidden] { display: none !important; }

/* Tap targets added by a pseudo-element, never by padding — padding changes
   the layout, this does not. .tap-target: 24×24 (WCAG 2.2 AA, 2.5.8) for
   controls in dense rows; .tap-target--44: 44×44 where nothing sits within
   reach of the enlarged zone (buttons in their own row, standalone links). */
.tap-target, .tap-target--44, .btn, .featured__btn, .jump__all, .collage__more { position: relative; }
.tap-target::after, .tap-target--44::after, .btn::after, .featured__btn::after, .jump__all::after, .collage__more::after {
  content: ""; position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: 100%; height: 100%; min-width: 24px; min-height: 24px; z-index: 1;
}
.tap-target--44::after, .btn::after, .featured__btn::after, .jump__all::after, .collage__more::after { min-width: 44px; min-height: 44px; }

/* In-page anchors (#meetings, #form, …) land under the sticky header without this. */
[id] { scroll-margin-top: 88px; }   /* 72 sticky header + 16 */
@media (max-width: 1199px) { [id] { scroll-margin-top: 72px; } }   /* 56 sticky + 16 */
