/*
 * BKA Web UI — BASE (W-UI0)
 * Reset, typography, focus visibility, and accessibility utilities.
 * Loaded after tokens.css, before layout.css / components.css.
 */

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--color-text);
  background: var(--color-bg);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: var(--lh-heading);
  margin-block: 0 var(--space-3);
  color: var(--color-primary); /* approved Navy identity on every heading */
}

h1 {
  font-size: var(--fs-h1);
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-h3);
}

p {
  margin-block: 0 var(--space-3);
}

ul {
  margin-block: 0 var(--space-3);
}

a {
  color: var(--color-primary);
}

button {
  font-family: inherit;
}

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

/* Visible keyboard focus on every interactive element */
:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

/* Skip link: visually hidden until focused via keyboard */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-2);
  z-index: 100;
  padding: var(--space-2) var(--space-4);
  background: var(--color-primary);
  color: var(--color-primary-contrast);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: var(--fw-semibold);
}

.skip-link:focus {
  top: var(--space-2);
}

/* Long words / strings must never force horizontal page scrolling */
.state__text,
.page-intro,
.footer-note {
  overflow-wrap: anywhere;
}
