@layer base {
  body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
    color: #0f172a;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
  }
  
  .dark body {
    background-color: #0f172a;
    color: #f1f5f9;
  }
}
.page ol,
.page ul {
    list-style: revert !important;
}
.hero-gradient {
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1573497619951-40e60802c610?auto=format&fit=crop&q=80&w=2000');
  background-size: cover;
  background-position: center;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Accessibility (a11y) modes */
html.a11y-active,
html.a11y-active *:not(.material-icons):not(#a11y-panel):not(#a11y-panel *) {
  font-family: Arial, sans-serif !important;
}

/* Font sizes - Scaling the root */
html.a11y-font-large {
  font-size: 1.25rem !important;
}
html.a11y-font-xlarge {
  font-size: 1.5rem !important;
}
html.a11y-font-200 {
  font-size: 2rem !important;
}

/* Color schemes */
html.a11y-color-bw,
html.a11y-color-bw *:not(#a11y-panel):not(#a11y-panel *) {
  background-color: #ffffff !important;
  color: #000000 !important;
  border-color: #000000 !important;
  box-shadow: none !important;
  background-image: none !important;
}

html.a11y-color-wb,
html.a11y-color-wb *:not(#a11y-panel):not(#a11y-panel *) {
  background-color: #000000 !important;
  color: #ffffff !important;
  border-color: #ffffff !important;
  box-shadow: none !important;
  background-image: none !important;
}

html.a11y-color-bc,
html.a11y-color-bc *:not(#a11y-panel):not(#a11y-panel *) {
  background-color: #99ffff !important;
  color: #063462 !important;
  border-color: #063462 !important;
  box-shadow: none !important;
  background-image: none !important;
}

/* Letter spacing */
html.a11y-spacing-large,
html.a11y-spacing-large *:not(#a11y-panel):not(#a11y-panel *) {
  letter-spacing: 0.1em !important;
}
html.a11y-spacing-xlarge,
html.a11y-spacing-xlarge *:not(#a11y-panel):not(#a11y-panel *) {
  letter-spacing: 0.2em !important;
}

/* Hide images */
html.a11y-hide-images img {
  display: none !important;
}

/* Accessibility Panel Styles */
#a11y-panel {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: white !important;
  color: black !important;
  border-bottom: 2px solid #ccc;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  padding: 1rem;
  font-family: Arial, sans-serif !important;
  font-size: 16px !important;
  letter-spacing: normal !important;
}

#a11y-panel * {
  font-family: Arial, sans-serif !important;
  letter-spacing: normal !important;
}

html.a11y-active #a11y-panel {
  display: block;
}

.a11y-btn {
  padding: 0.5rem 1rem;
  border: 1px solid #ccc;
  background: #f0f0f0;
  color: black;
  cursor: pointer;
  font-size: 1rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  transition: all 0.2s;
}

.a11y-btn:hover {
  background: #e0e0e0;
}

#a11y-panel .a11y-btn.active {
  background: #1d4ed8 !important;
  color: white !important;
  border-color: #1d4ed8 !important;
}
