/* =============================================================
   HZL Microsite — Base / reset
   ============================================================= */

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

* { margin: 0; padding: 0; }

html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: auto; /* Lenis handles smoothing */
}

body {
  font-family: var(--font-body);
  color: var(--on-dark);
  background: var(--navy-900);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Lock scroll while drawer / search overlay is open */
body.is-locked { overflow: hidden; }

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

a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

ul { list-style: none; }

:focus-visible {
  outline: 2px solid var(--teal-400);
  outline-offset: 3px;
  border-radius: 2px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

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

/* Responsive safety net for content-heavy inner pages */
@media (max-width: 767px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
  }

  main,
  section,
  article,
  aside,
  header,
  footer {
    min-width: 0;
  }

  [class*="__inner"],
  [class*="__wrap"],
  [class*="__grid"],
  [class*="__row"],
  [class*="__content"],
  [class*="__media"],
  [class*="__copy"],
  [class*="__body"],
  [class*="__meta"] {
    min-width: 0;
  }

  iframe,
  canvas,
  table {
    max-width: 100%;
  }

  [class*="__table"],
  [class*="-table"],
  .table-wrap,
  .table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
