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 {
  min-height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body > .container {
  flex: 1 0 auto;
}

/* Mobile-friendly improvements */
@media (max-width: 767px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }

  h1, h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  h4 {
    font-size: 1.1rem;
  }

  h5 {
    font-size: 1rem;
  }

  /* Better touch targets */
  .btn {
    min-height: 38px;
    padding: 0.25rem 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
  }

  /* Improve table readability on mobile */
  .table-responsive {
    border: none;
  }

  /* Better spacing for mobile */
  main {
    padding-bottom: 1rem !important;
  }
}

/* Ensure images are responsive */
img {
  max-width: 100%;
  height: auto;
}

/* Improve link touch targets on mobile */
@media (max-width: 767px) {
  a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .nav-link {
    padding: 0.75rem 1rem;
  }
}

/* Footer adjustments for mobile */
@media (max-width: 767px) {
  .footer {
    font-size: 0.85rem;
    padding: 1rem 0;
  }

  .footer .container {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}
/* Subtle content links */
main :where(a:not(.btn, .nav-link, .page-link, .dropdown-item, .stretched-link, .text-reset, .text-decoration-none, h2 > a, h3 > a)) {
  color: #b8001a;
  text-decoration: none;
  border-bottom: 1px solid rgba(184, 0, 26, 0.25);
  transition: color 0.15s, border-color 0.15s;
}

main :where(a:not(.btn, .nav-link, .page-link, .dropdown-item, .stretched-link, .text-reset, .text-decoration-none, h2 > a, h3 > a)):hover {
  color: #ec0022;
  border-bottom-color: #ec0022;
}

main h2 > a, main h3 > a {
  color: inherit;
}
