/* Nirmio base: reset + typography. Scoped to the app document (no theme CSS is loaded). */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--n-color-bg);
	color: var(--n-color-text);
	font-family: var(--n-font-sans);
	font-size: var(--n-font-size-base);
	line-height: var(--n-line-height-base);
	font-feature-settings: "cv11", "ss01";
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

img,
svg {
	display: block;
	max-width: 100%;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

a {
	color: var(--n-color-primary);
	text-decoration: none;
}

a:hover {
	color: var(--n-color-primary-hover);
	text-decoration: underline;
}

h1,
h2,
h3,
h4,
p {
	margin: 0;
}

ul,
ol {
	margin: 0;
	padding: 0;
}

:focus-visible {
	outline: 2px solid var(--n-color-focus);
	outline-offset: 2px;
}

[hidden] {
	display: none !important;
}

/* Typographic hierarchy */
.n-page-title {
	font-size: var(--n-font-size-2xl);
	font-weight: var(--n-font-weight-semibold);
	line-height: var(--n-line-height-tight);
	letter-spacing: var(--n-letter-spacing-tight);
}

.n-section-title {
	font-size: var(--n-font-size-xl);
	font-weight: var(--n-font-weight-semibold);
	line-height: var(--n-line-height-tight);
	letter-spacing: var(--n-letter-spacing-tight);
}

.n-card-title {
	font-size: var(--n-font-size-lg);
	font-weight: var(--n-font-weight-semibold);
	line-height: var(--n-line-height-tight);
}

.n-text-secondary {
	color: var(--n-color-text-secondary);
}

.n-text-muted,
.n-help {
	color: var(--n-color-text-muted);
	font-size: var(--n-font-size-sm);
}

.n-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;
}

.n-skip-link {
	position: absolute;
	top: var(--n-space-2);
	left: var(--n-space-2);
	z-index: calc(var(--n-z-toast) + 1);
	padding: var(--n-space-2) var(--n-space-4);
	background: var(--n-color-surface);
	border-radius: var(--n-radius-md);
	box-shadow: var(--n-shadow-md);
	transform: translateY(-200%);
}

.n-skip-link:focus {
	transform: none;
}

.n-icon {
	width: 20px;
	height: 20px;
	flex: none;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.75;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.n-icon--sm {
	width: 16px;
	height: 16px;
}

.n-icon--lg {
	width: 28px;
	height: 28px;
}

/* Spacing utilities (token-based) */
.n-mt-1 { margin-top: var(--n-space-1); }
.n-mt-2 { margin-top: var(--n-space-2); }
.n-mt-4 { margin-top: var(--n-space-4); }
.n-mt-6 { margin-top: var(--n-space-6); }
.n-mb-2 { margin-bottom: var(--n-space-2); }
.n-mb-4 { margin-bottom: var(--n-space-4); }
.n-mb-6 { margin-bottom: var(--n-space-6); }
