/* Base: reset, typography, links, focus, forms, accessibility helpers. */

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--livhy-header-h) + var(--livhy-space-4));
}

html.lv-dialog-open {
	overflow: hidden;
}

body {
	margin: 0;
	min-height: 100vh;
	background: var(--livhy-background);
	color: var(--livhy-text);
	font-family: var(--livhy-font);
	font-size: var(--livhy-fs-body);
	font-weight: var(--livhy-fw-regular);
	line-height: var(--livhy-lh-body);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-wrap: break-word;
	padding-bottom: calc(var(--livhy-bottom-nav-h) + var(--livhy-safe-bottom));
}

@media (min-width: 1024px) {
	body {
		padding-bottom: 0;
	}
}

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

img {
	height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 var(--livhy-space-4);
	color: var(--livhy-text);
	font-weight: var(--livhy-fw-bold);
	line-height: var(--livhy-lh-snug);
}

h1 {
	font-size: var(--livhy-fs-h1);
	line-height: var(--livhy-lh-tight);
}

h2 {
	font-size: var(--livhy-fs-h2);
}

h3 {
	font-size: var(--livhy-fs-h3);
	font-weight: var(--livhy-fw-semibold);
}

h4 {
	font-size: var(--livhy-fs-h4);
	font-weight: var(--livhy-fw-semibold);
}

h5,
h6 {
	font-size: var(--livhy-fs-body);
	font-weight: var(--livhy-fw-semibold);
}

p,
ul,
ol,
dl,
figure,
blockquote,
table {
	margin: 0 0 var(--livhy-space-4);
}

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

a:hover {
	color: var(--livhy-primary);
}

small {
	font-size: var(--livhy-fs-small);
}

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

button {
	cursor: pointer;
}

button:disabled {
	cursor: not-allowed;
}

input[type="text"],
input[type="email"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="number"],
select,
textarea {
	width: 100%;
	min-height: var(--livhy-tap);
	padding: 0.625rem 0.875rem;
	border: 1px solid var(--livhy-border);
	border-radius: var(--livhy-radius-md);
	background: var(--livhy-surface);
	font-size: max(16px, 1rem);
	line-height: 1.4;
	transition: border-color var(--livhy-dur-fast) ease, box-shadow var(--livhy-dur-fast) ease;
}

input:focus,
select:focus,
textarea:focus {
	border-color: var(--livhy-primary);
	outline: none;
	box-shadow: 0 0 0 3px rgb(139 16 24 / 0.15);
}

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

[hidden] {
	display: none !important;
}

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

.lv-skip-link:focus {
	position: fixed !important;
	top: var(--livhy-space-2);
	left: var(--livhy-space-2);
	z-index: var(--livhy-z-toast);
	width: auto;
	height: auto;
	padding: var(--livhy-space-3) var(--livhy-space-4);
	margin: 0;
	clip: auto;
	background: var(--livhy-surface);
	color: var(--livhy-text);
	border-radius: var(--livhy-radius-md);
	box-shadow: var(--livhy-shadow-lg);
	font-weight: var(--livhy-fw-semibold);
}

.lv-main {
	display: block;
	min-height: 40vh;
}

/* Colour classes saved in existing block content by the previous theme. */
.has-woostify-primary-color {
	color: var(--livhy-primary);
}

.has-woostify-heading-color {
	color: var(--livhy-text);
}

.has-woostify-text-color {
	color: var(--livhy-muted);
}

.has-woostify-primary-background-color {
	background-color: var(--livhy-primary);
}
