/* Keyboard improvements use the approved palette and do not change resting layouts. */
html { scroll-padding-top: 140px; }
:is(a, button, input, textarea, select, [tabindex]) { scroll-margin-block: 12px 70px; }
body :is(a, button, input, textarea, select, [tabindex]):focus-visible,
.forminator-ui.forminator-custom-form :is(input, textarea, select, button):focus-visible {
  outline: 3px solid #0b2b40 !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 3px #fff !important;
  opacity: 1 !important;
  /* Forminator transitions all properties; the focus ring must appear immediately. */
  transition: none !important;
}
.skip-link {
  position: fixed;
  z-index: 100001;
  top: 12px;
  left: 12px;
  max-width: calc(100vw - 24px);
  padding: 10px 18px;
  border-radius: 5px;
  background: #fff;
  color: #0b2b40;
  font-weight: 750;
  text-decoration: underline;
  transform: translateY(calc(-100% - 24px));
}
.skip-link:focus { transform: none; }
/* The existing bottom border already marks the current link; the animated line crossed its text. */
.site-header .main-nav a::after { display: none; }
#main:focus-visible { outline-offset: -3px !important; box-shadow: none !important; }
.motion-ready [data-reveal]:focus-within {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
.motion-ready .yhs-hero .yhs-buttons:focus-within {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}
/* Video cards clip their children; draw the focus ring inside the player boundary. */
body .video-frame :is(.video-play, iframe):focus-visible {
  outline: 3px solid #fff !important;
  outline-offset: -6px !important;
  box-shadow: inset 0 0 0 9px #0b2b40 !important;
}
@media (max-width: 1050px) {
  .header-inner .main-nav {
    max-height: calc(100vh - 160px);
    max-height: calc(100dvh - 160px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}
.error-404-hero { position: relative; height: auto; min-height: 210px; padding-block: 64px; }
.error-404-hero::before { content: ""; position: absolute; inset: 0; background: rgba(11,43,64,.72); pointer-events: none; }
.error-404-hero .container { position: relative; z-index: 1; display: block; text-align: center; }
.error-404-copy h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.error-404-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-block: 28px; }
.error-404-secondary { color: var(--blue); background: #fff; border-color: var(--blue); }
.error-404-copy p a { text-decoration: underline; text-underline-offset: .15em; }
@media (forced-colors: active) {
  body :is(a, button, input, textarea, select, [tabindex]):focus-visible,
  .forminator-ui.forminator-custom-form :is(input, textarea, select, button):focus-visible,
  body .video-frame :is(.video-play, iframe):focus-visible {
    outline-color: Highlight !important;
  }
}
