/*
 * ImageVault Pro base layer: a reset scoped to .ivp-app.
 * :where() keeps every reset at the specificity of .ivp-app alone, so component classes
 * always win while typical theme element selectors (h1, a, button) still lose.
 * Nothing in this file selects an element outside .ivp-app.
 */

.ivp-app {
	position: relative;
	box-sizing: border-box;
	max-width: 100%;
	overflow-x: clip;
	font-family: var(--ivp-font-sans);
	font-size: var(--ivp-fs-base);
	font-weight: var(--ivp-fw-regular);
	font-feature-settings: "cv11", "ss01", "ss03";
	line-height: var(--ivp-lh);
	letter-spacing: normal;
	text-align: start;
	text-transform: none;
	text-shadow: none;
	word-spacing: normal;
	overflow-wrap: break-word;
	color: var(--ivp-text);
	background: var(--ivp-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	-webkit-tap-highlight-color: transparent;
}

.ivp-app.ivp-portal {
	position: static;
	overflow: visible;
	background: none;
}

.ivp-app *,
.ivp-app *::before,
.ivp-app *::after {
	box-sizing: border-box;
}

.ivp-app :where(h1, h2, h3, h4, h5, h6, p, ul, ol, li, dl, dt, dd, figure, figcaption, blockquote, pre, fieldset, legend, table, th, td, label) {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: inherit;
	line-height: inherit;
	background: none;
}

.ivp-app :where(ul, ol) {
	list-style: none;
}

.ivp-app :where(h1, h2, h3, h4, h5, h6) {
	font-family: inherit;
	font-weight: var(--ivp-fw-bold);
	line-height: var(--ivp-lh-tight);
	letter-spacing: var(--ivp-ls-tight);
	color: inherit;
	text-transform: none;
}

.ivp-app :where(h1) { font-size: var(--ivp-fs-4xl); }
.ivp-app :where(h2) { font-size: var(--ivp-fs-3xl); }
.ivp-app :where(h3) { font-size: var(--ivp-fs-2xl); }
.ivp-app :where(h4) { font-size: var(--ivp-fs-xl); }
.ivp-app :where(h5) { font-size: var(--ivp-fs-lg); }
.ivp-app :where(h6) { font-size: var(--ivp-fs-base); }

.ivp-app :where(a) {
	color: var(--ivp-link);
	text-decoration: underline;
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
	box-shadow: none;
	border: 0;
}

.ivp-app :where(a:hover) {
	text-decoration-thickness: 0.14em;
}

/*
 * Classic themes style content through wrappers (.entry-content ul at 0,1,1, or
 * .ast-single-post .entry-content a at 0,2,1) that outrank the :where() resets above.
 * The html body prefix lifts just these properties over such rules while every
 * .ivp-app .ivp-* component rule (0,2,0 and up) still wins.
 */
html body .ivp-app :is(h1, h2, h3, h4, h5, h6, p, ul, ol, li, dl, dt, dd, figure, blockquote, pre, fieldset, legend, table) {
	margin: 0;
	padding: 0;
}

html body .ivp-app :is(ul, ol) {
	list-style: none;
}

html body .ivp-app :is(label, legend) {
	color: inherit;
	font-size: inherit;
	font-style: inherit;
	font-weight: inherit;
	line-height: inherit;
}

html body .ivp-app :is(a, button, input, select, textarea) {
	transition: none;
}

html body .ivp-app a[class]:not(.ivp-link) {
	text-decoration: none;
}

.ivp-app :where(strong, b) {
	font-weight: var(--ivp-fw-bold);
}

.ivp-app :where(img, picture, video, canvas) {
	display: block;
	max-width: 100%;
	height: auto;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.ivp-app :where(svg) {
	max-width: 100%;
	overflow: visible;
}

.ivp-app :where(button, input, select, textarea) {
	margin: 0;
	font: inherit;
	color: inherit;
	letter-spacing: inherit;
	text-transform: none;
	box-shadow: none;
}

.ivp-app :where(button) {
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.ivp-app :where(button:disabled) {
	cursor: not-allowed;
}

.ivp-app :where(table) {
	border-collapse: collapse;
	border-spacing: 0;
}

.ivp-app :where(hr) {
	height: 0;
	margin: 0;
	border: 0;
	border-top: 1px solid var(--ivp-border);
}

.ivp-app :where(code, kbd, samp, pre) {
	font-family: var(--ivp-font-mono);
	font-size: 0.9em;
}

.ivp-app ::selection {
	color: var(--ivp-text);
	background: var(--ivp-primary-ring);
}

.ivp-app :focus {
	outline: none;
}

.ivp-app :focus-visible {
	outline: 2px solid var(--ivp-focus);
	outline-offset: 2px;
}

.ivp-app [hidden]:not([hidden="until-found"]) {
	display: none !important;
}

.ivp-app .ivp-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;
}

.ivp-app .ivp-skip-link {
	position: absolute;
	top: var(--ivp-sp-2);
	left: var(--ivp-sp-2);
	z-index: var(--ivp-z-toast);
	padding: var(--ivp-sp-2) var(--ivp-sp-4);
	border-radius: var(--ivp-r-sm);
	font-weight: var(--ivp-fw-semibold);
	color: var(--ivp-on-primary);
	background: var(--ivp-primary);
	text-decoration: none;
}

.ivp-app .ivp-skip-link:not(:focus) {
	width: 1px;
	height: 1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}
