/* Accessibility rules (WCAG 2.1 AA). Loaded last so it can fix colours and focus without editing styles.css,
   blockstyles.css or custom.css. Keep this file when you merge those. */

/* Brand teal darkened a touch so white-on-teal and teal-on-white text reach 4.5:1 (was 4.35:1). */
:root { --teal: #12786a; }

/* Grey text that was too pale on white or pale-green bands (each is now 4.5:1 or better). */
.document-list .doc-meta { color: #5a6a6d; }
.sponsor-item > span { color: #5a6a6d; }
.testimonial figcaption span, .doc-empty, .link-card small { color: #52676c; }

/* One clear keyboard focus ring everywhere: dark ring with a white halo so it shows on light and dark backgrounds. */
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid #013a55;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px #fff;
}
[tabindex="-1"]:focus { outline: none; }
[tabindex="-1"].alert:focus-visible, [tabindex="-1"].contact-thanks:focus-visible { outline: 3px solid #013a55; }

/* Links inside running text must not rely on colour alone. */
.article-content a:not(.primary), .text-block a:not(.primary), .faq-list a { text-decoration: underline; text-underline-offset: 3px; }

/* Links that open a new tab say so to screen readers (hidden on screen). */
@media screen {
  a[target="_blank"]::after {
    content: " (opens in a new tab)";
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
}

/* Visitors who ask their device for less motion get no animation or smooth scrolling. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}

/* Windows High Contrast: keep outlines on the controls that rely on borders. */
@media (forced-colors: active) {
  .like-btn, .share-link, .hero-pause, .nav-drop-toggle { border: 1px solid ButtonText; }
}

/* Footer line: copyright on the left, Websmart credit on the right. Text darkened to 4.5:1 and enlarged a little. */
.legal { align-items: center; gap: 12px 24px; flex-wrap: wrap; font-size: 12px; color: #5a6a6d; }
.legal .designer { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; color: #5a6a6d; text-decoration: none; }
.legal .designer:hover span, .legal .designer:focus-visible span { text-decoration: underline; }
.legal .designer img { height: 24px; width: auto; display: block; }
@media (max-width: 600px) { .legal .designer { margin-left: 0; } }
