/* OnTerra Systems — shared stylesheet (ada-widget). Edit here, not in individual pages. */
  /* Widget toggle button */
  .ada-toggle {
    position: fixed; bottom: 20px; right: 20px; z-index: 9998;
    width: 56px; height: 56px; border-radius: 50%; border: none;
    background: #1e3a5f; color: white;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: transform 0.2s, background 0.2s;
  }
  .ada-toggle:hover, .ada-toggle:focus { background: #2a4a73; transform: scale(1.05); outline: 3px solid #88BE5F; outline-offset: 2px; }
  .ada-toggle svg { width: 28px; height: 28px; }

  /* Panel */
  .ada-panel {
    position: fixed; bottom: 88px; right: 20px; z-index: 9999;
    width: 320px; max-width: calc(100vw - 40px);
    background: white; border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    padding: 0; display: none; overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  }
  .ada-panel[aria-hidden="false"] { display: block; }
  .ada-panel-header {
    background: #1e3a5f; color: white; padding: 16px 20px;
    display: flex; justify-content: space-between; align-items: center;
  }
  .ada-panel-header h2 { margin: 0; font-size: 1rem; font-weight: 700; }
  .ada-close {
    background: transparent; border: none; color: white; font-size: 1.5rem;
    cursor: pointer; padding: 0; width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 4px;
  }
  .ada-close:hover, .ada-close:focus { background: rgba(255,255,255,0.15); outline: 2px solid #88BE5F; }
  .ada-panel-body { padding: 16px; max-height: 60vh; overflow-y: auto; }
  .ada-option {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px; border-radius: 8px; margin-bottom: 6px;
    cursor: pointer; background: #f5f7fa; border: 2px solid transparent;
    transition: background 0.15s, border-color 0.15s;
    font-size: 0.92rem; color: #1e3a5f; font-weight: 500;
  }
  .ada-option:hover { background: #e8eef5; }
  .ada-option:focus-within { border-color: #88BE5F; }
  .ada-option.active { background: #88BE5F; color: white; }
  .ada-option .ada-icon { width: 24px; height: 24px; flex-shrink: 0; margin-right: 10px; }
  .ada-option .ada-label { flex: 1; text-align: left; }
  .ada-option button {
    background: transparent; border: none; cursor: pointer;
    display: flex; align-items: center; width: 100%; padding: 0;
    color: inherit; font: inherit; font-weight: inherit;
  }
  .ada-option button:focus { outline: none; }
  .ada-option .ada-state {
    font-size: 0.75rem; opacity: 0.8; margin-left: auto; padding-left: 8px; flex-shrink: 0;
  }
  .ada-reset {
    width: 100%; padding: 10px; background: white; color: #1e3a5f;
    border: 1.5px solid #1e3a5f; border-radius: 8px;
    cursor: pointer; font-weight: 600; font-size: 0.88rem;
    margin-top: 12px;
  }
  .ada-reset:hover, .ada-reset:focus { background: #1e3a5f; color: white; outline: 2px solid #88BE5F; outline-offset: 2px; }
  .ada-footer {
    padding: 10px 16px; border-top: 1px solid #e5e7eb;
    font-size: 0.72rem; color: #6b7280; text-align: center;
  }

  /* Active accessibility states */
  body.ada-large-text { font-size: 118% !important; }
  body.ada-larger-text { font-size: 135% !important; }
  body.ada-largest-text { font-size: 150% !important; }
  body.ada-high-contrast { background: #000 !important; }
  body.ada-high-contrast * {
    background: transparent !important;
    color: #fff !important;
    border-color: #fff !important;
  }
  body.ada-high-contrast a, body.ada-high-contrast a * { color: #ffff00 !important; }
  body.ada-high-contrast img { opacity: 0.85; }
  body.ada-underline-links a { text-decoration: underline !important; }
  body.ada-pause-animations *, body.ada-pause-animations *::before, body.ada-pause-animations *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  body.ada-large-cursor, body.ada-large-cursor * {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><polygon points="6,4 6,38 16,28 22,42 28,40 22,26 36,26" fill="%23000" stroke="%23fff" stroke-width="2"/></svg>') 0 0, auto !important;
  }
  body.ada-readable-font, body.ada-readable-font * {
    font-family: Verdana, Tahoma, Geneva, sans-serif !important;
    letter-spacing: 0.02em !important;
  }

  @media (max-width: 480px) {
    .ada-panel { right: 10px; bottom: 80px; }
    .ada-toggle { right: 14px; bottom: 14px; }
  }
