/* Accessibility: skip link, the built-in accessibility widget and the display modes it turns on.
   Native, no third-party overlay. Classes on <html> are set before paint by the inline head script, then by a11y.js.
   Contrast on the site palette (WCAG AA 4.5:1 for text): --ink on --canvas 15.2:1, --muted #5f5c68 on --canvas 5.8:1
   (on the lilac wash 4.5:1), --blue-ink on --canvas 5.1:1, white on --action 17.7:1. --blue/--green/--orange are fills only. */

/* Skip link: first thing a keyboard user reaches */
.skip{position:fixed;left:12px;top:-60px;z-index:1000;padding:12px 18px;border-radius:10px;background:var(--action,#18181d);color:#fff;font:600 15px/1 var(--sans,system-ui);text-decoration:none;transition:top .15s}
.skip:focus{top:12px;outline:3px solid var(--blue,#5b7cfa);outline-offset:2px}
main:focus{outline:none}

/* Widget button: bottom-left (bottom-right stays free for the page's own controls) */
.a11y-fab{position:fixed;left:20px;bottom:calc(20px + env(safe-area-inset-bottom));z-index:900;width:48px;height:48px;border-radius:50%;display:grid;place-items:center;border:1px solid var(--line,#dcd9e2);background:var(--surface,#fff);color:var(--ink,#1c1c22);box-shadow:0 6px 20px rgba(28,28,34,.12);cursor:pointer;transition:transform .2s cubic-bezier(.2,.8,.2,1),border-color .2s}
.a11y-fab:hover,.a11y-fab:focus-visible{border-color:var(--blue-ink,#3d5bd9);transform:translateY(-2px)}
.a11y-fab svg{width:24px;height:24px}
.a11y-panel{position:fixed;left:20px;bottom:calc(80px + env(safe-area-inset-bottom));z-index:901;width:320px;max-height:calc(100svh - 110px);overflow:auto;padding:18px;border-radius:18px;background:var(--surface,#fff);color:var(--ink,#1c1c22);border:1px solid var(--line,#dcd9e2);box-shadow:0 18px 50px rgba(28,28,34,.18);font:400 15px/1.4 var(--sans,system-ui)}
.a11y-panel[hidden]{display:none}
.a11y-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.a11y-head h2{font:600 19px/1.2 var(--sans,system-ui);letter-spacing:-.3px;margin:0}
.a11y-x{width:40px;height:40px;border-radius:50%;border:1px solid var(--line,#dcd9e2);background:transparent;color:inherit;font-size:18px;cursor:pointer}
.a11y-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
@media (max-width:340px){.a11y-grid{grid-template-columns:1fr}}
.a11y-t{min-height:56px;padding:10px 12px;border-radius:14px;border:1.5px solid var(--line,#dcd9e2);background:var(--canvas,#f4f1f6);color:inherit;font:600 14px/1.25 var(--sans,system-ui);text-align:left;cursor:pointer;display:flex;flex-direction:column;justify-content:center;gap:2px}
.a11y-t:hover,.a11y-t:focus-visible{border-color:var(--ink,#1c1c22)}
.a11y-t[aria-pressed="true"]{background:var(--action,#18181d);color:#fff;border-color:var(--action,#18181d)}
.a11y-t small{font-weight:500;font-size:12px;opacity:.85}
.a11y-foot{display:flex;justify-content:space-between;align-items:center;margin-top:14px;font-size:14px}
.a11y-foot a{color:var(--blue-ink,#3d5bd9)}
.a11y-foot button{border:0;background:none;color:inherit;font:600 14px/1 var(--sans,system-ui);text-decoration:underline;cursor:pointer;padding:8px 0}
.a11y-live{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
@media (max-width:760px){
  .a11y-fab{width:40px;height:40px;left:12px;bottom:calc(12px + env(safe-area-inset-bottom));opacity:.9}
  .a11y-fab svg{width:20px;height:20px}
  .a11y-panel{left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom));width:auto;max-height:75svh}
}
@media (prefers-reduced-motion:no-preference){.a11y-panel:not([hidden]){animation:a11y-in .3s cubic-bezier(.2,.8,.2,1)}}
@keyframes a11y-in{from{opacity:0;transform:translateY(16px)}}

/* Text size: html font-size does nothing on px/clamp type, so the content is zoomed. Never the widget. */
html[style*="--a11y-zoom"] main,html[style*="--a11y-zoom"] body>footer{zoom:var(--a11y-zoom,1)}

/* Grayscale on content only: a filter on <html>/<body> would break position:fixed */
html.a11y-grayscale main,html.a11y-grayscale body>header,html.a11y-grayscale body>footer{filter:grayscale(1)}

/* High contrast: black on white, real borders, no washes or glass */
html.a11y-high-contrast{--canvas:#fff;--surface:#fff;--sunken:#fff;--muted:#000;--ink:#000;--line:#000;--blue-ink:#0033cc;--action:#000}
html.a11y-high-contrast body::before{display:none}
html.a11y-high-contrast body *:not(.a11y-ui):not(.a11y-ui *):not(svg):not(svg *):not(img):not(video){background-image:none!important;box-shadow:none!important;text-shadow:none!important;backdrop-filter:none!important}
html.a11y-high-contrast main a:not(.btn){color:#0033cc!important;text-decoration:underline!important}
html.a11y-high-contrast .btn{border:2px solid #000!important}

/* Highlight links */
html.a11y-highlight-links a,html.a11y-highlight-links button:not(.a11y-ui):not(.a11y-ui *){text-decoration:underline!important;text-underline-offset:3px;outline:2px solid var(--blue-ink,#3d5bd9)!important;outline-offset:2px}

/* Readable font */
html.a11y-readable-font body,html.a11y-readable-font body *:not(svg):not(svg *):not(code):not(.mono){font-family:Arial,Helvetica,sans-serif!important;letter-spacing:.02em!important}
html.a11y-readable-font p,html.a11y-readable-font li{line-height:1.6!important}

/* Stop animations (motion.js and the guide also read this class and skip their JS motion) */
html.a11y-stop-animations *,html.a11y-stop-animations *::before,html.a11y-stop-animations *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
html.a11y-stop-animations .rv{opacity:1!important;transform:none!important}

/* Legal links in every footer */
.legal-links{display:flex;flex-wrap:wrap;gap:8px 20px}
.legal-links a{color:var(--muted,#5f5c68);text-underline-offset:3px}
div>.legal-links:not(:first-child){margin-top:10px}
footer .wrap>.legal-links{margin-top:0}

/* Analytics consent bar (built by lt.js). Both buttons look the same: declining is as easy as allowing. */
.lam-consent{position:fixed;right:20px;bottom:calc(20px + env(safe-area-inset-bottom));z-index:899;width:min(400px,calc(100% - 40px));padding:16px 18px;border-radius:16px;background:var(--surface,#fff);color:var(--ink,#1c1c22);border:1px solid var(--line,#dcd9e2);box-shadow:0 18px 50px rgba(28,28,34,.16);font:400 14.5px/21px var(--sans,system-ui)}
.lam-consent[hidden]{display:none}
.lam-consent p{margin:0}
.lam-consent a{color:var(--blue-ink,#3d5bd9);text-underline-offset:2px}
.lam-consent-b{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}
.lam-consent-b button{height:42px;border-radius:10px;border:1px solid var(--ink,#1c1c22);background:var(--surface,#fff);color:var(--ink,#1c1c22);font:600 15px/1 var(--sans,system-ui);cursor:pointer}
.lam-consent-b button:hover,.lam-consent-b button:focus-visible{background:var(--ink,#1c1c22);color:#fff}
@media (max-width:760px){
  .lam-consent{left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom));width:auto}
  html.lam-consent-open .a11y-fab{bottom:calc(var(--consent-h,0px) + 22px + env(safe-area-inset-bottom))}
}
@media (prefers-reduced-motion:no-preference){.lam-consent:not([hidden]){animation:a11y-in .35s cubic-bezier(.2,.8,.2,1)}}
html.a11y-high-contrast .lam-consent{border:2px solid #000;box-shadow:none}
/* "Analytics choices" in footers: shown only when lt.js can reopen the bar */
[data-consent-open]{display:none;border:0;background:none;padding:0;font:inherit;color:var(--muted,#5f5c68);text-decoration:underline;text-underline-offset:3px;cursor:pointer}
html.lam-consent-ready [data-consent-open]{display:inline}
