/* Polymorph accessibility toolbar */
#a11y-root { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: 16px; line-height: 1.4; color: #0f172a; letter-spacing: normal; word-spacing: normal; }
#a11y-root * { box-sizing: border-box; }
.a11y-fab {
  position: fixed; left: 16px; bottom: 16px; z-index: 9990;
  width: 60px; height: 60px; border-radius: 50%; border: 3px solid #fff;
  background: #1d4ed8; color: #fff; cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.35);
}
.a11y-fab svg { width: 34px; height: 34px; }
.a11y-fab:hover { background: #0f172a; }
.a11y-fab:focus-visible { outline: 4px solid #f59e0b; outline-offset: 3px; }
.a11y-panel {
  position: fixed; left: 0; top: 0; bottom: 0; z-index: 9995; width: 400px; max-width: 100vw;
  background: #fff; box-shadow: 4px 0 24px rgba(15, 23, 42, 0.35); display: flex; flex-direction: column;
}
.a11y-panel[hidden] { display: none; }
.a11y-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: #0f172a; color: #fff; }
.a11y-head h2 { font-size: 20px; margin: 0; flex: 1; letter-spacing: 0; line-height: 1.2; color: #fff; font-weight: 800; }
.a11y-head button { font: inherit; cursor: pointer; border-radius: 6px; }
.a11y-reset { background: transparent; color: #fff; border: 1.5px solid #fff; padding: 6px 12px; font-size: 14px; font-weight: 600; }
.a11y-close { background: transparent; color: #fff; border: 0; font-size: 30px; line-height: 1; width: 40px; height: 40px; }
.a11y-head button:hover { background: rgba(255, 255, 255, 0.15); }
.a11y-head button:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
.a11y-body { overflow-y: auto; padding: 12px 16px 24px; flex: 1; }
.a11y-sec { margin: 8px 0 18px; }
.a11y-sec h3 { font-size: 16px; font-weight: 800; margin: 6px 0 10px; color: #0f172a; letter-spacing: 0; line-height: 1.3; }
.a11y-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.a11y-opt {
  font: inherit; font-size: 13px; font-weight: 600; line-height: 1.25; color: #0f172a;
  background: #f1f4f8; border: 2px solid #d5dce7; border-radius: 8px; padding: 12px 6px 10px; min-height: 92px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; cursor: pointer;
}
.a11y-opt svg { width: 30px; height: 30px; }
.a11y-opt:hover { border-color: #1d4ed8; }
.a11y-opt[aria-pressed="true"] { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }
.a11y-opt:focus-visible, .a11y-profile:focus-visible, .a11y-step button:focus-visible, .a11y-color input:focus-visible,
.a11y-color-reset:focus-visible, .a11y-foot a:focus-visible, .a11y-vkbd button:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
.a11y-profiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.a11y-profile { font: inherit; font-size: 14px; font-weight: 600; padding: 10px 8px; border-radius: 8px; border: 2px solid #d5dce7; background: #fff; color: #0f172a; cursor: pointer; }
.a11y-profile:hover { border-color: #1d4ed8; color: #1d4ed8; }
.a11y-sub { font-weight: 700; font-size: 14px; margin: 14px 0 8px; }
.a11y-colors { border: 1.5px solid #d5dce7; border-radius: 8px; padding: 4px 12px 12px; margin-top: 10px; }
.a11y-color { display: flex; align-items: center; justify-content: space-between; padding: 4px 0; font-size: 14px; }
.a11y-color input { width: 48px; height: 32px; border: 1.5px solid #94a3b8; border-radius: 6px; padding: 2px; background: #fff; cursor: pointer; }
.a11y-color-reset { margin-top: 8px; font: inherit; font-size: 13px; font-weight: 600; background: #fff; border: 1.5px solid #94a3b8; border-radius: 6px; padding: 6px 10px; cursor: pointer; color: #0f172a; }
.a11y-steps { margin-top: 12px; border: 1.5px solid #d5dce7; border-radius: 8px; padding: 6px 12px; }
.a11y-step { display: grid; grid-template-columns: 1fr 40px 84px 40px; align-items: center; gap: 6px; padding: 6px 0; }
.a11y-step + .a11y-step { border-top: 1px solid #e5e9f0; }
.a11y-step-name { font-size: 14px; font-weight: 600; }
.a11y-step button { font: inherit; font-size: 22px; line-height: 1; height: 36px; border-radius: 6px; border: 1.5px solid #94a3b8; background: #fff; cursor: pointer; color: #0f172a; }
.a11y-step button:hover { border-color: #1d4ed8; color: #1d4ed8; }
.a11y-step-val { text-align: center; font-size: 13px; font-weight: 700; }
.a11y-foot { margin: 6px 0 0; font-size: 14px; }
.a11y-foot a { color: #1d4ed8; font-weight: 600; }

/* overlays and tools */
.a11y-mask-top, .a11y-mask-bottom { position: fixed; left: 0; right: 0; z-index: 9980; background: rgba(0, 0, 0, 0.55); pointer-events: none; }
.a11y-mask-top { top: 0; height: 0; }
.a11y-mask-bottom { bottom: 0; top: 100vh; }
.a11y-guide { position: fixed; left: 0; right: 0; height: 6px; z-index: 9981; background: #f59e0b; border-top: 2px solid #0f172a; border-bottom: 2px solid #0f172a; pointer-events: none; }
.a11y-mask-top[hidden], .a11y-mask-bottom[hidden], .a11y-guide[hidden], .a11y-tip[hidden], .a11y-vkbd[hidden], .a11y-voice-status[hidden] { display: none; }
.a11y-tip { position: fixed; z-index: 9985; max-width: 460px; background: #0f172a; color: #fff; padding: 8px 12px; border-radius: 8px; font-size: 16px; pointer-events: none; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3); }
.a11y-tip-big { font-size: 28px; line-height: 1.35; }
.a11y-voice-status { position: fixed; left: 88px; bottom: 26px; z-index: 9990; background: #0f172a; color: #fff; padding: 8px 14px; border-radius: 20px; font-size: 14px; }
.a11y-vkbd { position: fixed; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 9992; background: #e2e8f0; border: 2px solid #0f172a; border-radius: 10px; padding: 8px; width: min(720px, calc(100vw - 16px)); }
.a11y-vk-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 14px; padding: 0 4px 6px; }
.a11y-vk-row { display: flex; gap: 4px; margin-bottom: 4px; }
.a11y-vkbd button { flex: 1; min-width: 0; height: 44px; font: inherit; font-size: 18px; border-radius: 6px; border: 1.5px solid #94a3b8; background: #fff; color: #0f172a; cursor: pointer; }
.a11y-vk-head button { flex: 0 0 36px; height: 32px; font-size: 22px; }
.a11y-vkbd .a11y-vk-wide { flex: 1.6; font-size: 15px; }
.a11y-vkbd .a11y-vk-space { flex: 4; font-size: 15px; }
.a11y-vkbd button[aria-pressed="true"] { background: #1d4ed8; color: #fff; }
.a11y-speaking { outline: 3px solid #f59e0b !important; outline-offset: 3px; background-color: #fef3c7 !important; color: #0f172a !important; }
.a11y-tts-x, html.a11y-tts p, html.a11y-tts li, html.a11y-tts h1, html.a11y-tts h2, html.a11y-tts h3 { cursor: help; }

/* ---------- page adjustments (everything except the toolbar) ---------- */
html.a11y-fs { font-size: calc(100% * var(--a11y-fs)); }
html.a11y-zoom body > :not(#a11y-root) { zoom: var(--a11y-zoom); }
html.a11y-lh body *:not(#a11y-root, #a11y-root *) { line-height: var(--a11y-lh) !important; }
html.a11y-ws body *:not(#a11y-root, #a11y-root *) { word-spacing: var(--a11y-ws) !important; }
html.a11y-ls body *:not(#a11y-root, #a11y-root *) { letter-spacing: var(--a11y-ls) !important; }

html.a11y-mono body > :not(#a11y-root) { filter: grayscale(1); }
html.a11y-lowsat body > :not(#a11y-root) { filter: saturate(0.4); }
html.a11y-highsat body > :not(#a11y-root) { filter: saturate(2); }
html.a11y-invert body { background: #000; }
html.a11y-invert body > :not(#a11y-root) { filter: invert(1) hue-rotate(180deg); }
html.a11y-invert body > :not(#a11y-root) img,
html.a11y-invert body > :not(#a11y-root) .card-front,
html.a11y-invert body > :not(#a11y-root) .hero-card { filter: invert(1) hue-rotate(180deg); }

html.a11y-darkc body, html.a11y-darkc body *:not(#a11y-root, #a11y-root *) {
  background-color: #000 !important; background-image: none !important; color: #fff !important; border-color: #fff !important; text-shadow: none !important;
}
html.a11y-darkc body *:not(#a11y-root, #a11y-root *)::before { display: none !important; }
html.a11y-darkc body a:not(#a11y-root *) { color: #ffeb3b !important; }
html.a11y-darkc .industry svg { stroke: #fff !important; }
html.a11y-darkc .footer-logo, html.a11y-darkc .brand img { background: #fff !important; border-radius: 6px; }

html.a11y-lightc body, html.a11y-lightc body *:not(#a11y-root, #a11y-root *) {
  background-color: #fff !important; background-image: none !important; color: #000 !important; border-color: #000 !important; text-shadow: none !important;
}
html.a11y-lightc body *:not(#a11y-root, #a11y-root *)::before { display: none !important; }
html.a11y-lightc body a:not(#a11y-root *) { color: #0000cc !important; }
html.a11y-lightc .industry svg { stroke: #000 !important; }
html.a11y-lightc .site-footer img { background: #0f172a !important; }

html.a11y-cbg body, html.a11y-cbg body *:not(#a11y-root, #a11y-root *) { background-color: var(--a11y-bg) !important; }
html.a11y-chead body :is(h1, h2, h3, h4, h5, h6):not(#a11y-root *) { color: var(--a11y-head) !important; }
html.a11y-ctext body :is(p, li, span, label, a, strong, td, th, small):not(#a11y-root *) { color: var(--a11y-text) !important; }

html.a11y-readable body *:not(#a11y-root, #a11y-root *) { font-family: Arial, Verdana, Helvetica, sans-serif !important; }
html.a11y-links body a:not(#a11y-root *) { text-decoration: underline !important; text-decoration-thickness: 2px !important; outline: 2px solid #f59e0b; outline-offset: 2px; background-color: #fff59d !important; color: #0f172a !important; }
html.a11y-headings body :is(h1, h2, h3, h4, h5, h6):not(#a11y-root *) { outline: 3px dashed #1d4ed8; outline-offset: 6px; }
html.a11y-kbd body *:not(#a11y-root *):focus { outline: 4px solid #f59e0b !important; outline-offset: 3px !important; box-shadow: 0 0 0 9px rgba(245, 158, 11, 0.35) !important; }

html.a11y-noanim *, html.a11y-noanim *::before, html.a11y-noanim *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }

html.a11y-cursorW, html.a11y-cursorW * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'%3E%3Cpath d='M5 2.5l14 9.5-6.4 1.4 3.6 7-3 1.5-3.5-7.2L5 19z' fill='%23fff' stroke='%23000' stroke-width='1.3' stroke-linejoin='round'/%3E%3C/svg%3E") 6 3, auto !important;
}
html.a11y-cursorB, html.a11y-cursorB * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'%3E%3Cpath d='M5 2.5l14 9.5-6.4 1.4 3.6 7-3 1.5-3.5-7.2L5 19z' fill='%23000' stroke='%23fff' stroke-width='1.3' stroke-linejoin='round'/%3E%3C/svg%3E") 6 3, auto !important;
}

/* Screen reader mode: show flip/slide content as plain content */
html.a11y-sr .card, html.a11y-sr .tile, html.a11y-sr .industry { height: auto; perspective: none; }
html.a11y-sr .card-inner, html.a11y-sr .tile-inner { transform: none !important; transform-style: flat; height: auto; transition: none; }
html.a11y-sr .card-front, html.a11y-sr .card-back, html.a11y-sr .tile-front, html.a11y-sr .tile-back {
  position: relative; inset: auto; transform: none; -webkit-backface-visibility: visible; backface-visibility: visible;
}
html.a11y-sr .card-front { min-height: 180px; border-radius: 6px 6px 0 0; }
html.a11y-sr .card-back { border-radius: 0 0 6px 6px; }
html.a11y-sr .tile-back { margin-top: 6px; }
html.a11y-sr .industry-desc { position: relative; inset: auto; transform: none; margin: 14px -24px -24px; transition: none; }

@media (max-width: 720px) {
  .a11y-fab { width: 52px; height: 52px; left: 12px; bottom: 12px; }
  .a11y-fab svg { width: 30px; height: 30px; }
  .a11y-grid { grid-template-columns: repeat(2, 1fr); }
}
@media print { #a11y-root { display: none; } }
