/* TablePress Accessibility Companion */

/* Visually hidden but available to assistive technology (captions, hidden link context, empty header names, live region). */
.tpa11y-sr-only {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* Visible caption mode. */
caption.tpa11y-caption:not(.tpa11y-sr-only) {
	caption-side: top;
	text-align: left;
	font-weight: 600;
	padding: 0.5em 0;
}

/*
 * WCAG 1.4.10 Reflow: wide data tables scroll INSIDE their own container,
 * never the whole page (the audit expects the scrollbar to be contained to the table).
 */
.tpa11y-scroll {
	max-width: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
}
.tpa11y-scroll > .dataTables_wrapper,
.tpa11y-scroll > .dt-container {
	min-width: 0;
}
.tpa11y-scroll table.tablepress {
	max-width: none;
}

/* Keyboard users must be able to see the focused scroll region (WCAG 2.4.7 / 1.4.11, >= 3:1). */
.tpa11y-scroll[tabindex]:focus-visible,
.tpa11y-scroll[data-tpa11y-region]:focus-visible {
	outline: 3px solid #0b57d0;
	outline-offset: 2px;
}

/* Pagination controls: visible focus and current-page cue that does not rely on colour alone. */
.dataTables_paginate [aria-current="page"],
.dt-paging [aria-current="page"] {
	text-decoration: underline;
	font-weight: 700;
}
.dataTables_paginate [role="button"]:focus-visible,
.dt-paging [role="button"]:focus-visible,
.dataTables_paginate button:focus-visible,
.dt-paging button:focus-visible {
	outline: 3px solid #0b57d0;
	outline-offset: 2px;
}

/* Anything the script has taken out of the focus order must also stop receiving pointer events. */
[data-tpa11y-inert] {
	pointer-events: none;
}
