/* Base layer: document defaults, typography, links, focus. Values come from tokens.css. */
@font-face {
  font-family: "Inter Fallback";
  src: local("Segoe UI"), local("Arial"), local("Liberation Sans");
  size-adjust: 107%;
  ascent-override: 90.5%;
  descent-override: 22.5%;
  line-gap-override: 0%;
}
html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--topbar-height) + var(--space-4));
  scrollbar-color: var(--border-strong) transparent;
}
::selection {
  background: var(--selection);
  color: var(--text);
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-base);
  font-feature-settings: var(--font-features);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  color: var(--text);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tight);
  margin-top: 0;
}
h1, .h1, .page-title { font-size: var(--text-2xl); line-height: var(--leading-2xl); letter-spacing: var(--tracking-tighter); }
h2, .h2, .h4, .h5, .section-title { font-size: var(--text-lg); line-height: var(--leading-lg); }
h3, .h3, .h6, .card-title { font-size: var(--text-md); line-height: var(--leading-md); }
h4, h5, h6 { font-size: var(--text-base); line-height: var(--leading-base); }
small, .small { font-size: var(--text-sm); line-height: var(--leading-sm); }
.text-xs { font-size: var(--text-xs); line-height: var(--leading-xs); }
.eyebrow {
  font-size: var(--text-xs);
  line-height: var(--leading-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-faint);
}
.text-muted, .text-body-secondary { color: var(--text-muted) !important; }
.text-faint { color: var(--text-faint) !important; }
.tabular, table, .stat-value { font-variant-numeric: tabular-nums; }
code, kbd, pre, samp, .font-monospace { font-family: var(--font-mono); }
strong, b { font-weight: var(--weight-semibold); }
a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
a:hover {
  color: var(--accent-hover);
}
p a, .prose a, .inline-link, .form-text a, .alert a {
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  text-decoration-thickness: var(--hairline);
  text-underline-offset: 0.2em;
}
p a:hover, .prose a:hover, .inline-link:hover, .form-text a:hover, .alert a:hover {
  text-decoration-color: currentColor;
}
:focus-visible {
  outline: var(--ring-width) solid var(--focus);
  outline-offset: var(--ring-offset);
}
:focus:not(:focus-visible) {
  outline: none;
}
.btn:focus-visible,
.btn-close:focus-visible,
.nav-link:focus-visible,
.page-link:focus-visible,
.form-check-input:focus-visible {
  outline: var(--ring-width) solid var(--focus);
  outline-offset: var(--ring-offset);
  box-shadow: none;
}
.dropdown-item:focus-visible {
  outline: var(--ring-width) solid var(--focus);
  outline-offset: calc(var(--ring-width) * -1);
}
* {
  scrollbar-width: thin;
}
::-webkit-scrollbar {
  width: var(--scrollbar);
  height: var(--scrollbar);
}
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border: var(--space-half) solid transparent;
  border-radius: var(--radius-full);
  background-clip: padding-box;
}
::-webkit-scrollbar-track {
  background: transparent;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: var(--dur-instant) !important;
    animation-iteration-count: 1 !important;
    animation-delay: var(--dur-instant) !important;
    transition-duration: var(--dur-instant) !important;
    transition-delay: var(--dur-instant) !important;
    scroll-behavior: auto !important;
  }
}
.icon {
  width: var(--icon-sm);
  height: var(--icon-sm);
  flex-shrink: 0;
  display: inline-block;
  vertical-align: -0.2em;
  fill: none;
  stroke: currentColor;
  stroke-width: var(--icon-stroke);
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-md { width: var(--icon-md); height: var(--icon-md); }
.icon-lg { width: var(--icon-lg); height: var(--icon-lg); }
.skip-link {
  position: absolute;
  z-index: var(--z-tooltip);
  left: var(--space-4);
  top: var(--space-4);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--accent);
  color: var(--accent-text);
}
