/* 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);
  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; }

h1, h2, h3, h4 { font: inherit; }   /* every heading takes its face and size from its class, per mockup node */

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-brand); 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-brand); color: #fff;
}
.skip-link:focus { left: var(--space-8); top: var(--space-8); }

/* 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: 24×24 minimum (WCAG 2.2 AA, 2.5.8) added by a pseudo-element,
   never by padding — padding changes the layout, this does not. The standalone
   text links of the site ("View all →", "+42 Markets →"…) get the same zone here. */
.tap-target, .market__all, .event__more, .racing-band__all, .jump-band__all, .upcoming__all, .upcoming__link,
.betslip__foot a, .contact-panel__email, .contact-panel__link, .lim-side__link, .offer-row__link, .step__link,
.legal-link, .promo-hero__terms, .promo-before__link { position: relative; }
.tap-target::after, .market__all::after, .event__more::after, .racing-band__all::after, .jump-band__all::after, .upcoming__all::after, .upcoming__link::after,
.betslip__foot a::after, .contact-panel__email::after, .contact-panel__link::after, .lim-side__link::after, .offer-row__link::after, .step__link::after,
.legal-link::after, .promo-hero__terms::after, .promo-before__link::after {
  content: ""; position: absolute; inset: 50% 0 auto 0; translate: 0 -50%;
  height: 100%; min-height: 24px; z-index: 1;
}

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

/* Anchor targets land below the sticky header, not underneath it. */
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
