/* Shared corrections to the existing Bootstrap interface. */
html { scroll-padding-top: 146px; }
body { padding-top: 130px; }
main { min-height: 50vh; }
main:focus { outline: none; }
:where(a, button, input, select, textarea):focus-visible { outline: 3px solid #064f88 !important; outline-offset: 3px; }
.skip-link { position: fixed; top: 8px; left: 8px; transform: translateY(-160%); z-index: 2000; background: #fff; color: #064f88; padding: 12px; border: 2px solid currentColor; }
.skip-link:focus { transform: none; }
.navbar-brand img { max-height: 74px; width: auto; }
.navbar .nav-link { font-size: 14px; background: transparent; border: 0; }
.navbar-collapse { gap: 12px; }
.site-search { display: flex; align-items: center; gap: 8px; margin: 0; min-width: 0; }
.site-search input { width: 160px; min-width: 0; }
.site-search button { margin: 0 !important; }
.site-language { display: flex; gap: 6px; align-items: center; }
.language-submit { font-size: 12px; padding: 8px; }
.blog-image { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; background: #f4f6f8; }
.post-slider { min-width: 0; }
.post-slider .slick-slide img { max-width: 100%; }
.content { overflow-wrap: anywhere; }
.content table { display: block; max-width: 100%; overflow-x: auto; }
img { max-width: 100%; }
.content img { height: auto; }
input, select, textarea { max-width: 100%; }
.form-control { font-size: 16px; }
.errorlist { color: #a32222; text-align: start; margin-top: 6px; }
.closebtn { font-size: 24px; background: #fff; border: 1px solid #555; min-width: 32px; min-height: 32px; }
.pagination { flex-wrap: wrap; }
h1, h2, h3, h4, h5, h6, p, .card, .blog-post { overflow-wrap: anywhere; }
.post-slider .prevArrow, .post-slider .nextArrow { min-width: 36px; min-height: 36px; }
@media (max-width: 1399px) {
  .navbar-collapse { max-height: calc(100dvh - 100px); overflow-y: auto; padding: 12px 0; }
  .navbar .dropdown-menu { position: static; }
  .navbar-collapse > form, .navbar-collapse > div { margin-block: 8px; }
  .site-search input { width: 100%; }
  .site-language select { width: auto; }
  .navbar-collapse .btn { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
@media (forced-colors: active) {
  :where(a, button, input, select, textarea):focus-visible { outline-color: Highlight !important; }
}

.site-language select { min-width: 120px; width: 120px; padding-inline: 8px; }
.banner h1 { font-size: clamp(1.5rem, 3vw, 2.2rem) !important; text-transform: none !important; }
/* The inherited theme exposes dropdowns only on hover; Bootstrap's explicit
   .show state must also work for keyboard and touch input. */
.navigation .dropdown .dropdown-menu { display: none; opacity: 1; visibility: visible; transform: none; left: 0; }
.navigation .dropdown .dropdown-menu.show { display: block; opacity: 1; visibility: visible; transform: none; }
.navigation .dropdown .dropdown-menu li { opacity: 1; }
.navigation .dropdown:hover .dropdown-menu:not(.show) { display: none; }
#navbarDropdown + .dropdown-menu { right: 0; left: auto; }
