/* ═══ Website Accessibility hub (v2.93.0) — page-accessibility.php + its posts ═══
   Content beside a sticky request form (stacked after the article on phones), the
   hub scenes from inc/a11y-svg.php and their motion. A hub about accessibility has
   to pass its own checks: visible focus everywhere, text colors at 4.5:1 or better,
   targets of at least 24px, nothing hidden under the sticky header, and every
   animation stopped under prefers-reduced-motion.                                */

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Focus that is always visible and never sits under the sticky header (2.4.7, 2.4.11) */
.ax-hero :focus-visible, .ax-split :focus-visible, .ax-cards :focus-visible, .ax-strip :focus-visible,
.ax-final :focus-visible, .ax-form :focus-visible {
  outline: 3px solid #B45309; outline-offset: 3px; border-radius: 6px;
}
.ax-split :is(h2, h3, input, select, textarea, a, button), #accessibility-check { scroll-margin-top: 110px; }

/* ── Palettes: one per page/post ID, set on the scene wrapper ── */
.ax-visual, .ax-post-fig { --ax1: #3B82F6; --ax2: #1D4ED8; --ax-ink: #1E3A8A; --ax-dot: #BFDBFE; }
.ax-p1 { --ax1: #14B8A6; --ax2: #0F766E; --ax-ink: #134E4A; --ax-dot: #99F6E4; }
.ax-p2 { --ax1: #6366F1; --ax2: #4338CA; --ax-ink: #312E81; --ax-dot: #C7D2FE; }
.ax-p3 { --ax1: #10B981; --ax2: #047857; --ax-ink: #064E3B; --ax-dot: #A7F3D0; }
.ax-p4 { --ax1: #8B5CF6; --ax2: #6D28D9; --ax-ink: #4C1D95; --ax-dot: #DDD6FE; }
.ax-svg .ax-s1 { stop-color: var(--ax1); }
.ax-svg .ax-s2 { stop-color: var(--ax2); }
.ax-svg .ax-t1 { fill: var(--ax-ink); }
.ax-svg .ax-dot { fill: var(--ax-dot); }
.ax-svg { display: block; width: 100%; height: auto; overflow: visible; position: relative; z-index: 1; }

/* ── Hero ── */
.ax-visual { position: relative; width: 100%; max-width: 520px; margin-left: auto; }
.ax-visual::before {
  content: ''; position: absolute; inset: 8% -4% -6% 6%; border-radius: 36px; z-index: 0;
  background: radial-gradient(60% 60% at 50% 40%, color-mix(in srgb, var(--ax1) 26%, transparent), transparent 70%);
}
.ax-hero-chip {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px; background: #fff; border: 1px solid #E2E8F0;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .12); font-size: .8rem; font-weight: 700; color: #0F172A;
  animation: ax-bob 5s ease-in-out infinite;
}
.ax-hero-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--ax2); }
.ax-hero-chip.c1 { left: -4%; bottom: 10%; }
.ax-hero-chip.c2 { right: -2%; top: 4%; animation-delay: -2.5s; }
.ax-chips { list-style: none; padding: 0; margin: 0 0 26px; }
.ax-chips .wm-svc-chip::before {
  content: ''; width: 7px; height: 11px; margin-right: 2px; border: solid currentColor;
  border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translateY(-2px);
}
.ax-hero .wm-svc-eyebrow { margin: 0 0 14px; }
@media (max-width: 900px) { .ax-visual { margin: 8px auto 0; } .ax-hero-chip.c1 { left: 0; } .ax-hero-chip.c2 { right: 0; } }

/* ── Article beside the form ── */
.ax-split { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(32px, 4.5vw, 64px); align-items: start; }
.ax-main { min-width: 0; }
.ax-side { position: sticky; top: 96px; max-height: calc(100vh - 112px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; border-radius: 22px; }
.ax-split .wm-toc-inline, .ax-split.wm-post-layout .wm-toc-inline { display: block; margin-bottom: 28px; }
@media (max-width: 1100px) { .ax-split { grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; } }
@media (max-width: 900px) {
  .ax-split, .ax-split.wm-post-layout { display: block; }
  .ax-side { position: static; max-height: none; overflow: visible; margin-top: 40px; }
}

/* ── The form card ── */
.ax-form {
  background: #fff; border: 1px solid #E2E8F0; border-radius: 22px; padding: 26px 24px 22px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .10); position: relative; overflow: hidden;
}
.ax-form::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, #2563EB, #0F766E); }
.ax-form-title { display: flex; align-items: center; gap: 10px; font-size: 1.22rem; line-height: 1.25; margin: 0 0 8px; color: #0F172A; letter-spacing: -.02em; }
.ax-form-ic { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; background: #DBEAFE; color: #1E40AF; }
.ax-form-ic svg { width: 20px; height: 20px; }
.ax-form-sub { font-size: .88rem; line-height: 1.55; color: #475569; margin: 0 0 14px; }
.ax-req-note { font-size: .8rem; color: #475569; margin: 0 0 12px; }
.ax-form .wm-form-label { font-size: .86rem; color: #0F172A; }
.ax-form .wm-form-label span { color: #B91C1C; }
.ax-form .wm-form-control { min-height: 44px; font-size: .95rem; border-color: #94A3B8; }
.ax-form textarea.wm-form-control { min-height: 84px; }
.ax-form .wm-form-control:focus { border-color: #1D4ED8; box-shadow: 0 0 0 3px rgba(29, 78, 216, .25); }
.ax-hint { display: block; font-size: .78rem; color: #475569; margin-top: 5px; }
.ax-form .wm-error-msg { color: #B91C1C; font-size: .8rem; font-weight: 600; }
.ax-form .wm-field-error { border-color: #B91C1C !important; }
.ax-form .wm-form-check { font-size: .8rem; color: #334155; }
.ax-form .wm-form-check input[type="checkbox"] { width: 22px; height: 22px; margin-top: 0; }
.ax-form .wm-form-check a, .ax-form-foot a { color: #1D4ED8; text-decoration: underline; }
.ax-form .wm-form-submit { min-height: 48px; }
.ax-form-foot { font-size: .84rem; color: #475569; margin: 12px 0 0; text-align: center; }
.ax-form-notice { border-radius: 12px; padding: 12px 14px; font-size: .88rem; line-height: 1.5; margin: 0 0 14px; font-weight: 600; }
.ax-form-notice.ax-ok { background: #ECFDF5; color: #065F46; border: 1px solid #6EE7B7; }
.ax-form-notice.ax-err { background: #FEF2F2; color: #991B1B; border: 1px solid #FCA5A5; }

/* ── Pillar cards ── */
.ax-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ax-card {
  position: relative; display: flex; flex-direction: column; gap: 8px; padding: 24px 22px 20px;
  background: #fff; border: 1px solid #E2E8F0; border-radius: 18px; box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
  transition: transform .35s ease, box-shadow .35s, border-color .35s;
}
.ax-card:hover, .ax-card:focus-within { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(15, 23, 42, .12); border-color: #93C5FD; }
.ax-card h3 { font-size: 1.04rem; margin: 6px 0 0; }
.ax-card h3 a { color: #0F172A; text-decoration: none; }
.ax-card h3 a::after { content: ''; position: absolute; inset: 0; border-radius: 18px; } /* whole card clickable, one link */
.ax-card p { font-size: .88rem; color: #475569; line-height: 1.55; margin: 0; }
.ax-card-ic { width: 44px; height: 44px; border-radius: 13px; display: flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(140deg, #2563EB, #0F766E); }
@media (max-width: 1000px) { .ax-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .ax-cards { grid-template-columns: 1fr; } }

/* ── Includes, problems, steps ── */
.ax-inc { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.ax-inc-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ax-inc-list li { position: relative; background: #fff; border: 1px solid #E2E8F0; border-radius: 14px; padding: 14px 16px 14px 44px; font-size: .92rem; color: #1E293B; line-height: 1.5; }
.ax-inc-list li::before { content: ''; position: absolute; left: 18px; top: 18px; width: 7px; height: 12px; border: solid #047857; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.ax-who { background: #0F172A; color: #E2E8F0; border-radius: 20px; padding: 26px 26px 18px; }
.ax-who h3 { color: #fff; margin: 0 0 12px; font-size: 1.1rem; }
.ax-who ul { margin: 0; padding-left: 20px; }
.ax-who li { margin-bottom: 8px; line-height: 1.5; font-size: .92rem; }
.ax-probs { list-style: none; padding: 0; margin: 0; }
.ax-steps { list-style: none; margin: 0 auto; padding: 0; max-width: 860px; counter-reset: none; display: grid; gap: 14px; }
.ax-steps li { display: flex; gap: 18px; align-items: flex-start; background: #fff; border: 1px solid #E2E8F0; border-radius: 16px; padding: 18px 20px; }
.ax-steps p { margin: 0; color: #1E293B; line-height: 1.55; }
.ax-step-n { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: #DBEAFE; color: #1E3A8A; font-weight: 800; }
@media (max-width: 900px) { .ax-inc { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .ax-inc-list { grid-template-columns: 1fr; } }

/* ── Sibling strip ── */
.ax-strip-h { font-size: 1.3rem; margin-bottom: 18px; }
.ax-strip { display: flex; flex-wrap: wrap; gap: 10px; }
.ax-strip a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid #CBD5E1; background: #fff; color: #1E293B; font-size: .86rem; font-weight: 600; text-decoration: none;
}
.ax-strip a svg { width: 18px; height: 18px; color: #1D4ED8; }
.ax-strip a:hover { border-color: #1D4ED8; color: #1D4ED8; }
.ax-strip a[aria-current="page"] { background: #1E3A8A; border-color: #1E3A8A; color: #fff; }
.ax-strip a[aria-current="page"] svg { color: #fff; }

.ax-final h2 { margin-bottom: 14px; }
.ax-post-fig .ax-svg { max-width: 520px; margin: 0 auto; }

/* ── Scene motion ── */
.ax-sweep   { animation: ax-sweep 7s ease-in-out infinite; }
.ax-float   { animation: ax-bob 5s ease-in-out infinite; }
.ax-flip    { animation: ax-out 6s ease-in-out infinite; }
.ax-flop    { animation: ax-in 6s ease-in-out infinite; }
.ax-f2      { animation-delay: .8s; }
.ax-turn    { transform-box: fill-box; transform-origin: 30% 30%; animation: ax-turn 6s ease-in-out infinite; }
.ax-tilt    { animation: ax-tilt 6s ease-in-out infinite; }
.ax-tick    { transform-box: fill-box; transform-origin: center; animation: ax-pop 6s ease-in-out infinite; }
.ax-k2 { animation-delay: .5s; } .ax-k3 { animation-delay: 1s; } .ax-k4 { animation-delay: 1.5s; }
.ax-hmap    { animation: ax-bob 6s ease-in-out infinite; }
.ax-drag    { animation: ax-drag 6s ease-in-out infinite; }
.ax-pulse   { stroke-dasharray: 520; animation: ax-draw 5s ease-in-out infinite; }
.ax-ring    { animation: ax-blink 2.4s ease-in-out infinite; }
.ax-hop     { animation: ax-hop 5s steps(1) infinite; }
.ax-cap     { transform-box: fill-box; transform-origin: 0 50%; animation: ax-cap 4s ease-in-out infinite; }
.ax-key rect:nth-child(2) { animation: ax-press 4s ease-in-out infinite; }
.ax-key.ax-k2 rect:nth-child(2) { animation-delay: 1s; } .ax-key.ax-k3 rect:nth-child(2) { animation-delay: 2s; } .ax-key.ax-k4 rect:nth-child(2) { animation-delay: 3s; }
.ax-fade    { animation: ax-fade 6s ease-in-out infinite; }
.ax-tile    { transform-box: fill-box; transform-origin: center; animation: ax-pop 8s ease-in-out infinite; }
.ax-under   { transform-box: fill-box; transform-origin: 0 50%; animation: ax-cap 4s ease-in-out infinite; }

@keyframes ax-bob   { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes ax-sweep { 0%,100% { transform: translate(0,0); } 35% { transform: translate(-40px,60px); } 70% { transform: translate(-10px,150px); } }
@keyframes ax-out   { 0%,35% { opacity: 1; } 45%,85% { opacity: 0; } 95%,100% { opacity: 1; } }
@keyframes ax-in    { 0%,35% { opacity: 0; } 45%,85% { opacity: 1; } 95%,100% { opacity: 0; } }
@keyframes ax-turn  { 0%,100% { transform: rotate(0); } 50% { transform: rotate(-18deg); } }
@keyframes ax-tilt  { 0%,100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes ax-pop   { 0%,10% { transform: scale(.4); opacity: 0; } 20%,90% { transform: scale(1); opacity: 1; } 100% { transform: scale(1); opacity: 0; } }
@keyframes ax-drag  { 0%,100% { transform: translate(0,0); } 40%,60% { transform: translate(-124px,0); } }
@keyframes ax-draw  { 0% { stroke-dashoffset: 520; } 50%,80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -520; } }
@keyframes ax-blink { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes ax-hop   { 0% { transform: translateY(0); } 33% { transform: translateY(78px); } 66% { transform: translateY(176px) scaleX(.46); } }
@keyframes ax-cap   { 0% { transform: scaleX(.2); } 50%,85% { transform: scaleX(1); } 100% { transform: scaleX(.2); } }
@keyframes ax-press { 0%,10%,30%,100% { transform: translateY(0); fill: #fff; } 15%,25% { transform: translateY(5px); fill: #DBEAFE; } }
@keyframes ax-fade  { 0%,100% { opacity: .9; } 50% { opacity: .35; } }

@media (prefers-reduced-motion: reduce) {
  .ax-svg *, .ax-hero-chip, .ax-card { animation: none !important; transition: none !important; }
  .ax-flop { opacity: 1; } .ax-flip { opacity: 0; }
}
