/* =====================================================================
   a11y-2026-11.css  -  accessibility additions (site audit 2026-11, batch 1)
   For www.drandrewwichterman.com only. Linked on the clinical site's own
   pages, on the line just BEFORE /css/warm-2026-10.css (that file stays
   the last stylesheet in <head>). The course, landing and lesson pages do
   not load this file, so nothing about them changes.

   1. Skip link (hidden until it has keyboard focus)
   2. Keyboard focus is never hidden
   3. Reduced motion for visitors who ask their device for it
   4. Small title-block text darkened to WCAG AA (Dr. W's choice: switch
      CONTRAST_FIXES in deploy_fixes.py; this part is left out when it is off)

   No new colour: ink #14120D and cream #FAF8F2 (the site's dark buttons),
   #7A5B0B and #625B48 (the two text colours the warm stylesheet already uses).
   Source: site-audit-2026-11/fixes/doctor-batch1/assets/a11y-2026-11.css
   ===================================================================== */

/* 1. Skip link: same ink pill with cream text as the site's dark buttons */
.skip-link{position:absolute;left:8px;top:-80px;z-index:1000;background:#14120D;color:#FAF8F2!important;padding:12px 18px;border-radius:999px;font:600 15px/1.2 'Figtree',sans-serif;text-decoration:none}
.skip-link:focus{top:8px}

/* 2. Three form fields switch the browser's focus outline off in their inline style (the header search box and the two
      newsletter fields on the home page). This gives them the browser's own outline back. No colour is chosen here, and
      links and buttons keep the browser outline they already have. */
[style*="outline:none" i]:focus-visible{outline:auto!important}

/* 3. Reduced motion */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}

/* CONTRAST_FIXES:start */
/* 4. Small text in the title block ------------------------------------
   The warm stylesheet already shows small gold text as #7A5B0B and small grey text as #625B48 everywhere BELOW the top
   of a page. These three rules give the same two colours to four kinds of small text in the title block, which the warm
   stylesheet leaves as they were:
     - the small capital label above a page title (12 to 13 px)      #A8871F -> #7A5B0B   on cream 3.22 -> 5.94, on white 3.41 -> 6.31
     - breadcrumb links ("Home / Blog / ...", 14 px)                  #A8871F -> #7A5B0B   on cream 3.22 -> 5.94
     - the "About Dr. Wichterman" link in the byline card (14.5 px)   #A8871F -> #7A5B0B   on white 3.41 -> 6.31
     - date lines: published date, read time, "Last updated"          #8A8371 -> #625B48   on cream 3.55 -> 6.36
   Nothing else is selected: no heading, no large text, no rule or ornament, nothing in the site header and nothing on an
   ink background (the list of ink areas is the warm stylesheet's own, copied character for character). Gold #C9A227 is
   not touched anywhere. :where() keeps the rules weak enough that every existing hover colour still wins. */
p[style*="color:#A8871F" i][style*="text-transform:uppercase" i]:where(:not(header[style*="z-index" i] *,:is([style*="background:#14120D" i],[style*="background: rgb(20, 18, 13)"],[style*="background:#221F17" i],[style*="background: rgb(34, 31, 23)"],[style*="background:rgba(20,18,13" i],[style*="background: rgba(20, 18, 13"],div[style*="border:1px solid #C9A227;border-radius:18px;background:#fff;padding:28px 30px" i],[data-screen-label="ADHD Testing" i] section[data-r~="pad"]:has(a[href*="google.com/maps" i][style*="background:#14120D" i])),:is([style*="background:#14120D" i],[style*="background: rgb(20, 18, 13)"],[style*="background:#221F17" i],[style*="background: rgb(34, 31, 23)"],[style*="background:rgba(20,18,13" i],[style*="background: rgba(20, 18, 13"],div[style*="border:1px solid #C9A227;border-radius:18px;background:#fff;padding:28px 30px" i],[data-screen-label="ADHD Testing" i] section[data-r~="pad"]:has(a[href*="google.com/maps" i][style*="background:#14120D" i])) *)){color:#7A5B0B!important}
p[style*="color:#8A8371" i]:where(:has(>time),h1+p):where(:not(header[style*="z-index" i] *,:is([style*="background:#14120D" i],[style*="background: rgb(20, 18, 13)"],[style*="background:#221F17" i],[style*="background: rgb(34, 31, 23)"],[style*="background:rgba(20,18,13" i],[style*="background: rgba(20, 18, 13"],div[style*="border:1px solid #C9A227;border-radius:18px;background:#fff;padding:28px 30px" i],[data-screen-label="ADHD Testing" i] section[data-r~="pad"]:has(a[href*="google.com/maps" i][style*="background:#14120D" i])),:is([style*="background:#14120D" i],[style*="background: rgb(20, 18, 13)"],[style*="background:#221F17" i],[style*="background: rgb(34, 31, 23)"],[style*="background:rgba(20,18,13" i],[style*="background: rgba(20, 18, 13"],div[style*="border:1px solid #C9A227;border-radius:18px;background:#fff;padding:28px 30px" i],[data-screen-label="ADHD Testing" i] section[data-r~="pad"]:has(a[href*="google.com/maps" i][style*="background:#14120D" i])) *)){color:#625B48!important}
body a:where(nav[aria-label="Breadcrumb" i] a,:is(main,article) a[href="/about/"]):where(:not([style*="color" i])):where(:not(header[style*="z-index" i] *,:is([style*="background:#14120D" i],[style*="background: rgb(20, 18, 13)"],[style*="background:#221F17" i],[style*="background: rgb(34, 31, 23)"],[style*="background:rgba(20,18,13" i],[style*="background: rgba(20, 18, 13"],div[style*="border:1px solid #C9A227;border-radius:18px;background:#fff;padding:28px 30px" i],[data-screen-label="ADHD Testing" i] section[data-r~="pad"]:has(a[href*="google.com/maps" i][style*="background:#14120D" i])),:is([style*="background:#14120D" i],[style*="background: rgb(20, 18, 13)"],[style*="background:#221F17" i],[style*="background: rgb(34, 31, 23)"],[style*="background:rgba(20,18,13" i],[style*="background: rgba(20, 18, 13"],div[style*="border:1px solid #C9A227;border-radius:18px;background:#fff;padding:28px 30px" i],[data-screen-label="ADHD Testing" i] section[data-r~="pad"]:has(a[href*="google.com/maps" i][style*="background:#14120D" i])) *)){color:#7A5B0B}
/* CONTRAST_FIXES:end */
/* SPEED-BATCH:start  (site audit 2026-11, speed and accessibility batch) ------------------------------------
   a. The "Dr." in the header logo is 23 px bold gold on cream: 2.3:1. Large text needs 3:1, so the header's "Dr." takes the
      site's link gold #A8871F (3.2:1). The footer logo on ink keeps #C9A227.
   b. Breadcrumb "Home" link: underlined, so it is told apart from the text around it by more than colour (2.96:1 < 3:1).
   c. Footer "About / Contact / Editorial policy / ..." links and the home carousel dots: at least 24 x 24 px to tap (WCAG 2.5.8).
   Colours are the site's own; nothing else changes. */
header a[href="/"] > span:is([style*="color:#C9A227" i],[style*="color: rgb(201, 162, 39)"]){color:#A8871F!important}
nav[aria-label="Breadcrumb" i] a{text-decoration:underline!important;text-underline-offset:3px}
[data-footer-links] a{display:inline-block;min-height:24px;line-height:24px}
button[aria-label^="Show item "]{min-width:24px;min-height:24px}
/* SPEED-BATCH:end */
