/*
 * UA+ v0.4.1, commit 8c9eaa8e2dffe54fac19d7aabe6f5661f6b4b40c
 * https://github.com/fokus-dev/uaplus/blob/8c9eaa8e2dffe54fac19d7aabe6f5661f6b4b40c/uaplus.css
 * ISC License
 * Copyright (c) Manuel Matuzovic
 * Permission to use, copy, modify, and/or distribute this software for any
 * purpose with or without fee is hereby granted, provided that the above
 * copyright notice and this permission notice appear in all copies.
 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 */
@layer uaplus-reset-styles {
	*,
	*::after,
	*::before {
		box-sizing: border-box;
	}

	:focus-visible {
		outline-offset: 3px;
	}

	html {
		-webkit-text-size-adjust: none;
		text-size-adjust: none;
		line-height: 1.5;
		scrollbar-gutter: stable;
	}

	body {
		-webkit-font-smoothing: antialiased;
	}

	h1 {
		font-size: 2em;
		margin-block: 0.67em;
	}

	h1,
	h2,
	h3 {
		line-height: 1.2;
	}

	abbr[title] {
		cursor: help;
		text-decoration-line: underline;
		text-decoration-style: dotted;
	}

	@media (forced-colors: active) {
		mark {
			color: HighlightText;
			background-color: Highlight;
		}
	}

	audio,
	iframe,
	img,
	svg,
	video {
		max-block-size: 100%;
		max-inline-size: 100%;
	}

	fieldset {
		min-inline-size: 0;
	}

	label:has(+ :where(input:not([type="radio"], [type="checkbox"]), select, textarea)) {
		display: block;
	}

	textarea:not([rows]) {
		min-block-size: 6em;
	}

	button,
	input,
	select,
	textarea {
		font-family: inherit;
		font-size: inherit;
	}

	:disabled {
		cursor: not-allowed;
	}

	[type="search"] {
		-webkit-appearance: textfield;
	}

	@supports (-webkit-touch-callout: none) {
		[type="search"] {
			border: 1px solid -apple-system-secondary-label;
			background-color: canvas;
		}
	}

	input:where([type="tel"], [type="url"], [type="email"], [type="number"]):not(:placeholder-shown) {
		direction: ltr;
	}

	table {
		border-collapse: collapse;
		border: 1px solid;
		font-variant-numeric: tabular-nums lining-nums slashed-zero;
	}

	th,
	td {
		border: 1px solid;
		padding: 0.25em 0.5em;
		vertical-align: top;
	}

	dialog::backdrop {
		background: oklch(0% 0 0 / 0.5);
	}

	dialog {
		--_dialog-transition-speed: 150ms;
		--_dialog-transition: var(--_dialog-transition-speed);
	}

	dialog:not(:modal) {
		--_dialog-transition: 0;
	}

	dialog:-internal-dialog-in-top-layer {
		--_dialog-transition: var(--_dialog-transition-speed);
	}

	dialog,
	[popover],
	dialog::backdrop {
		opacity: 0;
		transition: opacity var(--_dialog-transition) ease-out, display var(--_dialog-transition) allow-discrete,
			overlay var(--_dialog-transition) allow-discrete;
	}

	dialog[open],
	:popover-open,
	dialog[open]::backdrop {
		opacity: 1;
	}

	@starting-style {
		dialog[open],
		:popover-open,
		dialog[open]::backdrop {
			opacity: 0;
		}
	}

	[hidden]:not([hidden="until-found"]) {
		display: none !important;
	}

	img {
		display: block;
	}

	summary {
		cursor: default;
	}

	iframe {
		border: none;
	}

	@supports (position-area: end) {
		[popover] {
			margin: 0;
			position-area: end span-end;
			position-try-fallbacks: flip-block, flip-inline, flip-block flip-inline;
		}
	}
}
