/* Somo Huru – Accessibility Toolbar Styles */

/* ========== TOOLBAR ========== */
.shve-a11y-toolbar {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 99999;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.shve-a11y-toggle-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: #1a6b3a;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  transition: background .2s, transform .2s;
}
.shve-a11y-toggle-btn:hover  { background: #114d29; transform: scale(1.08); }
.shve-a11y-toggle-btn:focus  { outline: 3px solid #f59e0b; outline-offset: 3px; }

.shve-a11y-panel {
  position: absolute;
  bottom: 56px;
  right: 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
  padding: 1.25rem;
  width: 260px;
  animation: shve-a11y-in .18s ease;
}

@keyframes shve-a11y-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.shve-a11y-panel[hidden] { display: none; }

.shve-a11y-heading {
  font-size: .85rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: #64748b; margin: 0 0 .9rem;
}

.shve-a11y-group {
  display: flex; align-items: center; justify-content: space-between;
  gap: .5rem; margin-bottom: .75rem;
  font-size: .88rem; color: #1e293b;
}
.shve-a11y-group:last-child { margin-bottom: 0; }

.shve-a11y-controls { display: flex; gap: .35rem; }

.shve-btn-a11y {
  padding: .35rem .6rem;
  border: 1px solid #cbd5e1; border-radius: 6px;
  background: #f8fafc; color: #1e293b;
  font-size: .82rem; font-weight: 600;
  cursor: pointer; transition: background .15s, border-color .15s;
  font-family: inherit;
}
.shve-btn-a11y:hover  { background: #e2e8f0; }
.shve-btn-a11y:focus  { outline: 2px solid #2563eb; outline-offset: 2px; }
.shve-btn-a11y[aria-pressed="true"] {
  background: #1a6b3a; color: #fff; border-color: #1a6b3a;
}

/* ========== BODY STATE CLASSES ========== */
body.shve-font-lg      { font-size: 1.15rem !important; }
body.shve-font-xl      { font-size: 1.3rem !important; }
body.shve-font-xxl     { font-size: 1.5rem !important; }

/* Focus ring enhancement */
body.shve-high-contrast *:focus {
  outline: 3px solid #ffff00 !important;
  outline-offset: 2px;
}

/* Skip link */
.shve-skip-link {
  position: absolute; top: -100px; left: 1rem;
  background: #1a6b3a; color: #fff;
  padding: .5rem 1rem; border-radius: 0 0 6px 6px;
  font-weight: 700; text-decoration: none; z-index: 99999;
  transition: top .2s;
}
.shve-skip-link:focus { top: 0; }
