/* Medicine Way Learn — shared design tokens + accessibility base (USER 2026-11-17, Sprint 1).
   One place for the values every page uses. The brand colours are the existing ones (navy / blue / cyan / Cairo);
   this file only ADDS: text-safe «-ink» colours (WCAG AA on light surfaces), one radius / type / spacing scale, the focus
   ring, reduced motion, the skip link and the 44px touch target. Loaded by the public site, the library and the student app. */
:root{
  /* brand (unchanged) */
  --navy:#071b34;--navy2:#0c2d52;--blue:#0e67b2;--cyan:#00a7c8;--sky:#64e3f3;--violet:#6b5cff;--pink:#e83384;
  /* surfaces + text (light) — one --muted for every page (5.03:1 on --bg; the app's old #64748b was 4.42:1) */
  --bg:#f3f7fb;--surface:#fff;--surface2:#f6f9fd;--ink:#10233f;--muted:#5d6b80;--line:#dce6f1;
  --ok:#0f9f6e;--okbg:#e9fbf4;--bad:#d64545;--badbg:#fff0f0;--warn:#b7791f;--warnbg:#fff8e8;
  /* text-safe companions: same hues, darker — use these for TEXT on light surfaces (all ≥ 4.9:1 on white / their tint) */
  --cyan-deep:#007a92;--cyan-ink:#007a92;--ok-ink:#0b7a55;--bad-ink:#c03030;--warn-ink:#8f5f10;--pink-ink:#c21d6b;
  /* scales */
  --r-xs:8px;--r-sm:10px;--r-md:14px;--r-lg:18px;--r-xl:24px;--r-pill:999px;
  --fs-xs:12px;--fs-sm:14px;--fs-md:16px;--fs-lg:18px;--fs-xl:22px;--fs-h1:clamp(28px,5vw,44px);
  --sp-1:4px;--sp-2:8px;--sp-3:12px;--sp-4:16px;--sp-5:24px;--sp-6:32px;
  --tap:44px;
  --focus-ring:0 0 0 3px color-mix(in srgb,var(--blue) 40%,transparent);
}
[data-theme="dark"]{
  --cyan-ink:#2bc9df;--ok-ink:#44d39b;--bad-ink:#ff7878;--warn-ink:#f2bd62;--pink-ink:#ff5aa2;
}

/* ---- accessibility base ---- */
:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.nav :focus-visible,.foot :focus-visible,.lhero :focus-visible,.gd-hero :focus-visible,.hero :focus-visible{outline-color:var(--sky)}
.skip{position:absolute;inset-inline-start:12px;top:-60px;z-index:1000;background:var(--navy);color:#fff;padding:10px 16px;border-radius:var(--r-sm);font-weight:800;text-decoration:none}
.skip:focus{top:10px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#main:focus{outline:none}
@media (pointer:coarse){
  .pv-bar button,.pl-ac button,.pl-ck,.ma,.rtools button,.tb button,.mw-tabbar button{min-width:var(--tap);min-height:var(--tap)}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}
