/* Small deliberate fixes on top of the original site's CSS. Each rule says what and why. */

/* The page's main heading (H1) for search engines and screen readers. The original pages show their headings as
   H2, so the H1 (from src/data/seo.ts) is kept out of sight rather than changing the design. */
.qm-sr-h1 {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* "Page not found" (src/pages/404.astro), between the site's own header and footer. */
.qm-notfound { max-width: 720px; margin: 0 auto; padding: 160px 20px 80px; font-size: 16px; line-height: 1.7; }
.qm-notfound h1 { font-size: 32px; padding-bottom: 16px; }
.qm-notfound ul { list-style: none; padding: 16px 0 0; }

/* Form sending state (public/site/forms.js): spinner and "Sending…" on the submit button, further clicks ignored. */
.qm-busy { pointer-events: none !important; cursor: wait !important; opacity: .75; }
.qm-spin { display: inline-block; width: 1em; height: 1em; margin-right: .5em; vertical-align: -.15em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: qm-spin .7s linear infinite; }
@keyframes qm-spin { to { transform: rotate(360deg); } }
/* The human check (Cloudflare Turnstile), added above each form's submit button. */
.qm-turnstile { margin: 10px 0 16px; min-height: 65px; }
/* A message under the form after sending (in place of the original's page reload). */
.qm-form-msg { margin-top: 14px; padding: 12px 16px; border-radius: 8px; font-size: 15px; line-height: 1.5; }
.qm-form-msg.ok { background: #e8f6ee; color: #14532d; }
.qm-form-msg.err { background: #fdecec; color: #7f1d1d; }
