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

html.is-saver body {
  color: #1c2530 !important;
  /* background: #f4f6f9 !important; */
}

html.is-saver .site-header .nav-bar {
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 4px 24px -10px rgba(10, 30, 60, 0.25) !important;
}

html.is-saver .site-header .utility-bar {
  background: #eef2f7 !important;
}

html.is-saver .nav-link,
html.is-saver .utility-links a,
html.is-saver .tts-toggle span,
html.is-saver .saver-toggle__label {
  color: #1c2530 !important;
}

html.is-saver .nav-link__caret {
  border-top-color: #1c2530 !important;
}

html.is-saver .env-subnav {
  background: #ffffff !important;
  box-shadow: 0 4px 20px rgba(10, 30, 60, 0.12) !important;
}

html.is-saver .env-subnav__item {
  color: #5f6774 !important;
  border-right-color: rgba(10, 30, 60, 0.1) !important;
}

html.is-saver .env-subnav__item:hover,
html.is-saver .env-subnav__item.active {
  color: #1c2530 !important;
  background: rgba(0, 105, 170, 0.08) !important;
}

html.is-saver .env-climate-p,
html.is-saver .lead-flow-item .env-climate-p,
html.is-saver .env-takeaway__list li,
html.is-saver .lead-outlook__driver .env-climate-p,
html.is-saver .lead-outlook__frame > .env-climate-p:last-child,
html.is-saver .gov-committee__copy,
html.is-saver .gov-policies-list li,
html.is-saver .gov-prism-stat p,
html.is-saver .gov-prism-oversight .env-climate-p,
html.is-saver .gov-incidents-table td {
  color: #495464 !important;
}

html.is-saver .env-takeaway,
html.is-saver .gov-policies-panel,
html.is-saver .gov-prism-photo,
html.is-saver .gov-incidents-wrap,
html.is-saver .gov-exco-card__lower {
  box-shadow: 0 20px 45px rgba(10, 30, 60, 0.12) !important;
}

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