/* DevoriaSoft base — resets and default typography on top of Bootstrap. */

/* Native cross-document page transitions where the browser supports them; silently ignored elsewhere. */
@view-transition {
  navigation: auto;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--ds-font-sans);
  font-size: var(--ds-fs-base);
  line-height: var(--ds-lh-normal);
  color: var(--ds-text);
  background-color: var(--ds-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--ds-fw-bold);
  line-height: var(--ds-lh-tight);
  color: var(--ds-navy);
  margin-top: 0;
  margin-bottom: var(--ds-space-4);
}

h1 { font-size: var(--ds-fs-4xl); }
h2 { font-size: var(--ds-fs-3xl); }
h3 { font-size: var(--ds-fs-2xl); }
h4 { font-size: var(--ds-fs-xl); }
h5 { font-size: var(--ds-fs-lg); }
h6 { font-size: var(--ds-fs-base); }

@media (max-width: 767.98px) {
  h1 { font-size: var(--ds-fs-3xl); }
  h2 { font-size: var(--ds-fs-2xl); }
  h3 { font-size: var(--ds-fs-xl); }
}

p {
  margin-top: 0;
  margin-bottom: var(--ds-space-4);
  color: var(--ds-text);
}

.text-muted-ds {
  color: var(--ds-text-muted) !important;
}

a {
  color: var(--ds-link);
  text-decoration: none;
  transition: color var(--ds-duration-fast) var(--ds-ease);
}

a:hover {
  color: var(--ds-link-hover);
  text-decoration: underline;
}

::selection {
  background: var(--ds-blue-100);
  color: var(--ds-navy);
}

/* Visible focus ring for keyboard users (accessibility) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--ds-blue);
  outline-offset: 2px;
  border-radius: var(--ds-radius-sm);
}

/* Skip-to-content link for screen reader / keyboard users */
.skip-link {
  position: absolute;
  top: -48px;
  left: var(--ds-space-4);
  z-index: 2000;
  background: var(--ds-navy);
  color: var(--ds-text-on-dark);
  padding: var(--ds-space-2) var(--ds-space-4);
  border-radius: var(--ds-radius-sm);
  transition: top var(--ds-duration-fast) var(--ds-ease);
}

.skip-link:focus {
  top: var(--ds-space-2);
  color: var(--ds-text-on-dark);
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

hr {
  border: none;
  border-top: 1px solid var(--ds-border);
  margin: var(--ds-space-6) 0;
}
