/* My Phone — shared accessibility styles (used with a11y.js). */

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
	clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* skip link: hidden until a keyboard user tabs to it */
.skip-link { position: absolute; left: 8px; top: -80px; z-index: 10000; background: #0b0c0c; color: #fff !important;
	padding: 10px 16px; border-radius: 6px; font-weight: 700; text-decoration: underline; }
.skip-link:focus { top: 8px; }

/* a focus ring that shows on light and dark backgrounds alike */
:focus-visible { outline: 3px solid #ffbf47 !important; outline-offset: 2px; box-shadow: 0 0 0 5px #0b0c0c; }
[tabindex="-1"]:focus:not(:focus-visible) { outline: none; }

/* text size (pages size their text in rem) */
html.a11y-size-1 { font-size: 112.5%; }
html.a11y-size-2 { font-size: 125%; }
html.a11y-size-3 { font-size: 150%; }

html.a11y-ul a { text-decoration: underline !important; }

/* reduced motion: the user's switch, or the operating system's setting */
html.a11y-rm *, html.a11y-rm *::before, html.a11y-rm *::after {
	animation-duration: .01ms !important; animation-iteration-count: 1 !important;
	transition-duration: .01ms !important; scroll-behavior: auto !important; }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important;
		transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* high contrast: darker brand colours and text, stronger borders (both pages' variable names) */
html.a11y-hc {
	--brand: #0b5a88; --brand-d: #07466b; --blue: #0b5a88; --blue-d: #07466b;
	--ink: #111; --muted: #2f3a41; --line: #6b7780; --green: #12663a; --bg: #fff;
}
html.a11y-hc body { color: #111; }
html.a11y-hc a { text-decoration: underline; }
html.a11y-hc .sbox.aqua { background: #006a85 !important; }
html.a11y-hc .sbox.green { background: #00663a !important; }
html.a11y-hc .sbox.yellow { background: #8a4b00 !important; }
html.a11y-hc .sbox.red { background: #a12a1c !important; }
html.a11y-hc .sbox.purple { background: #463f8f !important; }
html.a11y-hc .sbox.blue { background: #1f5f88 !important; }
html.a11y-hc .btn { background: #0b5a88 !important; color: #fff !important; }
html.a11y-hc .btn.g, html.a11y-hc .btn.green { background: #12663a !important; }
html.a11y-hc .btn.o, html.a11y-hc .btn.orange { background: #8a4b00 !important; }
html.a11y-hc .btn.s { background: #3b4a52 !important; }
html.a11y-hc .hero { background: #0b4f78 !important; }
html.a11y-hc .hero li, html.a11y-hc .hero p { color: #fff !important; }
html.a11y-hc aside, html.a11y-hc aside nav a { color: #fff !important; }
html.a11y-hc aside .lbl, html.a11y-hc aside small { color: #d6e2e8 !important; }
html.a11y-hc .pill { background: #e2e8ec; color: #111; border: 1px solid #6b7780; }
html.a11y-hc .box { border: 1px solid #6b7780; }
html.a11y-hc input, html.a11y-hc select { border: 2px solid #111 !important; }

/* the accessibility button and panel */
.a11y-btn { display: inline-flex; align-items: center; gap: 6px; background: transparent; color: inherit; font: inherit;
	border: 1px solid currentColor; border-radius: 6px; padding: 5px 9px; cursor: pointer; }
.a11y-btn svg { width: 1.1em; height: 1.1em; }
.a11y-panel { position: fixed; right: 12px; top: 60px; z-index: 9999; width: min(330px, calc(100vw - 24px));
	max-height: calc(100vh - 80px); overflow: auto; background: #fff; color: #111; border: 2px solid #111;
	border-radius: 10px; padding: 16px; box-shadow: 0 12px 32px rgba(0,0,0,.25); font-size: 1rem; line-height: 1.4;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; text-align: left; }
.a11y-panel[hidden] { display: none; }
.a11y-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.a11y-head h2 { font-size: 1.15rem; margin: 0; }
.a11y-x { background: none; border: 0; font-size: 1.6rem; line-height: 1; cursor: pointer; color: #111; padding: 2px 8px; border-radius: 6px; }
.a11y-panel fieldset { border: 0; padding: 0; margin: 0 0 12px; }
.a11y-panel legend { font-weight: 700; margin-bottom: 6px; }
.a11y-sizes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.a11y-size { display: flex; align-items: center; gap: 6px; border: 1px solid #6b7780; border-radius: 6px; padding: 8px; cursor: pointer; }
.a11y-size:has(input:checked) { border: 2px solid #0b5a88; background: #e8f2f9; }
.a11y-opt { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid #d5dce1; cursor: pointer; }
.a11y-panel input[type=checkbox], .a11y-panel input[type=radio] { width: 1.15em; height: 1.15em; accent-color: #0b5a88; }
.a11y-note { font-size: .85rem; color: #3b4750; margin: 10px 0; }
.a11y-reset { background: #fff; color: #111; border: 1px solid #111; border-radius: 6px; padding: 8px 12px; font: inherit; cursor: pointer; }
