/*
 * Shared accessibility and control styles for the public site, the sign-in pages and the admin.
 * Loaded after wcf.css and wcf-admin.css. One rule of thumb: text is never hidden by a hover or focus state,
 * every control has a visible focus ring, and tap targets are at least 40px.
 */

/* ---------- password show / hide ---------- */
.wcf-pw { position: relative; display: block; width: 100%; }
.wcf-pw > input { width: 100%; padding-right: 96px !important; }
.wcf-pw-btn { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); display: inline-flex; align-items: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: #102D43; font: 600 14px/1 "Figtree", system-ui, sans-serif; cursor: pointer; }
.wcf-pw-btn:hover { background: #FCF0DA; color: #102D43; }
.wcf-pw-btn:focus-visible { outline: 3px solid #E8A33D; outline-offset: 1px; background: #FCF0DA; }
.wcf-pw-btn svg { flex: none; }

/* ---------- skip link ---------- */
.wcf-skip-link { position: absolute; left: 8px; top: -60px; z-index: 2000; background: #102D43; color: #fff; padding: 12px 18px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.wcf-skip-link:focus { top: 8px; outline: 3px solid #E8A33D; outline-offset: 2px; color: #fff; }

/* ---------- broken pictures never show a broken icon ---------- */
.wcf-img-missing { display: grid; place-items: center; width: 100%; height: 100%; background: #102D43; color: #E8A33D; font: 600 2rem/1 "Bricolage Grotesque", "Figtree", sans-serif; }

/* ---------- screen reader only text ---------- */
.sr-only-wcf { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media (prefers-reduced-motion: reduce) { .wcf-pw-btn { transition: none; } }
