/* Accessibility layer for otbsd.com (WCAG 2.1 AA remediations).
   Loaded on every page after the theme CSS so these rules win. */

/* Skip-to-content link (WCAG 2.4.1 Bypass Blocks) — visually hidden until focused. */
.otb-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100001;
  background: #2b1511;
  color: #fff;
  padding: 12px 18px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 6px 0;
}
.otb-skip-link:focus { left: 0; }

/* Guarantee a visible keyboard-focus indicator (WCAG 2.4.7) even where the
   theme removed outlines. Only for keyboard users (:focus-visible). */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #ffd200;
  outline-offset: 2px;
}

/* Programmatic focus target for the skip link should not show an outline box. */
#otb-main:focus { outline: none; }

/* Fix insufficient contrast on the footer copyright text (WCAG 1.4.3).
   Original #807370 on #2b1511 = 3.77:1; this lightens it well past 4.5:1. */
.copyright,
.copyright * {
  color: #d7cec8 !important;
}

/* Cookie consent banner */
.otb-cookie {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 100000;
  background: #2b1511;
  color: #f4efe9;
  border-top: 3px solid #ffd200;
  padding: 16px clamp(16px, 4vw, 40px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.45;
  box-shadow: 0 -4px 18px rgba(0,0,0,.35);
}
.otb-cookie[hidden] { display: none; }
.otb-cookie__text { flex: 1 1 320px; margin: 0; }
.otb-cookie__text a { color: #ffd200; text-decoration: underline; }
.otb-cookie__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.otb-cookie__btn {
  cursor: pointer;
  border: 2px solid #ffd200;
  border-radius: 4px;
  padding: 10px 20px;
  font-weight: 700;
  font-size: 15px;
  font-family: inherit;
}
.otb-cookie__btn--accept { background: #ffd200; color: #2b1511; }
.otb-cookie__btn--decline { background: transparent; color: #ffd200; }
@media (max-width: 600px) {
  .otb-cookie { flex-direction: column; align-items: stretch; }
  .otb-cookie__actions { justify-content: stretch; }
  .otb-cookie__btn { flex: 1; }
}
