/* ==========================================================================
   Accessibility helpers (used by app.js and templates)
   ========================================================================== */

/* Hidden but focusable (skip links). */
.c-visually-hidden-focusable {
	position: absolute;
	left: -9999px;
}

.c-visually-hidden-focusable:focus {
	position: static;
	display: inline-block;
	width: auto;
	height: auto;
	padding: var(--tbe-space-2) var(--tbe-space-4);
	background: var(--tbe-white);
	color: var(--tbe-ink);
	box-shadow: var(--tbe-shadow-md);
}

/* The off-canvas drawer parks outside the viewport on mobile. Use overflow
   CLIP (not hidden): `clip` does not create a scroll container, so
   position: sticky on the desktop header keeps working. */
html,
body {
	overflow-x: clip;
}

/* Prevent background scroll while the mobile drawer is open. */
body.tbe-nav-open {
	overflow: hidden;
}

@media (min-width: 68.75rem) {
	body.tbe-nav-open {
		overflow: auto;
	}
}

/* Respect user preference for reduced motion in JS-driven states too. */
@media (prefers-reduced-motion: reduce) {
	.c-nav,
	.c-nav-backdrop {
		transition: none;
	}
}

/* High-contrast / forced-colors support (Windows contrast themes). */
@media (forced-colors: active) {
	.c-btn,
	.c-card,
	.c-chip {
		border: 1px solid CanvasText;
	}

	.c-nav-toggle__bars span {
		background: CanvasText;
	}
}

/* Print: keep it readable and ink-light for tariff notices. */
@media print {
	.c-topbar,
	.c-header__actions,
	.c-footer,
	.c-cta-strip,
	.c-to-top,
	.notice {
		display: none !important;
	}

	body {
		color: #000;
		background: #fff;
		font-size: 11pt;
	}

	.c-header,
	.c-archive-hero,
	.c-hero,
	.c-tariff-band {
		background: #fff !important;
		color: #000 !important;
		border-bottom: 1px solid #000;
	}

	.c-hero__title,
	.c-archive-hero__title,
	.c-section__title,
	h1,
	h2,
	h3 {
		color: #000 !important;
	}

	a {
		color: #000;
		text-decoration: underline;
	}

	/* Show destination URLs after links in printed output. */
	.c-prose a[href^="http"]::after {
		content: " (" attr(href) ")";
		font-size: 9pt;
		color: #444;
	}
}
