/* Akademi Grubu — accessibility widget (ported from agency) */
:root {
  --ak-purple: #c9982f;
  --ak-purple-2: #ab7f24;
  --ak-ink: #3f3f3f;
  --ak-navy: #3f3f3f;
  --ak-dock-fab: 3.35rem;
  --ak-dock-stack: 1.35rem;
  --line: rgba(63, 63, 63, 0.1);
  --muted: #6b6b6b;
  --ink: #3f3f3f;
  --a11y-soft: #f7f1e0;
}

.akademi-a11y {
  --a11y-bg: color-mix(in srgb, var(--ak-purple) 5%, #fff);
  --a11y-line: var(--line);
  --a11y-soft: color-mix(in srgb, var(--ak-purple) 8%, #fff);
  position: relative;
  z-index: 80;
  font-family: inherit;
  pointer-events: none;
  width: 0;
  height: 0;
  overflow: visible;
}
.akademi-a11y__panel,
.akademi-a11y__structure,
.akademi-a11y__dict,
.akademi-dock__a11y,
.akademi-a11y__fab {
  pointer-events: auto;
}
.akademi-a11y__fab {
  /* fallback if not moved into dock */
  position: fixed;
  inset-inline-end: 1rem;
  bottom: calc(var(--ak-dock-stack) + 6.4rem);
  z-index: 61;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px rgba(0,0,0,.18);
}
.akademi-a11y[data-side="left"] .akademi-a11y__fab:not(.akademi-dock__a11y),
.akademi-a11y.is-left .akademi-a11y__fab:not(.akademi-dock__a11y) {
  inset-inline-end: auto;
  inset-inline-start: 1rem;
  bottom: calc(5rem + 6.4rem);
}
.akademi-dock .akademi-a11y__fab {
  position: static;
  inset: auto;
  z-index: auto;
}
.akademi-a11y__panel {
  position: fixed;
  /* Clear right-side dock FABs (a11y / phone / WA) */
  inset-inline-end: calc(1.25rem + var(--ak-dock-fab, 3.25rem) + 0.85rem);
  bottom: var(--ak-dock-stack);
  z-index: 120;
  width: min(22.5rem, calc(100vw - 1.5rem - 4.5rem));
  max-height: min(78vh, 40rem);
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--a11y-line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 22px 48px -20px rgba(63, 63, 63, 0.35);
  animation: akademi-a11y-rise .22s ease;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.akademi-a11y[data-side="left"] .akademi-a11y__panel,
.akademi-a11y.is-left .akademi-a11y__panel {
  inset-inline-end: auto;
  inset-inline-start: 1rem;
  bottom: 5rem;
}
.akademi-a11y.is-xl .akademi-a11y__panel {
  width: min(28rem, calc(100vw - 1.2rem));
  max-height: min(86vh, 48rem);
}
.akademi-a11y.is-xl .akademi-a11y__tile { min-height: 5.2rem; font-size: .82rem; }
.akademi-a11y__panel[hidden] { display: none !important; }
.akademi-a11y__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  padding: .85rem 1rem;
  background: linear-gradient(145deg, #3f3f3f 0%, var(--ak-purple) 58%, var(--ak-purple-2) 100%);
  color: #fff;
}
.akademi-a11y__head strong {
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .01em;
}
.akademi-a11y__head-actions {
  display: flex;
  align-items: center;
  gap: .4rem;
}
.akademi-a11y__lang {
  position: relative;
}
.akademi-a11y__lang > summary {
  list-style: none;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 0;
  padding: .2rem .55rem;
  font-size: .72rem;
  font-weight: 700;
  color: #fff;
  background: rgba(255,255,255,.12);
}
.akademi-a11y__lang > summary::-webkit-details-marker { display: none; }
.akademi-a11y__lang > summary::after { content: " ▾"; font-size: .65em; }
.akademi-a11y__lang-menu {
  position: absolute;
  top: calc(100% + .35rem);
  inset-inline-end: 0;
  background: #fff;
  border-radius: 0;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
  min-width: 4.5rem;
  overflow: hidden;
  z-index: 2;
}
.akademi-a11y__lang-menu a {
  display: block;
  padding: .45rem .7rem;
  color: #222;
  text-decoration: none;
  font-weight: 700;
  font-size: .8rem;
}
.akademi-a11y__lang-menu a:hover { background: var(--a11y-soft); color: var(--ak-purple); }
.akademi-a11y__close {
  appearance: none; border: 0; background: transparent;
  color: #fff; font-size: 1.45rem; line-height: 1;
  width: 1.8rem; height: 1.8rem; cursor: pointer;
  border-radius: 0;
}
.akademi-a11y__close:hover { background: rgba(255,255,255,.16); }
.akademi-a11y__body {
  padding: .85rem;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.akademi-a11y__profiles {
  background: #fff;
  border: 1px solid var(--a11y-line);
  border-radius: 0;
  margin-bottom: .65rem;
}
.akademi-a11y__profiles > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .75rem .9rem;
  cursor: pointer;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #333;
}
.akademi-a11y__profiles > summary::-webkit-details-marker { display: none; }
.akademi-a11y__profiles > summary::after {
  content: "▾";
  margin-inline-start: auto;
  color: #888;
}
.akademi-a11y__profiles-ico {
  width: 1.55rem; height: 1.55rem; border-radius: 0;
  background: var(--ak-purple); color: #fff;
  display: grid; place-items: center; flex: 0 0 auto;
}
.akademi-a11y__profiles-ico .akademi-a11y__ico { width: .9rem; height: .9rem; }
.akademi-a11y__profiles-list {
  display: grid; gap: .25rem;
  padding: 0 .55rem .65rem;
}
.akademi-a11y__profiles-list button {
  appearance: none; border: 1px solid var(--a11y-line); background: #fff;
  border-radius: 0; padding: .55rem .7rem;
  text-align: start; font: inherit; font-size: .82rem; font-weight: 600;
  color: #333; cursor: pointer;
}
.akademi-a11y__profiles-list button:hover {
  border-color: var(--ak-purple); color: var(--ak-purple); background: var(--a11y-soft);
}
.akademi-a11y__row {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  background: #fff; border: 1px solid var(--a11y-line); border-radius: 0;
  padding: .75rem .9rem; margin-bottom: .85rem;
  font-size: .88rem; font-weight: 700; color: #333; cursor: pointer;
  position: relative;
}
.akademi-a11y__row input {
  position: absolute; opacity: 0; width: 0; height: 0;
}
.akademi-a11y__switch {
  width: 2.5rem; height: 1.35rem; border-radius: 999px;
  background: #cfd4d9; position: relative; flex: 0 0 auto;
  transition: background .18s ease;
}
.akademi-a11y__switch::after {
  content: "";
  position: absolute; top: .15rem; inset-inline-start: .15rem;
  width: 1.05rem; height: 1.05rem; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2);
  transition: transform .18s ease;
}
.akademi-a11y__row input:checked + .akademi-a11y__switch { background: var(--ak-purple); }
.akademi-a11y__row input:checked + .akademi-a11y__switch::after {
  transform: translateX(1.15rem);
}
html[dir="rtl"] .akademi-a11y__row input:checked + .akademi-a11y__switch::after {
  transform: translateX(-1.15rem);
}
.akademi-a11y__section {
  margin: .35rem 0 .55rem;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.akademi-a11y__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .55rem;
  margin-bottom: .85rem;
}
.akademi-a11y__tile {
  appearance: none;
  border: 1px solid var(--a11y-line);
  background: #fff;
  border-radius: 0;
  min-height: 4.5rem;
  padding: .65rem .45rem .55rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  cursor: pointer;
  position: relative;
  color: var(--ink);
  transition: border-color .15s ease, color .15s ease, background .15s ease, box-shadow .15s ease;
}
.akademi-a11y__tile:hover {
  border-color: color-mix(in srgb, var(--ak-purple) 45%, transparent);
  color: var(--ak-purple);
}
.akademi-a11y__tile.is-on {
  border-color: var(--ak-purple);
  color: var(--ak-purple);
  background: var(--a11y-soft);
  box-shadow: inset 0 0 0 1px var(--ak-purple);
}
.akademi-a11y__tile-ico {
  width: 1.55rem; height: 1.55rem;
  display: grid; place-items: center;
}
.akademi-a11y__tile-ico svg { width: 100%; height: 100%; display: block; }
.akademi-a11y__tile-label {
  font-size: .72rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
}
.akademi-a11y__tile-level {
  position: absolute;
  top: .3rem;
  inset-inline-end: .4rem;
  font-size: .68rem;
  font-weight: 800;
  color: var(--ak-purple);
}
.akademi-a11y__move {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .55rem;
  margin-bottom: .75rem;
}
.akademi-a11y__move-btn {
  appearance: none;
  border: 1px solid var(--a11y-line);
  background: #fff;
  border-radius: 0;
  padding: .7rem;
  font: inherit;
  font-size: .85rem;
  font-weight: 700;
  color: #666;
  cursor: pointer;
}
.akademi-a11y__move-btn.is-on {
  border-color: var(--ak-purple);
  color: var(--ak-purple);
  background: var(--a11y-soft);
  box-shadow: inset 0 0 0 1px var(--ak-purple);
}
.akademi-a11y__reset {
  appearance: none;
  width: 100%;
  border: 1px dashed color-mix(in srgb, var(--ak-purple) 28%, var(--line));
  background: transparent;
  border-radius: 0;
  padding: .65rem;
  font: inherit;
  font-size: .78rem;
  font-weight: 700;
  color: #666;
  cursor: pointer;
}
.akademi-a11y__reset:hover { color: var(--ak-purple); border-color: var(--ak-purple); }

.akademi-a11y__guide {
  position: fixed; left: 0; right: 0; height: 3px; z-index: 95;
  background: var(--ak-purple); pointer-events: none;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--ak-purple) 15%, transparent);
  transform: translateY(-50%);
}
.akademi-a11y__mask {
  position: fixed; inset: 0; z-index: 94; pointer-events: none;
  display: flex; flex-direction: column;
}
.akademi-a11y__mask[hidden],
.akademi-a11y__guide[hidden] {
  display: none !important;
}
.akademi-a11y__mask-top,
.akademi-a11y__mask-bot { background: rgba(0,0,0,.55); }
.akademi-a11y__mask-gap { flex: 0 0 auto; }
.akademi-a11y__magnifier {
  position: fixed;
  z-index: 120;
  width: 176px;
  height: 176px;
  border-radius: 0;
  border: 3px solid var(--ak-purple);
  box-shadow:
    0 10px 28px rgba(0,0,0,.35),
    inset 0 0 0 2px rgba(255,255,255,.55);
  pointer-events: none;
  background: #fff;
  overflow: hidden;
  contain: strict;
}
.akademi-a11y__magnifier[hidden] { display: none !important; }
.akademi-a11y__magnifier-glass {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  will-change: transform;
  transform-origin: 0 0;
}
.akademi-a11y__magnifier-page {
  position: relative;
  margin: 0 !important;
  overflow: visible !important;
  pointer-events: none !important;
}
.akademi-a11y__magnifier-page .ag-page {
  position: absolute !important;
  top: 0; left: 0; right: 0;
}
.akademi-a11y__magnifier-cross {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(var(--ak-purple), var(--ak-purple)) center/18px 1px no-repeat,
    linear-gradient(var(--ak-purple), var(--ak-purple)) center/1px 18px no-repeat;
  opacity: .35;
  border-radius: 0;
}
.akademi-a11y__structure {
  position: fixed;
  inset-inline-end: calc(1.25rem + var(--ak-dock-fab, 3.25rem) + 0.85rem);
  bottom: var(--ak-dock-stack);
  z-index: 97;
  width: min(18rem, calc(100vw - 1.5rem - 4.5rem));
  max-height: 50vh;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: 0 16px 40px color-mix(in srgb, var(--ak-ink) 28%, transparent);
  display: flex; flex-direction: column; overflow: hidden;
}
.akademi-a11y[data-side="left"] .akademi-a11y__structure,
.akademi-a11y.is-left .akademi-a11y__structure {
  inset-inline-end: auto; inset-inline-start: 1rem;
  bottom: 5rem;
}
.akademi-a11y__structure[hidden] { display: none !important; }
.akademi-a11y__structure header {
  display: flex; align-items: center; justify-content: space-between;
  padding: .7rem .85rem;
  background: linear-gradient(145deg, #3f3f3f 0%, var(--ak-purple) 58%, var(--ak-purple-2) 100%);
  color: #fff;
}
.akademi-a11y__structure header button {
  appearance: none; border: 0; background: transparent; color: #fff;
  font-size: 1.3rem; cursor: pointer;
}
.akademi-a11y__structure nav {
  overflow: auto; padding: .55rem .7rem .8rem;
  display: grid; gap: .25rem;
}
.akademi-a11y__structure a {
  color: #333; text-decoration: none; font-size: .82rem; font-weight: 600;
  padding: .35rem .4rem; border-radius: 0;
}
.akademi-a11y__structure a:hover { background: var(--a11y-soft, #f2f5f9); color: var(--ak-purple); }
.akademi-a11y__structure a.is-h1 { font-size: .95rem; font-weight: 800; }
.akademi-a11y__structure a.is-h2 { padding-inline-start: .7rem; }
.akademi-a11y__structure a.is-h3 { padding-inline-start: 1.2rem; font-weight: 500; }
.akademi-a11y__dict {
  position: fixed;
  inset-inline-end: calc(1.25rem + var(--ak-dock-fab, 3.25rem) + 0.85rem);
  bottom: var(--ak-dock-stack);
  z-index: 97;
  width: min(16rem, calc(100vw - 1.5rem - 4.5rem));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: .85rem;
  box-shadow: 0 16px 40px color-mix(in srgb, var(--ak-ink) 28%, transparent);
}
.akademi-a11y__dict[hidden] { display: none !important; }
.akademi-a11y__dict p { margin: 0 0 .65rem; font-size: .85rem; line-height: 1.4; }
.akademi-a11y__dict button {
  appearance: none; border: 1px solid var(--line); background: #fff;
  border-radius: 0; padding: .4rem .7rem; font: inherit; font-weight: 700;
  color: var(--ak-purple); cursor: pointer;
}
.akademi-a11y__dict button:hover {
  background: var(--ak-purple); color: #fff; border-color: var(--ak-purple);
}

/* Page effect classes */
body.akademi-a11y-font,
body.akademi-a11y-font * {
  font-family: Verdana, Arial, "Segoe UI", sans-serif !important;
}
body.akademi-a11y-cursor,
body.akademi-a11y-cursor * {
  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 fill='%23000' stroke='%23fff' stroke-width='1' d='M5 3l12 8.5-5.2 1.3L15 21l-2.2.8-3.1-7.8L5 17V3z'/%3E%3C/svg%3E") 4 2, auto !important;
}
body.akademi-a11y-hide-images img:not(.akademi-bot__hat-img),
body.akademi-a11y-hide-images picture,
body.akademi-a11y-hide-images video {
  visibility: hidden !important;
}
body.akademi-a11y-links a {
  outline: 2px solid #0b57d0 !important;
  outline-offset: 2px !important;
  text-decoration: underline !important;
  background: rgba(255, 235, 59, .35) !important;
}
body.akademi-a11y-buttons button:not(.akademi-a11y__tile):not(.akademi-a11y__move-btn):not(.akademi-a11y__reset):not(.akademi-a11y__close),
body.akademi-a11y-buttons .akademi-btn,
body.akademi-a11y-buttons .akademi-dock__wa,
body.akademi-a11y-buttons .akademi-dock__tel,
body.akademi-a11y-buttons .akademi-a11y__fab,
body.akademi-a11y-buttons .akademi-chat__launcher,
body.akademi-a11y-buttons .akademi-chat__send,
body.akademi-a11y-buttons .akademi-chat__chip,
body.akademi-a11y-buttons .av-demy__launcher,
body.akademi-a11y-buttons #av-to-top,
body.akademi-a11y-buttons .av-to-top,
body.akademi-a11y-buttons [type="submit"],
body.akademi-a11y-buttons [role="button"] {
  outline: 2px solid var(--ak-purple) !important;
  outline-offset: 2px !important;
}
body.akademi-a11y-titles h1,
body.akademi-a11y-titles h2,
body.akademi-a11y-titles h3,
body.akademi-a11y-titles h4 {
  outline: 2px dashed var(--ak-purple) !important;
  outline-offset: 3px !important;
  background: color-mix(in srgb, var(--ak-purple) 6%, transparent) !important;
}
/* Stop animations site-wide (incl. Su / hero / chrome). */
body.akademi-a11y-stop-anim,
body.akademi-a11y-stop-anim *,
body.akademi-a11y-stop-anim *::before,
body.akademi-a11y-stop-anim *::after {
  animation: none !important;
  animation-duration: 0s !important;
  animation-delay: 0s !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
/* Beat Su’s !important idle loops */
body.akademi-a11y-stop-anim .akademi-chat .akademi-bot,
body.akademi-a11y-stop-anim .akademi-chat .akademi-bot__skin,
body.akademi-a11y-stop-anim .akademi-chat .akademi-bot__ring,
body.akademi-a11y-stop-anim .akademi-chat .akademi-bot__eye i,
body.akademi-a11y-stop-anim .akademi-chat .akademi-bot__mouth i,
body.akademi-a11y-stop-anim .akademi-chat .akademi-bot__hat,
body.akademi-a11y-stop-anim .akademi-chat .akademi-bot__steth,
body.akademi-a11y-stop-anim .akademi-bot,
body.akademi-a11y-stop-anim .akademi-bot * {
  animation: none !important;
  transition: none !important;
}
body.akademi-a11y-stop-anim .akademi-hero__slide {
  transition: none !important;
}
body.akademi-a11y-stop-anim .akademi-hero__mark,
body.akademi-a11y-stop-anim .akademi-hero__glow {
  animation: none !important;
}
body.akademi-a11y-stop-anim .akademi-hero__slide.is-on .akademi-hero__copy > *,
body.akademi-a11y-stop-anim .akademi-detail__copy > * {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}
body.akademi-a11y-focus *:focus {
  outline: 3px solid #ffbf00 !important;
  outline-offset: 3px !important;
}
body.akademi-a11y-tooltips [title]:hover::after,
body.akademi-a11y-tooltips [aria-label]:hover::after {
  content: attr(title);
  position: absolute;
  z-index: 9999;
  background: #222;
  color: #fff;
  padding: .35rem .55rem;
  border-radius: 0;
  font-size: .75rem;
  max-width: 16rem;
  white-space: normal;
  pointer-events: none;
}
@keyframes akademi-a11y-rise {
  from { opacity: 0; transform: translateY(.5rem) scale(.98); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 720px) {
  .akademi-a11y__panel {
    inset-inline-end: calc(0.85rem + var(--ak-dock-fab, 3.25rem) + 0.55rem);
    bottom: var(--ak-dock-stack);
    max-height: min(72vh, 36rem);
    width: min(22.5rem, calc(100vw - 5.5rem));
  }
  .akademi-a11y[data-side="left"] .akademi-a11y__panel,
  .akademi-a11y.is-left .akademi-a11y__panel {
    bottom: 4.5rem;
  }
  .akademi-dock { bottom: var(--ak-dock-stack); }
  .akademi-dock[data-side="left"],
  .akademi-dock.is-left { bottom: 4.5rem; }
  .akademi-a11y.is-left ~ .akademi-chat,
  body:has(.akademi-dock.is-left) .akademi-chat {
    inset-inline-start: auto;
    inset-inline-end: .7rem;
  }
}

/* Color FX — content only (never .akademi-chat / .akademi-dock / .akademi-a11y). */
html.akademi-a11y-fx-mono main,
html.akademi-a11y-fx-mono .ag-page,
html.akademi-a11y-fx-mono .ag-page,
html.akademi-a11y-fx-mono .ag-footer,
html.akademi-a11y-fx-mono .ag-page,
html.akademi-a11y-fx-mono .ag-hero { filter: grayscale(1); }
html.akademi-a11y-fx-sat1 main,
html.akademi-a11y-fx-sat1 .ag-page,
html.akademi-a11y-fx-sat1 .ag-page,
html.akademi-a11y-fx-sat1 .ag-footer,
html.akademi-a11y-fx-sat1 .ag-page { filter: saturate(0.35); }
html.akademi-a11y-fx-sat2 main,
html.akademi-a11y-fx-sat2 .ag-page,
html.akademi-a11y-fx-sat2 .ag-page,
html.akademi-a11y-fx-sat2 .ag-footer,
html.akademi-a11y-fx-sat2 .ag-page { filter: saturate(1.6); }
html.akademi-a11y-fx-sat3 main,
html.akademi-a11y-fx-sat3 .ag-page,
html.akademi-a11y-fx-sat3 .ag-page,
html.akademi-a11y-fx-sat3 .ag-footer,
html.akademi-a11y-fx-sat3 .ag-page { filter: saturate(2.2); }
html.akademi-a11y-fx-bri1 main,
html.akademi-a11y-fx-bri1 .ag-page,
html.akademi-a11y-fx-bri1 .ag-page,
html.akademi-a11y-fx-bri1 .ag-footer,
html.akademi-a11y-fx-bri1 .ag-page { filter: brightness(0.85); }
html.akademi-a11y-fx-bri2 main,
html.akademi-a11y-fx-bri2 .ag-page,
html.akademi-a11y-fx-bri2 .ag-page,
html.akademi-a11y-fx-bri2 .ag-footer,
html.akademi-a11y-fx-bri2 .ag-page { filter: brightness(1.15); }
html.akademi-a11y-fx-bri3 main,
html.akademi-a11y-fx-bri3 .ag-page,
html.akademi-a11y-fx-bri3 .ag-page,
html.akademi-a11y-fx-bri3 .ag-footer,
html.akademi-a11y-fx-bri3 .ag-page { filter: brightness(1.35); }
html.akademi-a11y-fx-cb1 main,
html.akademi-a11y-fx-cb1 .ag-page,
html.akademi-a11y-fx-cb1 .ag-page,
html.akademi-a11y-fx-cb1 .ag-footer,
html.akademi-a11y-fx-cb1 .ag-page { filter: hue-rotate(-15deg) saturate(0.7); }
html.akademi-a11y-fx-cb2 main,
html.akademi-a11y-fx-cb2 .ag-page,
html.akademi-a11y-fx-cb2 .ag-page,
html.akademi-a11y-fx-cb2 .ag-footer,
html.akademi-a11y-fx-cb2 .ag-page { filter: hue-rotate(20deg) saturate(0.65); }
html.akademi-a11y-fx-cb3 main,
html.akademi-a11y-fx-cb3 .ag-page,
html.akademi-a11y-fx-cb3 .ag-page,
html.akademi-a11y-fx-cb3 .ag-footer,
html.akademi-a11y-fx-cb3 .ag-page { filter: hue-rotate(180deg) saturate(0.8); }
html.akademi-a11y-fx-mono.akademi-a11y-fx-bri1 main,
html.akademi-a11y-fx-mono.akademi-a11y-fx-bri1 .ag-page,
html.akademi-a11y-fx-mono.akademi-a11y-fx-bri1 .ag-footer,
html.akademi-a11y-fx-mono.akademi-a11y-fx-bri1 .ag-page { filter: grayscale(1) brightness(0.85); }

/* Align contact dock with back-to-top column */
.akademi-dock {
  right: 1.25rem !important;
  left: auto !important;
  width: var(--ak-dock-fab, 3.25rem);
  justify-items: center;
}
.akademi-dock[data-side="left"],
.akademi-dock.is-left {
  right: auto !important;
  left: 1.25rem !important;
}
.akademi-dock__wa {
  background: #25d366 !important;
  color: #fff !important;
}
body:has(.akademi-dock.is-left) .akademi-chat,
body:has(.akademi-dock[data-side="left"]) .akademi-chat {
  bottom: 11.5rem;
}

/* Vize theme structural hooks for a11y filters */
html.akademi-a11y-fx-mono .ag-page,
html.akademi-a11y-fx-mono .ag-page,
html.akademi-a11y-fx-mono .ag-footer,
html.akademi-a11y-fx-mono .ag-main { filter: grayscale(1); }
html.akademi-a11y-fx-sat1 .ag-page,
html.akademi-a11y-fx-sat1 .ag-page,
html.akademi-a11y-fx-sat1 .ag-footer,
html.akademi-a11y-fx-sat1 .ag-main { filter: saturate(0.35); }
html.akademi-a11y-fx-sat2 .ag-page,
html.akademi-a11y-fx-sat2 .ag-page,
html.akademi-a11y-fx-sat2 .ag-footer,
html.akademi-a11y-fx-sat2 .ag-main { filter: saturate(1.6); }
html.akademi-a11y-fx-sat3 .ag-page,
html.akademi-a11y-fx-sat3 .ag-page,
html.akademi-a11y-fx-sat3 .ag-footer,
html.akademi-a11y-fx-sat3 .ag-main { filter: saturate(2.2); }
html.akademi-a11y-fx-bri1 .ag-page,
html.akademi-a11y-fx-bri1 .ag-page,
html.akademi-a11y-fx-bri1 .ag-footer,
html.akademi-a11y-fx-bri1 .ag-main { filter: brightness(0.85); }
html.akademi-a11y-fx-bri2 .ag-page,
html.akademi-a11y-fx-bri2 .ag-page,
html.akademi-a11y-fx-bri2 .ag-footer,
html.akademi-a11y-fx-bri2 .ag-main { filter: brightness(1.15); }
html.akademi-a11y-fx-bri3 .ag-page,
html.akademi-a11y-fx-bri3 .ag-page,
html.akademi-a11y-fx-bri3 .ag-footer,
html.akademi-a11y-fx-bri3 .ag-main { filter: brightness(1.35); }
html.akademi-a11y-fx-cb1 .ag-page,
html.akademi-a11y-fx-cb1 .ag-page,
html.akademi-a11y-fx-cb1 .ag-footer,
html.akademi-a11y-fx-cb1 .ag-main { filter: hue-rotate(-15deg) saturate(0.7); }
html.akademi-a11y-fx-cb2 .ag-page,
html.akademi-a11y-fx-cb2 .ag-page,
html.akademi-a11y-fx-cb2 .ag-footer,
html.akademi-a11y-fx-cb2 .ag-main { filter: hue-rotate(20deg) saturate(0.65); }
html.akademi-a11y-fx-cb3 .ag-page,
html.akademi-a11y-fx-cb3 .ag-page,
html.akademi-a11y-fx-cb3 .ag-footer,
html.akademi-a11y-fx-cb3 .ag-main { filter: hue-rotate(180deg) saturate(0.8); }

/* Hide legacy simple widgets when agency dock is present */
body:has(.akademi-dock) .av-wa,
body:has(.akademi-dock) .av-demy,
body:has(.akademi-dock) .av-float-wa { display: none !important; }

/* To-top lives inside .akademi-dock — keep it in the same column */
#av-to-top,
.av-to-top {
  right: 0 !important;
  left: auto !important;
  bottom: calc(100% + 0.55rem) !important;
  width: var(--ak-dock-fab, 3.25rem) !important;
  height: var(--ak-dock-fab, 3.25rem) !important;
}


/* Color FX — content only (never .akademi-chat / .akademi-dock / .akademi-a11y). */
html.akademi-a11y-fx-mono main,
html.akademi-a11y-fx-mono .ag-page,
html.akademi-a11y-fx-mono .ag-page,
html.akademi-a11y-fx-mono .ag-footer,
html.akademi-a11y-fx-mono .ag-page,
html.akademi-a11y-fx-mono .ag-hero { filter: grayscale(1); }
html.akademi-a11y-fx-sat1 main,
html.akademi-a11y-fx-sat1 .ag-page,
html.akademi-a11y-fx-sat1 .ag-page,
html.akademi-a11y-fx-sat1 .ag-footer,
html.akademi-a11y-fx-sat1 .ag-page { filter: saturate(0.35); }
html.akademi-a11y-fx-sat2 main,
html.akademi-a11y-fx-sat2 .ag-page,
html.akademi-a11y-fx-sat2 .ag-page,
html.akademi-a11y-fx-sat2 .ag-footer,
html.akademi-a11y-fx-sat2 .ag-page { filter: saturate(1.6); }
html.akademi-a11y-fx-sat3 main,
html.akademi-a11y-fx-sat3 .ag-page,
html.akademi-a11y-fx-sat3 .ag-page,
html.akademi-a11y-fx-sat3 .ag-footer,
html.akademi-a11y-fx-sat3 .ag-page { filter: saturate(2.2); }
html.akademi-a11y-fx-bri1 main,
html.akademi-a11y-fx-bri1 .ag-page,
html.akademi-a11y-fx-bri1 .ag-page,
html.akademi-a11y-fx-bri1 .ag-footer,
html.akademi-a11y-fx-bri1 .ag-page { filter: brightness(0.85); }
html.akademi-a11y-fx-bri2 main,
html.akademi-a11y-fx-bri2 .ag-page,
html.akademi-a11y-fx-bri2 .ag-page,
html.akademi-a11y-fx-bri2 .ag-footer,
html.akademi-a11y-fx-bri2 .ag-page { filter: brightness(1.15); }
html.akademi-a11y-fx-bri3 main,
html.akademi-a11y-fx-bri3 .ag-page,
html.akademi-a11y-fx-bri3 .ag-page,
html.akademi-a11y-fx-bri3 .ag-footer,
html.akademi-a11y-fx-bri3 .ag-page { filter: brightness(1.35); }
html.akademi-a11y-fx-cb1 main,
html.akademi-a11y-fx-cb1 .ag-page,
html.akademi-a11y-fx-cb1 .ag-page,
html.akademi-a11y-fx-cb1 .ag-footer,
html.akademi-a11y-fx-cb1 .ag-page { filter: hue-rotate(-15deg) saturate(0.7); }
html.akademi-a11y-fx-cb2 main,
html.akademi-a11y-fx-cb2 .ag-page,
html.akademi-a11y-fx-cb2 .ag-page,
html.akademi-a11y-fx-cb2 .ag-footer,
html.akademi-a11y-fx-cb2 .ag-page { filter: hue-rotate(20deg) saturate(0.65); }
html.akademi-a11y-fx-cb3 main,
html.akademi-a11y-fx-cb3 .ag-page,
html.akademi-a11y-fx-cb3 .ag-page,
html.akademi-a11y-fx-cb3 .ag-footer,
html.akademi-a11y-fx-cb3 .ag-page { filter: hue-rotate(180deg) saturate(0.8); }
html.akademi-a11y-fx-mono.akademi-a11y-fx-bri1 main,
html.akademi-a11y-fx-mono.akademi-a11y-fx-bri1 .ag-page,
html.akademi-a11y-fx-mono.akademi-a11y-fx-bri1 .ag-footer,
html.akademi-a11y-fx-mono.akademi-a11y-fx-bri1 .ag-page { filter: grayscale(1) brightness(0.85); }


/* Vize theme structural hooks for a11y filters */
html.akademi-a11y-fx-mono .ag-page,
html.akademi-a11y-fx-mono .ag-page,
html.akademi-a11y-fx-mono .ag-footer,
html.akademi-a11y-fx-mono .ag-main { filter: grayscale(1); }
html.akademi-a11y-fx-sat1 .ag-page,
html.akademi-a11y-fx-sat1 .ag-page,
html.akademi-a11y-fx-sat1 .ag-footer,
html.akademi-a11y-fx-sat1 .ag-main { filter: saturate(0.35); }
html.akademi-a11y-fx-sat2 .ag-page,
html.akademi-a11y-fx-sat2 .ag-page,
html.akademi-a11y-fx-sat2 .ag-footer,
html.akademi-a11y-fx-sat2 .ag-main { filter: saturate(1.6); }
html.akademi-a11y-fx-sat3 .ag-page,
html.akademi-a11y-fx-sat3 .ag-page,
html.akademi-a11y-fx-sat3 .ag-footer,
html.akademi-a11y-fx-sat3 .ag-main { filter: saturate(2.2); }
html.akademi-a11y-fx-bri1 .ag-page,
html.akademi-a11y-fx-bri1 .ag-page,
html.akademi-a11y-fx-bri1 .ag-footer,
html.akademi-a11y-fx-bri1 .ag-main { filter: brightness(0.85); }
html.akademi-a11y-fx-bri2 .ag-page,
html.akademi-a11y-fx-bri2 .ag-page,
html.akademi-a11y-fx-bri2 .ag-footer,
html.akademi-a11y-fx-bri2 .ag-main { filter: brightness(1.15); }
html.akademi-a11y-fx-bri3 .ag-page,
html.akademi-a11y-fx-bri3 .ag-page,
html.akademi-a11y-fx-bri3 .ag-footer,
html.akademi-a11y-fx-bri3 .ag-main { filter: brightness(1.35); }
html.akademi-a11y-fx-cb1 .ag-page,
html.akademi-a11y-fx-cb1 .ag-page,
html.akademi-a11y-fx-cb1 .ag-footer,
html.akademi-a11y-fx-cb1 .ag-main { filter: hue-rotate(-15deg) saturate(0.7); }
html.akademi-a11y-fx-cb2 .ag-page,
html.akademi-a11y-fx-cb2 .ag-page,
html.akademi-a11y-fx-cb2 .ag-footer,
html.akademi-a11y-fx-cb2 .ag-main { filter: hue-rotate(20deg) saturate(0.65); }
html.akademi-a11y-fx-cb3 .ag-page,
html.akademi-a11y-fx-cb3 .ag-page,
html.akademi-a11y-fx-cb3 .ag-footer,
html.akademi-a11y-fx-cb3 .ag-main { filter: hue-rotate(180deg) saturate(0.8); }


/* ===== Floating chrome follows a11y color prefs ===== */
#av-to-top,
.av-to-top {
  background: var(--ak-tel-from, #0a0a0a);
  border-color: color-mix(in srgb, var(--ak-purple, #c9982f) 35%, transparent);
}
#av-to-top:hover,
.av-to-top:hover {
  background: var(--ak-purple, #c9982f);
  border-color: var(--ak-purple, #c9982f);
  color: #faf8f3;
}

/* When preference classes are on, map chrome tokens even if JS lags */
html.akademi-a11y-mono .akademi-dock,
html.akademi-a11y-mono .akademi-chat,
html.akademi-a11y-mono .av-demy,
html.akademi-a11y-mono #av-to-top,
html.akademi-a11y-mono .av-to-top,
html.akademi-a11y-mono .akademi-a11y {
  --ak-purple: #6e6e6e;
  --ak-purple-2: #555555;
  --ak-cyan: #6e6e6e;
  --ak-wa: #555555;
  --ak-tel-from: #333333;
  --ak-tel-to: #555555;
  --av-demy-gold: #6e6e6e;
  --av-demy-gold-dark: #555555;
  --av-accent: #6e6e6e;
}

html.akademi-a11y-cb .akademi-dock,
html.akademi-a11y-cb .akademi-chat,
html.akademi-a11y-cb .av-demy,
html.akademi-a11y-cb #av-to-top,
html.akademi-a11y-cb .av-to-top,
html.akademi-a11y-cb .akademi-a11y {
  --ak-purple: var(--gold, #c47c00);
  --ak-purple-2: var(--gold-soft, #e09a1f);
  --ak-cyan: var(--gold, #c47c00);
  --ak-wa: var(--maroon, #0b57d0);
  --ak-tel-from: var(--maroon-deep, #0842a0);
  --ak-tel-to: var(--maroon-mid, #3d7eeb);
  --av-demy-gold: var(--gold, #c47c00);
  --av-demy-gold-dark: var(--gold-soft, #e09a1f);
  --av-accent: var(--gold, #c47c00);
}

/* Larger hit targets when XL / text-size prefs bump rem */
html.akademi-a11y-on .akademi-dock {
  --ak-dock-fab: max(3.25rem, 3.25rem);
}
.akademi-a11y.is-xl ~ .akademi-dock,
body:has(.akademi-a11y.is-xl) .akademi-dock {
  --ak-dock-fab: 3.75rem;
}
body:has(.akademi-a11y.is-xl) #av-to-top,
body:has(.akademi-a11y.is-xl) .av-to-top {
  width: 3.75rem !important;
  height: 3.75rem !important;
}

/* Hide images should not blank the bot avatar face (already excluded hat);
   also keep dock icons (SVG) visible */
body.akademi-a11y-hide-images .akademi-dock svg,
body.akademi-a11y-hide-images .akademi-chat svg,
body.akademi-a11y-hide-images .av-to-top svg,
body.akademi-a11y-hide-images #av-to-top svg {
  visibility: visible !important;
  opacity: 1 !important;
}

/* ===== Color FX on bot + floaty buttons (mono / sat / bri / cb) ===== */
.akademi-dock,
.akademi-chat,
.av-demy,
#av-to-top,
.av-to-top {
  filter: var(--a11y-chrome-filter, none);
}
html.akademi-a11y-fx-mono .akademi-dock,
html.akademi-a11y-fx-mono .akademi-chat,
html.akademi-a11y-fx-mono .av-demy,
html.akademi-a11y-fx-mono #av-to-top,
html.akademi-a11y-fx-mono .av-to-top {
  filter: grayscale(1) !important;
}
html.akademi-a11y-fx-sat1 .akademi-dock,
html.akademi-a11y-fx-sat1 .akademi-chat,
html.akademi-a11y-fx-sat1 .av-demy,
html.akademi-a11y-fx-sat1 #av-to-top,
html.akademi-a11y-fx-sat1 .av-to-top {
  filter: saturate(0.35) !important;
}
html.akademi-a11y-fx-sat2 .akademi-dock,
html.akademi-a11y-fx-sat2 .akademi-chat,
html.akademi-a11y-fx-sat2 .av-demy,
html.akademi-a11y-fx-sat2 #av-to-top,
html.akademi-a11y-fx-sat2 .av-to-top {
  filter: saturate(1.6) !important;
}
html.akademi-a11y-fx-sat3 .akademi-dock,
html.akademi-a11y-fx-sat3 .akademi-chat,
html.akademi-a11y-fx-sat3 .av-demy,
html.akademi-a11y-fx-sat3 #av-to-top,
html.akademi-a11y-fx-sat3 .av-to-top {
  filter: saturate(2.2) !important;
}
html.akademi-a11y-fx-bri1 .akademi-dock,
html.akademi-a11y-fx-bri1 .akademi-chat,
html.akademi-a11y-fx-bri1 .av-demy,
html.akademi-a11y-fx-bri1 #av-to-top,
html.akademi-a11y-fx-bri1 .av-to-top {
  filter: brightness(0.85) !important;
}
html.akademi-a11y-fx-bri2 .akademi-dock,
html.akademi-a11y-fx-bri2 .akademi-chat,
html.akademi-a11y-fx-bri2 .av-demy,
html.akademi-a11y-fx-bri2 #av-to-top,
html.akademi-a11y-fx-bri2 .av-to-top {
  filter: brightness(1.15) !important;
}
html.akademi-a11y-fx-bri3 .akademi-dock,
html.akademi-a11y-fx-bri3 .akademi-chat,
html.akademi-a11y-fx-bri3 .av-demy,
html.akademi-a11y-fx-bri3 #av-to-top,
html.akademi-a11y-fx-bri3 .av-to-top {
  filter: brightness(1.35) !important;
}
html.akademi-a11y-fx-cb1 .akademi-dock,
html.akademi-a11y-fx-cb1 .akademi-chat,
html.akademi-a11y-fx-cb1 .av-demy,
html.akademi-a11y-fx-cb1 #av-to-top,
html.akademi-a11y-fx-cb1 .av-to-top {
  filter: hue-rotate(-15deg) saturate(0.7) !important;
}
html.akademi-a11y-fx-cb2 .akademi-dock,
html.akademi-a11y-fx-cb2 .akademi-chat,
html.akademi-a11y-fx-cb2 .av-demy,
html.akademi-a11y-fx-cb2 #av-to-top,
html.akademi-a11y-fx-cb2 .av-to-top {
  filter: hue-rotate(20deg) saturate(0.65) !important;
}
html.akademi-a11y-fx-cb3 .akademi-dock,
html.akademi-a11y-fx-cb3 .akademi-chat,
html.akademi-a11y-fx-cb3 .av-demy,
html.akademi-a11y-fx-cb3 #av-to-top,
html.akademi-a11y-fx-cb3 .av-to-top {
  filter: hue-rotate(180deg) saturate(0.8) !important;
}
/* Combined mono + brightness (matches content rules) */
html.akademi-a11y-fx-mono.akademi-a11y-fx-bri1 .akademi-dock,
html.akademi-a11y-fx-mono.akademi-a11y-fx-bri1 .akademi-chat,
html.akademi-a11y-fx-mono.akademi-a11y-fx-bri1 .av-demy,
html.akademi-a11y-fx-mono.akademi-a11y-fx-bri1 #av-to-top,
html.akademi-a11y-fx-mono.akademi-a11y-fx-bri1 .av-to-top {
  filter: grayscale(1) brightness(0.85) !important;
}
html.akademi-a11y-fx-mono.akademi-a11y-fx-bri2 .akademi-dock,
html.akademi-a11y-fx-mono.akademi-a11y-fx-bri2 .akademi-chat,
html.akademi-a11y-fx-mono.akademi-a11y-fx-bri2 .av-demy,
html.akademi-a11y-fx-mono.akademi-a11y-fx-bri2 #av-to-top,
html.akademi-a11y-fx-mono.akademi-a11y-fx-bri2 .av-to-top {
  filter: grayscale(1) brightness(1.15) !important;
}
html.akademi-a11y-fx-mono.akademi-a11y-fx-bri3 .akademi-dock,
html.akademi-a11y-fx-mono.akademi-a11y-fx-bri3 .akademi-chat,
html.akademi-a11y-fx-mono.akademi-a11y-fx-bri3 .av-demy,
html.akademi-a11y-fx-mono.akademi-a11y-fx-bri3 #av-to-top,
html.akademi-a11y-fx-mono.akademi-a11y-fx-bri3 .av-to-top {
  filter: grayscale(1) brightness(1.35) !important;
}
/* Prefer JS-composed filter var when multiple FX are active together */
html.akademi-a11y-on .akademi-dock,
html.akademi-a11y-on .akademi-chat,
html.akademi-a11y-on .av-demy,
html.akademi-a11y-on #av-to-top,
html.akademi-a11y-on .av-to-top {
  filter: var(--a11y-chrome-filter, none) !important;
}

