/* Accessibility toolbar, skip link, contrast and motion helpers. */
.skip-link {
  position: absolute;
  right: 12px;
  top: -40px;
  z-index: 200;
  background: var(--accent, #0a7d56);
  color: var(--on-accent, #fff);
  padding: 8px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
}
.skip-link:focus {
  top: 8px;
}
.a11y-root { position: relative; z-index: 120; }
.a11y-toggle {
  position: fixed;
  left: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 122;
  width: 52px;
  height: 52px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  box-shadow: 0 4px 14px rgba(16, 32, 57, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
  overflow: hidden;
  line-height: 0;
}
.a11y-toggle-icon,
.a11y-toggle svg {
  width: 31px;
  height: 31px;
  display: block;
  flex: 0 0 auto;
  fill: currentColor;
  color: #fff;
}
body.has-tabs .a11y-toggle {
  bottom: calc(var(--tab-h, 64px) + 16px + env(safe-area-inset-bottom, 0px));
}
.a11y-toggle:focus-visible {
  outline: 3px solid var(--accent, #0a7d56);
  outline-offset: 3px;
}
html[data-theme="dark"] .a11y-toggle,
html[data-a11y-contrast="high"] .a11y-toggle {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}
.a11y-panel {
  position: fixed;
  left: 16px;
  bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  width: min(320px, calc(100vw - 32px));
  background: var(--card, #fff);
  color: var(--ink, #102039);
  border: 1px solid var(--line, #d5dbe8);
  border-radius: var(--radius, 18px);
  box-shadow: var(--shadow-lg, 0 16px 40px rgba(16,32,57,.18));
  padding: 16px;
  z-index: 121;
}
body.has-tabs .a11y-panel {
  bottom: calc(var(--tab-h, 64px) + 80px + env(safe-area-inset-bottom, 0px));
}
.a11y-panel h2 { margin: 0 0 10px; font-size: 1.05rem; }
.a11y-actions { display: flex; flex-wrap: wrap; gap: 8px; }
html[data-a11y-contrast="high"] {
  --ink: #000;
  --ink-soft: #1a1a1a;
  --bg: #fff;
  --card: #fff;
  --line: #000;
  --accent: #000;
  --accent-text: #000;
  --brand: #000;
  --on-brand: #fff;
  --topbar: #000;
  --topbar-text: #fff;
}
html[data-a11y-contrast="high"] body { background: #fff; color: #000; }
html[data-a11y-underline="on"] a { text-decoration: underline; text-underline-offset: 2px; }
html[data-a11y-motion="off"],
html[data-a11y-motion="off"] * {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
html[data-a11y-font="1"] body { font-size: 18px; }
html[data-a11y-font="2"] body { font-size: 20px; }
html[data-a11y-font="3"] body { font-size: 22px; }

.cookie-notice {
  position: fixed;
  right: 16px;
  left: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 110;
  background: var(--card, #fff);
  color: var(--ink, #102039);
  border: 1px solid var(--line, #d5dbe8);
  border-radius: 16px;
  box-shadow: var(--shadow-lg, 0 16px 40px rgba(16,32,57,.18));
  padding: 14px 16px;
  max-width: 560px;
  margin-inline: auto;
}
body.has-tabs .cookie-notice {
  bottom: calc(var(--tab-h, 64px) + 12px + env(safe-area-inset-bottom, 0px));
}
.cookie-title { font-weight: 800; margin: 0 0 6px; }
.cookie-notice p { margin: 0 0 10px; }
