/* Base reset + modern typography (Modern Navy/Sapphire Theme) */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--f-base);
  font-size: var(--fs-md);
  line-height: var(--lh-base);
  word-break: normal;
  overflow-wrap: anywhere;
}

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.3;
  font-weight: 700;
  color: var(--c-primary);
  letter-spacing: -0.01em;
}

h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); font-weight: 600; }

p { margin: 0; }
a { color: var(--c-secondary); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--c-secondary-hover); }

img, svg { max-width: 100%; display: block; }
table { border-collapse: separate; border-spacing: 0; width: 100%; }

.num, td.num, th.num { font-variant-numeric: tabular-nums; text-align: right; }
.muted { color: var(--c-ink-3); }
.small { font-size: var(--fs-sm); }
.xs { font-size: var(--fs-xs); }
.mono { font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }

.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;
}

:focus-visible {
  outline: 3px solid rgba(0, 99, 152, 0.45);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

.skip-link {
  position: absolute; left: var(--s-3); top: -60px; z-index: 100;
  background: var(--c-primary); color: #fff; padding: var(--s-2) var(--s-4);
  border-radius: var(--r-md); font-weight: 500; font-size: var(--fs-sm);
  box-shadow: var(--shadow-md);
  transition: top var(--t-fast);
}
.skip-link:focus { top: var(--s-3); }

/* Material Symbols & SVG Icon standardization */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
  font-size: 20px;
  line-height: 1;
  display: inline-block;
  user-select: none;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}

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