/* ============================================================
   Accessibility + cookie consent shared styles (playbook 8).
   Loaded on every page. Visually transparent except:
   - skip link (hidden until focused)
   - focus-visible outline (only appears on keyboard focus)
   - the cookie banner itself (slim bottom bar, position:fixed,
     does not affect page layout height)
   ============================================================ */

/* !important is required here: index-a.html is a 1:1 mirror of a live Smoove
   page whose own stylesheets outrank this file, and without it the skip link
   receives focus but never becomes visible - verified in the browser. */
a.skip-link {
  position: fixed !important;
  top: -60px !important;
  right: 8px !important;
  left: auto !important;
  background: #111 !important;
  color: #fff !important;
  padding: 10px 16px !important;
  border-radius: 0 0 8px 8px !important;
  z-index: 2147483647 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  transition: top 0.15s ease-out !important;
  width: auto !important;
  height: auto !important;
  opacity: 1 !important;
}
a.skip-link:focus,
a.skip-link:focus-visible {
  top: 0 !important;
  outline: 3px solid #1a73e8 !important;
  outline-offset: 2px !important;
}

/* generic focus-visible fallback so no interactive element ever loses
   its focus ring - pages may override with their own accent color,
   this is only a floor for anything that does not already style :focus */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #1a73e8;
  outline-offset: 2px;
}

/* ---- cookie consent banner (slim bar, RTL, keyboard accessible) ---- */
#cc-banner {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 99999;
  background: #1a1a1a;
  color: #fff;
  padding: 8px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  direction: rtl;
  font-family: inherit;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.3);
  font-size: 12.5px;
  line-height: 1.4;
}
#cc-banner[hidden] { display: none; }
#cc-banner p { margin: 0; flex: 1 1 220px; }
#cc-banner a { color: #8ab4f8; text-decoration: underline; }
.cc-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.cc-btn {
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12.5px;
  cursor: pointer;
  font-weight: 700;
  font-family: inherit;
}
.cc-btn:focus-visible { outline: 3px solid #8ab4f8; outline-offset: 2px; }
.cc-accept { background: #4f8cff; color: #fff; }
.cc-reject { background: #3a3a3a; color: #fff; border: 1px solid #6a6a6a; }
.cc-settings { background: transparent; color: #ccc; text-decoration: underline; padding: 6px 4px; }

/* footer accessibility/legal link row, shared across pages that did not
   already have a footer (kept minimal so it does not compete visually) */
.a11y-footer-links {
  text-align: center;
  font-size: 11px;
  color: #8a8f97;
  padding: 6px 8px 2px;
  direction: rtl;
}
.a11y-footer-links a { color: inherit; text-decoration: underline; }
.a11y-footer-links .sep { margin: 0 5px; opacity: .6; }
