/* Karen Country Club — keyboard and focus fixes (phase H, H-02; Edward, 28 Sep 2026). Loaded on every
   page after kcc.css, which stays byte-identical. Nothing here changes a page at rest: each rule acts
   only on a dismissed drop-down, a keyboard focus or a 320px screen.
   Evidence: tasks/results/phase-H/accessibility.md (A11Y-07 … A11Y-14), tests/quality/a11y.cjs. */

/* H2-R1 (a closed phone drawer's links are not focusable) is js/a11y.js: the `inert` attribute,
   which changes nothing drawn. */
/* H2-R3: Escape hides a drop-down opened by keyboard focus (A11Y-09, WCAG 1.4.13). */
nav.primary li.has-sub.kcc-dismissed>.sub{opacity:0!important;visibility:hidden!important}
/* H2-R4: a focused table keeps its ring on phones; kcc.css's fade mask hid it (A11Y-10). */
@media (max-width:600px){.table-wrap:focus-visible{-webkit-mask-image:none;mask-image:none}}
/* H2-R6: checkboxes show a ring (A11Y-11); sub-page links keep theirs inside the scroller (A11Y-13). */
.field input[type=checkbox]:focus-visible{outline:2px solid var(--kcc-blue);outline-offset:2px}
nav.subnav a:focus-visible{outline-offset:-2px}
nav.subnav ul:focus-within{-webkit-mask-image:none;mask-image:none}
/* H2-R9: the article's share line wraps at 400% zoom (A11Y-14); unchanged at 360px and wider. */
@media (max-width:359px){.article-share{flex-wrap:wrap}}
