/*
 * Utilities – small, single-purpose helpers. Loaded last.
 */

.ms-visually-hidden,
.ms-sr-only {
	position: absolute !important; /* must never be overridden by component layout */
	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;
}

.ms-visually-hidden-focusable:not(:focus):not(:focus-within) {
	position: absolute !important; /* same as above until focused */
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
}

.ms-text-center { text-align: center; }
.ms-text-right { text-align: right; }
.ms-text-muted { color: var(--ms-color-text-muted); }
.ms-text-ink { color: var(--ms-color-ink); }
.ms-text-accent { color: var(--ms-color-accent-strong); }
.ms-text-sm { font-size: var(--ms-fs-sm); }
.ms-text-xs { font-size: var(--ms-fs-xs); }
.ms-text-lead { font-size: var(--ms-fs-lead); line-height: 1.55; }
.ms-fw-medium { font-weight: var(--ms-fw-medium); }
.ms-fw-bold { font-weight: var(--ms-fw-bold); }
.ms-nowrap { white-space: nowrap; }
.ms-tabular,
.ms-num { font-variant-numeric: var(--ms-num); }
.ms-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ms-line-clamp-2,
.ms-line-clamp-3 {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ms-line-clamp-2 { -webkit-line-clamp: 2; line-clamp: 2; }
.ms-line-clamp-3 { -webkit-line-clamp: 3; line-clamp: 3; }

.ms-mt-0 { margin-top: 0 !important; } /* spacing utilities intentionally win */
.ms-mb-0 { margin-bottom: 0 !important; }
.ms-mt-sm { margin-top: 12px !important; }
.ms-mt-md { margin-top: 24px !important; }
.ms-mt-lg { margin-top: 40px !important; }
.ms-mb-sm { margin-bottom: 12px !important; }
.ms-mb-md { margin-bottom: 24px !important; }
.ms-mb-lg { margin-bottom: 40px !important; }

.ms-flex { display: flex; }
.ms-items-center { align-items: center; }
.ms-justify-between { justify-content: space-between; }
.ms-gap-sm { gap: 8px; }
.ms-gap-md { gap: 16px; }
.ms-w-full { width: 100%; }

.ms-rounded { border-radius: var(--ms-radius-lg); }
.ms-surface { background: var(--ms-color-surface); }

@media (max-width: 767px) {
	.ms-hide-mobile { display: none !important; } /* responsive visibility */
}

@media (min-width: 768px) {
	.ms-show-mobile { display: none !important; } /* responsive visibility */
}

@media (max-width: 1024px) {
	.ms-hide-tablet { display: none !important; } /* responsive visibility */
}

@media (min-width: 1025px) {
	.ms-show-tablet { display: none !important; } /* responsive visibility */
}

@media print {
	.ms-header,
	.ms-utility,
	.ms-footer,
	.ms-drawer,
	.ms-search-overlay,
	.ms-toast,
	.ms-pattern {
		display: none !important; /* print only the content */
	}

	.ms-page-band {
		background: none !important; /* print only the content */
		color: #000 !important;
		margin-top: 0 !important;
		padding-top: 0 !important;
	}
}
