/* Accessibility widget: Knightica site widget, De Club palette, served as a
   static file next to a11y.js. Tokens are defined here so the widget does not
   depend on the app stylesheet. Launcher bottom-start: right on this RTL site. */
:root {
  --black: #000000; --white: #ffffff; --stone: #8F8B7E;
  --celadon: #D1DCBD; --celadon-hi: #bccaa0;
  --surface: #1a1a17; --cream: #f5f0e8; --muted: #b0aba3;
  --line: rgba(245, 240, 232, 0.12);
  --font: 'Heebo', 'Figtree', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', 'Heebo', ui-monospace, monospace;
  --r-md: 20px; --pill: 100px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
/* ═══════════════ ACCESSIBILITY WIDGET ═══════════════
   Ported from the Knightica site widget, repainted in the De Club
   brandbook: celadon launcher on black, cream panel, black header.
   Effect classes on <html> are identical to the Knightica build. */

.dc-a11y-btn {
  position: fixed;
  inset-inline-start: 20px; bottom: 20px;
  z-index: 9997;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--celadon);
  color: var(--black);
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(0,0,0,0.45);
  transition: transform .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.dc-a11y-btn:hover { transform: translateY(-2px); background: var(--celadon-hi); box-shadow: 0 14px 32px rgba(0,0,0,0.5); }
.dc-a11y-btn:focus-visible { outline: 2px solid var(--celadon); outline-offset: 3px; }
.dc-a11y-btn svg { width: 26px; height: 26px; }

.dc-a11y-panel {
  position: fixed;
  inset-inline-start: 20px; bottom: 82px;
  z-index: 9997;
  width: min(300px, calc(100vw - 40px));
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  background: var(--cream);
  color: var(--black);
  border-radius: var(--r-md);
  box-shadow: 0 20px 54px rgba(0,0,0,0.55);
  font-family: var(--font);
  opacity: 0;
  transform: translateY(12px) scale(.97);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  pointer-events: none;
}
.dc-a11y-panel.is-open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

.dc-a11y-head {
  position: sticky; top: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 17px;
  background: var(--black);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.dc-a11y-close {
  background: none; border: none; color: inherit;
  font-size: 22px; line-height: 1; cursor: pointer; padding: 0 4px;
}

.dc-a11y-body { padding: 14px 17px 17px; display: flex; flex-direction: column; gap: 2px; }

.dc-a11y-textsize {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.88rem;
  padding: 9px 0;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}
.dc-a11y-textsize-btns { display: flex; gap: 6px; }
.dc-a11y-textsize-btns button {
  width: 34px; height: 34px;
  border-radius: 9px;
  border: 1px solid rgba(0,0,0,0.16);
  background: transparent;
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.82rem; font-weight: 700;
  color: var(--black);
}
.dc-a11y-textsize-btns button:hover { background: rgba(0,0,0,0.06); }

.dc-a11y-toggle {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
  background: none; border: none;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  font-family: var(--font);
  font-size: 0.88rem;
  color: var(--black);
  cursor: pointer;
  text-align: inherit;
}
.dc-a11y-switch {
  width: 38px; height: 21px;
  border-radius: var(--pill);
  background: rgba(0,0,0,0.16);
  position: relative; flex-shrink: 0;
  transition: background .2s;
}
.dc-a11y-switch::before {
  content: "";
  position: absolute; top: 2px; inset-inline-start: 2px;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: #fff;
  transition: inset-inline-start .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}
.dc-a11y-toggle[aria-pressed="true"] .dc-a11y-switch { background: var(--black); }
.dc-a11y-toggle[aria-pressed="true"] .dc-a11y-switch::before { inset-inline-start: 19px; }

.dc-a11y-reset {
  margin-top: 10px;
  background: transparent;
  border: 1px solid rgba(0,0,0,0.2);
  border-radius: var(--pill);
  padding: 10px 0;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--black);
}
.dc-a11y-reset:hover { background: rgba(0,0,0,0.05); }

.dc-a11y-statement {
  margin-top: 12px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(0,0,0,0.62);
  text-decoration: underline;
}
.dc-a11y-statement:hover { color: var(--black); }

/* ---------- effect classes on <html> ---------- */
html.a11y-contrast { filter: contrast(1.35) saturate(1.15); }
html.a11y-grayscale { filter: grayscale(1); }
html.a11y-contrast.a11y-grayscale { filter: grayscale(1) contrast(1.35); }
html.a11y-underline-links a { text-decoration: underline !important; }
html.a11y-stop-motion * { animation-play-state: paused !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-readable-font, html.a11y-readable-font body, html.a11y-readable-font * { font-family: Arial, Helvetica, sans-serif !important; }

@media (max-width: 560px) {
  .dc-a11y-btn { inset-inline-start: 14px; bottom: 14px; width: 48px; height: 48px; }
  .dc-a11y-panel { inset-inline-start: 14px; bottom: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  .dc-a11y-panel, .dc-a11y-btn { transition: none; }
}

