html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
}

/* Accessibility: Skip to main content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #000;
  color: #fff;
  padding: 8px 16px;
  text-decoration: none;
  z-index: 10000;
  border-radius: 0 0 4px 0;
}

.skip-link:focus {
  top: 0;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Ensure main content can receive focus */
main:focus {
  outline: none;
}

/* Improve focus visibility for all interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #0d6efd;
  outline-offset: 2px;
}

/* Navbar logo styling */
.navbar-brand img {
  height: 80px;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

/* Adjust navbar padding for larger logo */
.navbar {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

/* Align nav items vertically with larger logo */
.navbar-nav .nav-link {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

/* Main content area should grow to push footer down */
main {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
}

/* Footer improvements */
.footer {
  margin-top: auto;
  padding: 1rem 0;
  background-color: #f8f9fa;
  flex-shrink: 0;
}

.footer h5 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #212529;
}

.footer a {
  color: #495057;
  transition: color 0.15s ease-in-out;
}

.footer a:hover,
.footer a:focus {
  color: #212529;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .btn {
    border: 2px solid currentColor;
  }

  a:focus-visible {
    outline-width: 3px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}