@layer norn.components {
		norn-icon {
			display: inline-flex;
			flex: none;
			vertical-align: -0.125em;

			& svg {
				inline-size: var(--norn-ui-icon-s, 1em);
				block-size: var(--norn-ui-icon-s, 1em);

				&[data-size="m"] {
					inline-size: var(--norn-ui-icon-m, 1.25rem);
					block-size: var(--norn-ui-icon-m, 1.25rem);
				}

				&:not([data-project]) {
					fill: none;
					stroke: currentcolor;
					stroke-linecap: round;
					stroke-linejoin: round;
					stroke-width: 2;
				}

				&[data-project] {
					fill: currentcolor;
				}
			}

			& > :not(svg) {
				position: absolute;
				inline-size: 1px;
				block-size: 1px;
				overflow: hidden;
				clip-path: inset(50%);
				white-space: nowrap;
			}

			& [data-fill] {
				fill: currentcolor;
				stroke: none;
			}

			&:dir(rtl) [data-mirror] {
				transform: scaleX(-1);
			}
		}
	}
@layer norn.components {
		norn-callout {
			--_color: var(--norn-text-accent, light-dark(oklch(from color-mix(in oklch, var(--norn-ui-accent, #2346d4) 82%, black) min(l, 0.5) c h), oklch(from color-mix(in oklch, var(--norn-ui-accent, #2346d4) 55%, white) max(l, 0.72) c h)));
			display: block;

			&:has(> [data-variant="tip"]) {
				--_color: var(--norn-status-success, light-dark(#0b6b3a, #7ed6a1));
			}

			&:has(> [data-variant="warning"]) {
				--_color: var(--norn-status-warning, light-dark(#9a4a00, #ffb36b));
			}

			&:has(> [data-variant="caution"]) {
				--_color: var(--norn-status-danger, light-dark(#b42318, #ff8a80));
			}

			/* A quiet raised panel: a short rule, a small label, then the body set like a pull quote. */
			& > div {
				display: grid;
				grid-template-columns: minmax(0, 1fr);
				gap: var(--norn-space-s, 0.75rem);
				padding: var(--norn-space-m, 1.25rem) var(--norn-space-l, 2rem);
				overflow-wrap: anywhere;
				border-radius: var(--norn-ui-border-radius, 6px);
				background: var(--norn-surface-raised, light-dark(hsl(40, 14%, 96%), #242932));
				color: var(--norn-text-base, light-dark(#16181d, #eceef3));
				font-family: var(--norn-font-heading, var(--norn-font-body, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif));
				font-size: var(--norn-font-size-l, 1.25rem);
				line-height: 1.4;
				text-wrap: pretty;

				&::before {
					content: "";
					inline-size: 2rem;
					block-size: 2px;
					background: var(--_color);
				}
			}

			& > div > p:first-child {
				display: flex;
				align-items: center;
				gap: var(--norn-space-xs, 0.5rem);
				margin: 0;
				color: var(--_color);
				font-family: var(--norn-font-body, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
				font-size: var(--norn-font-size-s, 0.875rem);
				font-weight: 600;
				letter-spacing: 0.08em;
				line-height: 1.15;
				text-transform: uppercase;
			}

			& > div > p:first-child > norn-icon {
				flex: none;
			}

			& > div > :not(:first-child) {
				margin: 0;
			}

			/* A fill that forced colors replaces still shows as a border. */
			@media (forced-colors: active) {
				& > div {
					border: 1px solid CanvasText;
				}
			}

			@media print {
				& > div {
					border: 1px solid currentcolor;
					background: none;
				}
			}
		}
	}