/* NCC News – accessibility fixes. Numbers match reports/accessibility-review-2026-10-09.md */

/* A3: a clear focus outline for keyboard users (SU Orange with a navy inner ring, so it shows on white,
   on the blue menu and on photos). Mouse clicks don't show it. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible,
[role="button"]:focus-visible {
	outline: 3px solid #f76900 !important;
	outline-offset: 2px !important;
	box-shadow: 0 0 0 2px #000e54 !important;
}

/* A7: links inside story text are underlined, keeping today's blue (WCAG 1.4.1). */
article.single :is(p, li, td, th, figcaption, dd) a:not(.wp-block-button__link) {
	text-decoration: underline !important;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.15em;
}

/* Very light grey #cccccc text pasted into stories (SoundCloud's embed code adds a credit line in it, 1.6:1)
   -> SU Medium Gray (4.5:1). */
article.single [style*="color: #cccccc"],
article.single [style*="color: #cccccc"] a {
	color: #707780 !important;
}

/* A8: the grey "By" in the author box: #999 (2.8:1) -> SU Medium Gray (4.5:1). */
.media-heading > span {
	color: #707780 !important;
}

/* A11: Instagram's embed insists on 326px, which is wider than the smallest phones; let it shrink. */
iframe.instagram-media {
	min-width: 0 !important;
}

/* A4: Pause/Play button on the homepage slider. */
.ncc-slider-pause {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	z-index: 20;
	display: inline-flex;
	gap: 0.4em;
	align-items: center;
	padding: 0.45rem 0.8rem;
	background: rgba(0, 14, 84, 0.88);
	color: #fff;
	border: 1px solid #fff;
	border-radius: 3px;
	font-family: inherit;
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
}
.ncc-slider-pause:hover {
	background: #000e54;
}

/* A12 (SU rule): the accessibility links under the footer's copyright line. The privacy plugin adds
   "Privacy Policy" to the same line and has the same rule, so the line looks the same with either one off. */
.mg-footer-copyright .ncc-su-links {
	margin: 0.4rem 0 0;
}
.mg-footer-copyright .ncc-su-links a {
	text-decoration: underline;
}
