

:root[data-text-scale] { font-size: calc(16px * var(--text-scale, 1)); }
@media (min-width: 921px) {
  :root[data-text-scale] { font-size: calc(clamp(12.48px, calc(12.48px + (100vw - 1512px) * 0.00875), 15px) * var(--text-scale, 1)); }
}

:root[data-text-scale] .nav-logo .wordmark { width: calc(5.75rem / var(--text-scale, 1)); height: calc(1.625rem / var(--text-scale, 1)); }
@media (max-width: 480px) {
  :root[data-text-scale] .nav-search { display: none; }
  :root[data-text-scale] .navbar-row, :root[data-text-scale] .navbar-actions { gap: .5rem; }
}

html.motion-paused, html.motion-paused body { scroll-behavior: auto !important; }

html.motion-paused *, html.motion-paused *::before, html.motion-paused *::after {
  animation-duration: 1ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; }

.a11y { position: fixed; right: clamp(.75rem, 2vw, 1.25rem); bottom: clamp(.75rem, 2vw, 1.25rem); z-index: 950;
  font-family: var(--grotesk); font-size: 14px; line-height: 1.3; }
.a11y__btn { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid rgba(255, 255, 255, .14); border-radius: 0;
  background: rgba(13, 13, 15, .82); color: #fff; cursor: pointer; box-shadow: 0 .25rem 1rem rgba(0, 0, 0, .18);
  transition: background-color .2s ease, transform .2s ease; }
.a11y__btn svg { width: 20px; height: 20px; fill: currentColor; }
.a11y__btn:hover { background: #0d0d0f; }
.a11y__btn:focus-visible { outline: 2px solid var(--signal, #d99f2b); outline-offset: 2px; }
.a11y__btn[aria-expanded="true"] { background: #0d0d0f; border-color: rgba(255, 255, 255, .3); }

.a11y__panel { position: absolute; right: 0; bottom: calc(100% + .5rem); width: 260px; max-width: calc(100vw - 1.5rem); padding: 14px 16px 12px;
  background: #0d0d0f; color: #f4f5f5; border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 .75rem 2rem rgba(0, 0, 0, .35); }
.a11y__panel[hidden] { display: none; }
.a11y__title { margin: 0 0 8px; font-size: 12px; letter-spacing: .02em; color: rgba(244, 245, 245, .55); }
.a11y__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.a11y__row--stack { flex-direction: column; align-items: stretch; gap: 8px; }
.a11y__val { color: rgba(244, 245, 245, .6); }

.a11y__switch { position: relative; flex: none; width: 40px; height: 22px; padding: 0; border: 1px solid rgba(255, 255, 255, .25); border-radius: 0;
  background: transparent; cursor: pointer; }
.a11y__switch i { position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; background: rgba(244, 245, 245, .7); transition: transform .2s ease, background-color .2s ease; }
.a11y__switch[aria-checked="true"] { background: var(--signal, #d99f2b); border-color: var(--signal, #d99f2b); }
.a11y__switch[aria-checked="true"] i { transform: translateX(18px); background: #0d0d0f; }
.a11y__switch:focus-visible, .a11y__seg button:focus-visible { outline: 2px solid var(--signal, #d99f2b); outline-offset: 2px; }

.a11y__seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.a11y__seg button { min-height: 36px; padding: 0; border: 1px solid rgba(255, 255, 255, .16); border-radius: 0; background: transparent;
  color: rgba(244, 245, 245, .8); font: inherit; cursor: pointer; }
.a11y__seg button[aria-pressed="true"] { background: #f4f5f5; border-color: #f4f5f5; color: #0d0d0f; }

.brief-fab ~ .a11y, body:has(.brief-fab) .a11y { bottom: calc(clamp(.75rem, 2vw, 1.25rem) + 3.5rem); }
.a11y { transition: bottom .3s cubic-bezier(.2, .7, .2, 1); }
@media (max-width: 820px) {
  
  body:has(.faq-search[data-tucked="false"]) .a11y { bottom: calc(clamp(1.25rem, 4vh, 2.25rem) + 3.5rem + .75rem); }
}
@media (max-width: 760px) {
  
  body:has(.lh-sticky.on) .a11y { bottom: calc(clamp(.75rem, 2vw, 1.25rem) + 4.5rem + env(safe-area-inset-bottom, 0px)); }
}

@media (max-height: 560px) and (orientation: landscape) { body.page-workcell .a11y { bottom: calc(clamp(.75rem, 2vw, 1.25rem) + 3.25rem); } }
@media print { .a11y { display: none; } }
@media (prefers-reduced-motion: reduce) { .a11y, .a11y__btn, .a11y__switch i { transition: none; } }
