/* Reset, typography and focus styles */
* {
  box-sizing:border-box;
}
html {
  scroll-behavior:smooth;
  scroll-padding-top:84px;
}
body {
  margin:0;
  font:400 16px/1.6 var(--f-body);
  color:var(--ink);
  background:var(--white);
  padding-top:env(safe-area-inset-top,0);
}
h1,h2,h3,h4 {
  font-family:var(--f-head);
  margin:0;
  color:var(--navy);
  line-height:1.15;
}
:focus-visible {
  outline:3px solid var(--orange);
  outline-offset:3px;
}
@keyframes float{50%{transform:translateY(24px) scale(1.05)}}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}.rv{opacity:1;transform:none}}

/* Accessibility helpers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  background: var(--navy-900);
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  font: 600 15px var(--f-body);
  text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }
main:focus { outline: none; }
a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
.tm-scroll { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tm-scroll:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.tm-scroll .tm-mx { min-width: 640px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Images scale with their container; width/height attributes reserve space (no layout shift) */
img { max-width: 100%; height: auto; }
.tm-nav img, .tm-ft .lg img { width: auto; }
