/* Shared accessibility controls and baseline improvements. */
html { scroll-padding-bottom: 100px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 12px; inset-inline-start: 12px; z-index: 200;
  padding: 12px 20px; border: 2px solid #fff; border-radius: 8px;
  background: #050606; color: #dfff00; font-size: 1rem;
  transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--acid); outline-offset: 4px; }
main:focus { outline: none; }
.js .reveal:focus-within { opacity: 1; translate: 0 0; }
.language-switcher a { min-height: 32px; display: inline-flex; align-items: center; justify-content: center; }
.nav { max-height: calc(100dvh - 110px); overflow-y: auto; }
.toc a:focus-visible { outline-offset: -3px; }
.product-speed h2 { overflow-wrap: anywhere; }
.footer { padding-bottom: 120px; }
.a11y-launcher {
  position: fixed; inset-inline-end: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom)); z-index: 110;
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  border: 1px solid #dfff00; border-radius: 50%;
  color: #dfff00; background: #050606;
  box-shadow: 0 4px 24px #0008;
}
.a11y-launcher svg { width: 24px; height: 24px; fill: currentColor; flex: 0 0 auto; }
.a11y-panel {
  width: min(440px, calc(100% - 24px)); max-width: calc(100% - 24px); max-height: calc(100dvh - 24px);
  margin: auto; padding: 24px; overflow-y: auto; overscroll-behavior: contain;
  border: 2px solid var(--acid); border-radius: 20px;
  background: #111312; color: #f6f8f3; font-size: 1rem; line-height: 1.5;
}
.a11y-panel::backdrop { background: #000b; }
.a11y-panel-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.a11y-panel h2 { font-size: 1.5rem; line-height: 1.3; margin: 0; }
.a11y-panel button, .a11y-panel select {
  min-height: 44px; min-width: 0; max-width: 100%; padding: 10px 12px; overflow-wrap: anywhere;
  border: 1px solid #a7aca5; border-radius: 8px;
  font: inherit; color: #f6f8f3; background: #111312;
}
.a11y-panel button:hover, .a11y-panel button[aria-pressed="true"] { background: #dfff00; color: #050606; border-color: #dfff00; }
.a11y-panel select { display: block; width: 100%; margin: 8px 0 16px; }
.a11y-options { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-bottom: 16px; }
.a11y-options button { text-align: start; }
.a11y-options button[aria-pressed="true"]::before { content: '✓ '; }
.a11y-panel p { margin: 12px 0 0; color: #c7cbc4; font-size: .875rem; }

html.a11y-links a { text-decoration: underline !important; text-underline-offset: .2em; }
html.a11y-contrast { --black: #000; --black-soft: #000; --white: #fff; --muted: #fff; --muted-light: #fff; --line: #fff; --acid: #ff0; --acid-soft: #ff0; }
html.a11y-contrast body, html.a11y-contrast body *:not(svg):not(svg *) {
  background-color: #000 !important; background-image: none !important;
  color: #fff !important; text-shadow: none !important; box-shadow: none !important;
}
html.a11y-contrast a, html.a11y-contrast button, html.a11y-contrast summary { color: #ff0 !important; }
html.a11y-contrast .hero h1 span { -webkit-text-fill-color: #fff; }
html.a11y-contrast button[aria-pressed="true"] { border: 3px solid #ff0; }
html.a11y-contrast body::before, html.a11y-contrast .cursor-glow { display: none; }
html.a11y-contrast .nav, html.a11y-contrast .a11y-panel { border-color: #fff; }

html.a11y-motion { scroll-behavior: auto; }
html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after {
  animation: none !important; transition: none !important;
}
html.a11y-motion .reveal { opacity: 1 !important; translate: 0 0 !important; }
html.a11y-motion .cursor-glow { display: none; }
html.a11y-motion :is(.card, .hero-visual, .hero-mark, .step, img, .btn, .quick-contact-link) { transform: none !important; }

/* Larger text keeps the header and content in a single-column, wrapping layout. */
html.a11y-large-text body { overflow-wrap: anywhere; }
html.a11y-large-text .site-header { position: relative; }
html.a11y-large-text .header-inner { flex-wrap: wrap; }
html.a11y-large-text .nav { position: static; visibility: visible; opacity: 1; transform: none; pointer-events: auto; flex: 1 0 100%; flex-direction: row; flex-wrap: wrap; max-height: none; }
html.a11y-large-text .mobile-toggle { display: none; }
html.a11y-large-text .language-switcher { margin-inline-start: auto; }
html.a11y-large-text :is(.hero, .article-hero) { margin-top: 0; }
html.a11y-large-text .hero-inner { padding-top: 64px; }
html.a11y-large-text :is(.hero-inner, .grid-3, .grid-4, .stats, .team-grid, .chairside-feature, .article-layout, .product-hero-grid, .product-split, .product-faq-layout, .product-catalog-card, .product-steps, .product-facts, .product-speed, .product-ipn, .product-benefits) { grid-template-columns: minmax(0, 1fr); }
html.a11y-large-text :is(h1, h2, h3, p, a, span, strong) { overflow-wrap: anywhere; }
html.a11y-large-text .toc { display: block; }
html.a11y-large-text .toc a { white-space: normal; }
html.a11y-large-text .article-sidebar { position: static; }
html.a11y-large-text .product-toc { flex-wrap: wrap; }
html.a11y-large-text .footer-inner { flex-wrap: wrap; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; translate: 0 0; }
  :is(.card, .hero-visual, .hero-mark, .step, img, .btn) { transform: none !important; }
}
/* Navigation still works when scripts are disabled. */
@media (max-width: 800px) {
  html:not(.js) .site-header { position: relative; }
  html:not(.js) .header-inner { flex-wrap: wrap; }
  html:not(.js) .mobile-toggle { display: none; }
  html:not(.js) .nav { position: static; visibility: visible; opacity: 1; pointer-events: auto; transform: none; flex-basis: 100%; max-height: none; }
  html:not(.js) :is(.hero, .article-hero) { margin-top: 0; }
}
