/* The original visual system is in assets/css/original.css.
   These small additions support the standalone, framework-free interactions. */
:root { --header-height: 122px; }
html { scroll-behavior: smooth; }
body { margin: 0; }
[hidden] { display: none !important; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid #0038ff; outline-offset: 4px; }
#document-form .field-error { display: none; margin-top: 10px; color: #bb1c35; font-size: 13px; }
#document-form input[aria-invalid="true"] + .field-error { display: block; }
#document-form input[aria-invalid="true"] { outline: 1px solid #bb1c35; }
.form-status { color: #55557a; font-size: 14px; line-height: 1.8; }
.form-status a { color: #0038ff; text-decoration: underline; }
#cookie-notice { z-index: 50; }
.mobile-menu { position: fixed; inset: var(--header-height) 12px auto; z-index: 40; max-height: calc(100dvh - var(--header-height) - 24px); overflow: auto; padding: 16px; border-radius: 16px; background: white; box-shadow: 0 12px 50px #00004520; font-family: rubik, sans-serif; }
.mobile-menu a { display: block; padding: 12px 16px; border-radius: 8px; }
.mobile-menu a:hover { background: #f1f5ff; }
#search-dialog { width: min(560px, calc(100% - 32px)); max-height: 80dvh; margin: auto; padding: 32px; border: 0; border-radius: 20px; color: #000045; background: white; font-family: rubik, sans-serif; }
#search-dialog::backdrop { background: #00004555; backdrop-filter: blur(4px); }
#search-title { margin: 16px 0 24px; font-size: 22px; font-weight: 500; }
.dialog-close { position: absolute; left: 16px; top: 8px; width: 40px; height: 40px; font-size: 28px; cursor: pointer; }
#site-search { width: 100%; padding: 16px; border-radius: 12px; background: #f2f5ff; }
#search-results { padding: 16px 0 0; }
#search-results li { display: block; padding: 10px 0; }
#search-results li:hover { color: #0038ff; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
html.high-contrast { filter: contrast(1.5) grayscale(1); }
html.hide-images img { visibility: hidden; }
html.large-text #main-content, html.large-text footer { font-size: 112.5%; }
@media (max-width: 767px) {
  :root { --header-height: 128px; }
  #cookie-notice { max-height: 80dvh; overflow: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

#document-form button:disabled { opacity: .7; cursor: wait; }

