/**
 * Global resets and element defaults.
 */

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

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
	overflow-x: hidden;
}

body {
	margin: 0;
	overflow-x: hidden;
	background-color: var(--rentiva-background);
	color: var(--rentiva-foreground);
	font-family: var(--rentiva-font-sans);
	font-size: var(--rentiva-text-base);
	line-height: var(--rentiva-leading-normal);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

a {
	color: inherit;
	text-decoration: none;
}

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

button {
	cursor: pointer;
	background: none;
	border: 0;
	padding: 0;
}

ul,
ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

figure {
	margin: 0;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: var(--rentiva-card);
	border-radius: var(--rentiva-radius-sm);
	box-shadow: var(--rentiva-shadow-floating);
	clip: auto !important;
	clip-path: none;
	color: var(--rentiva-foreground);
	display: block;
	font-size: var(--rentiva-text-sm);
	font-weight: 600;
	height: auto;
	left: 1rem;
	line-height: normal;
	padding: 0.85rem 1.4rem;
	text-decoration: none;
	top: 1rem;
	width: auto;
	z-index: 100000;
}

/* Hide scrollbar chrome but keep scrolling — matches the mockup's slim thumb. */
::-webkit-scrollbar {
	width: 6px;
	height: 6px;
}
::-webkit-scrollbar-track {
	background: var(--rentiva-scrollbar-track);
}
::-webkit-scrollbar-thumb {
	background: var(--rentiva-scrollbar-thumb);
	border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
	background: var(--rentiva-scrollbar-thumb-hover);
}

::selection {
	background-color: var(--rentiva-primary);
	color: var(--rentiva-primary-foreground);
}
