/* Accessibility panel styles — built by tc.js. Its own file so the pages that
   carry their own :root (sign-up, success, demo) can load it without tc.css.
   Every colour is a token the page must define: --bg --bg2 --bg3 --border
   --text --muted --accent --accent-h --warn. */
/* ── Accessibility panel ──────────────────────────────────────────────────────
   Copied from Beacon 2026-09-15 and mapped onto this stylesheet's tokens. Every
   adjustment is a class on <html>, set by tc.js and saved in localStorage; a
   page without JavaScript is unaffected. Mask overlays are DIVs and the
   selectors are element-qualified so a state class on <html> never matches the
   root. Dark is the default theme here, so the theme button's "light" look is
   the [data-theme="light"] case. */
.a11y-fab {
  position: fixed; left: 14px; bottom: 14px; z-index: 30;
  width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--bg);
  background: var(--accent); color: var(--on-accent); cursor: pointer; padding: 0;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.4);
}
.a11y-fab:hover, .a11y-fab:focus-visible { background: var(--accent-h); outline: 3px solid var(--warn); outline-offset: 2px; }
.a11y-fab-theme { left: 74px; background: var(--warn); color: #1a1408; border-color: var(--bg); }
[data-theme="light"] .a11y-fab-theme { background: var(--bg); color: var(--text); border-color: var(--text); }
.a11y-panel {
  position: fixed; left: 14px; bottom: 74px; z-index: 31;
  width: min(360px, calc(100vw - 28px)); max-height: calc(100vh - 100px); overflow: auto;
  background: var(--bg2); color: var(--text); border: 1px solid var(--border);
  border-radius: 10px; box-shadow: 0 6px 24px rgba(0,0,0,.45); padding: 14px 16px;
  font-size: 15px;
}
.a11y-title { margin: 0 0 .6rem; font-size: 17px; }
.a11y-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 .6rem; }
.a11y-label { flex: 1 0 100%; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.a11y-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0 0 .6rem; }
.a11y-tool {
  border: 1px solid var(--border); border-radius: 6px; background: var(--bg3); color: var(--text);
  padding: 9px 10px; font: inherit; font-size: 14px; text-align: left; cursor: pointer;
}
.a11y-tool:hover { border-color: var(--accent-text); }
.a11y-tool:focus-visible { outline: 3px solid var(--warn); outline-offset: 1px; }
.a11y-tool[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent-text); }
.a11y-tool[aria-pressed="true"]::before { content: "✓ "; }
.a11y-half { flex: 1 1 45%; }
.a11y-wide { width: 100%; display: block; margin: 0 0 .6rem; }
.a11y-foot { border-top: 1px solid var(--border); padding-top: .6rem; margin-top: .2rem; }
.a11y-note { margin: .4rem 0 0; font-size: 13px; color: var(--muted); }
.a11y-outline { list-style: none; margin: 0 0 .6rem; padding: 0; font-size: 14px; }
.a11y-outline li { padding: 3px 0; }
.a11y-outline .a11y-h2 { padding-left: 1rem; }
.a11y-outline .a11y-h3 { padding-left: 2rem; }
@media print { .a11y-fab, .a11y-panel, .a11y-mask { display: none !important; } }

html.a11y-lineheight body { line-height: 1.9; }
html.a11y-lineheight p, html.a11y-lineheight li, html.a11y-lineheight td { line-height: 1.9; }
html.a11y-font body, html.a11y-font h1, html.a11y-font h2, html.a11y-font h3, html.a11y-font h4,
html.a11y-font button, html.a11y-font input, html.a11y-font select, html.a11y-font textarea {
  font-family: Arial, Helvetica, "Liberation Sans", sans-serif; letter-spacing: .02em; word-spacing: .06em;
}
html.a11y-links a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 2px;
  background: #fff3b0; color: #0b3d91; outline: 1px solid #0b3d91; outline-offset: 1px; }
html.a11y-links a:hover, html.a11y-links a:focus { background: #ffe066; }
html.a11y-contrast { --bg: #fff; --bg2: #fff; --bg3: #fff; --border: #000; --text: #000; --muted: #000; --dim: #000;
  --accent: #0000d0; --accent-h: #0000d0; --accent-text: #0000d0; --accent-text-h: #0000d0; --on-accent: #fff; --ok: #004d1a; --bad: #a10000; --warn: #5b3a00; }
html.a11y-contrast body { background: #fff; color: #000; }
html.a11y-contrast a { color: #0000d0; text-decoration: underline; }
html.a11y-contrast .tcnav, html.a11y-contrast .foot { background: #000; color: #fff; }
html.a11y-contrast .tcnav a, html.a11y-contrast .foot a { color: #fff; }
html.a11y-contrast * { text-shadow: none !important; box-shadow: none !important; }
html.a11y-grey { filter: grayscale(1); }
html.a11y-noimg img, html.a11y-noimg svg:not(.a11y-fab svg) { visibility: hidden; }
html.a11y-still *, html.a11y-still *::before, html.a11y-still *::after {
  animation: none !important; transition: none !important; scroll-behavior: auto !important;
}
html.a11y-focus :focus { outline: 4px solid #ff8c00 !important; outline-offset: 3px !important; }
html.a11y-left body * { text-align: left !important; }
div.a11y-mask { position: fixed; left: 0; right: 0; background: rgba(0,0,0,.55); pointer-events: none; z-index: 29; }
div.a11y-mask-top { top: 0; height: 0; }
div.a11y-mask-bottom { bottom: 0; top: 100vh; }
html.a11y-mask .a11y-fab, html.a11y-mask .a11y-panel { z-index: 32; }

