html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Assistant', 'Heebo', sans-serif;
}

body.contrast-mode {
  background: #111827 !important;
  color: #f8fafc !important;
}

body.contrast-mode .bg-white,
body.contrast-mode .bg-[#f8fafc],
body.contrast-mode .bg-[#f3f7fb],
body.contrast-mode .bg-[#f7f2ef],
body.contrast-mode .bg-white\/80,
body.contrast-mode .bg-white\/5,
body.contrast-mode .bg-brand-50,
body.contrast-mode .bg-slate-50,
body.contrast-mode .bg-gradient-to-br,
body.contrast-mode .border-slate-200,
body.contrast-mode .border-white\/10,
body.contrast-mode .border-brand-200 {
  background-color: #111827 !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

body.contrast-mode .text-slate-700,
body.contrast-mode .text-slate-600,
body.contrast-mode .text-slate-500,
body.contrast-mode .text-slate-800,
body.contrast-mode .text-muted,
body.contrast-mode .text-brand-900,
body.contrast-mode .text-brand-700,
body.contrast-mode .text-brand-800,
body.contrast-mode .text-brand-50,
body.contrast-mode .text-ink {
  color: #f8fafc !important;
}

body.contrast-mode .text-brand-900,
body.contrast-mode .text-brand-700 {
  color: #e2e8f0 !important;
}

body.contrast-mode a,
body.contrast-mode p,
body.contrast-mode h1,
body.contrast-mode h2,
body.contrast-mode h3 {
  color: #f8fafc !important;
}

body.font-large {
  font-size: 1.08em;
}

.accessibility-toolbar {
  position: fixed;
  left: 0;
  bottom: 28px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
  transform: translateX(-72px);
  transition: transform 0.2s ease;
}

.accessibility-toolbar:hover,
.accessibility-toolbar:focus-within {
  transform: translateX(0);
}

.access-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  background: #fff;
  color: #1f2937;
  transition: transform 0.18s ease, background 0.18s ease;
}

.access-btn:hover,
.access-btn:focus-visible {
  transform: translateY(-1px);
  background: #f8fafc;
}

.access-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

@media (max-width: 768px) {
  .accessibility-toolbar {
    left: 12px;
    bottom: 18px;
  }
}
