/* Accessibility baseline (VETUX-024). Small rules that hold across the signed-in app; each says which WCAG criterion it meets.
   Loaded by os.html after approved-design.css. */

/* 1.4.1 Use of colour: a plain link inside a sentence is dark green on near-green text (1.57 to 1), so it is told apart by an
   underline, not by colour alone. Links with a class (buttons, chips, rows) keep their own look. */
body.fd-design #page-content p a:not([class]) { text-decoration:underline; text-underline-offset:2px; }

/* 2.4.11 Focus Not Obscured: the header is fixed, and on a phone so is the bottom bar, so a control the browser scrolls into
   view could land underneath them. Scroll padding tells the browser how much of the window they cover. :where() keeps this at
   the lowest weight, so the pursuit pages' own, larger paddings (assets/pursuit.css) still win where they set one. */
:where(html:has(> body.fd-design .fm-header)) { scroll-padding-top:calc(var(--fm-header-h, 64px) + 8px); }
@media (max-width:760px) {
  :where(html:has(> body.fd-design .fm-header)) { scroll-padding-top:calc(var(--fm-header-h, 64px) + 3px); }
  :where(html:has(> body.fd-design .fm-mobilenav)) { scroll-padding-bottom:calc(86px + env(safe-area-inset-bottom, 0px)); }
}

/* 2.4.11 again, on the public pages that carry the phone quick-action bar (.wp-sticky in assets/webparts.css, about 62px high,
   fixed to the bottom edge under 700px): the same lowest-weight scroll padding keeps a focused link clear of it. */
@media (max-width:700px) {
  :where(html:has(.wp-sticky)) { scroll-padding-bottom:calc(76px + env(safe-area-inset-bottom, 0px)); }
  /* 1.4.10 and 1.4.12: the bar is fixed, so nothing can scroll a pushed-out button back into view. With wide letter spacing
     or a longer label (the release link reads "Get the Nov 11 email") the words wrap, and the button moves to a second row. */
  .wp-sticky { flex-wrap:wrap; }
  .wp-sticky .wp-btn { white-space:normal; }
}
