:root {
	/* Adobe Fonts kit name first. Override --lc-font in Divi if the kit uses another name. */
	--lc-font: "atyp-bl-text", "atyp-bl", "Atyp BL Text", "Atyp BL", sans-serif;
	/* Moves button text down, because Atyp BL sits high in its line box. Use 0 for other fonts. */
	--lc-button-nudge: 3px;
	--lc-weight-light: 300;
	--lc-weight-regular: 400;
	--lc-line: #d7d7d7;
	--lc-grey: #666;
	--lc-ink: #333;
	--lc-error: #af4040;
}

/* !important because Divi sets fonts directly on headings inside its modules. */
.lc-heading,
.lc-text,
.lc-button,
.lc-card__title,
.lc-card__meta,
.lc-section__title,
.lc-section__body,
.lc-label,
.lc-input,
.lc-error,
.lc-legal {
	font-family: var(--lc-font) !important;
}

/* Shared */
.lc-heading {
	margin: 0;
	padding: 0;
	font-size: 32px;
	font-weight: var(--lc-weight-regular);
	line-height: 1.2;
	letter-spacing: -0.035em;
	color: #000;
	text-align: center;
}

.lc-text {
	margin: 0;
	padding: 0;
	font-size: 18px;
	font-weight: var(--lc-weight-regular);
	line-height: normal;
	letter-spacing: -0.035em;
	color: var(--lc-grey);
	text-align: center;
}

.lc-button,
a.lc-button,
button.lc-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: 41px;
	margin: 0;
	padding: calc(8px + var(--lc-button-nudge)) 24px calc(8px - var(--lc-button-nudge));
	border: 1px solid #000;
	border-radius: 0;
	background: #000;
	color: #fff;
	font-size: 18px;
	font-weight: var(--lc-weight-regular);
	line-height: normal;
	letter-spacing: normal;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.lc-button:hover,
.lc-button:focus-visible {
	background: #fff;
	color: #000;
}

.lc-button[disabled] {
	opacity: 0.6;
	cursor: progress;
}

.lc-button--wide,
button.lc-button--wide {
	width: 100%;
}

.lc-icon {
	display: block;
	margin: 0 auto;
}

/* Course list */
.lc-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 30px 60px;
}

.lc-card {
	padding-top: 30px;
	border-top: 1px solid var(--lc-line);
}

.lc-card--muted {
	border-top-color: rgba(215, 215, 215, 0.6);
}

.lc-card--muted > * {
	opacity: 0.6;
}

.lc-card__image {
	aspect-ratio: 666 / 450;
	overflow: hidden;
	background: #f6f6f6;
}

.lc-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

h3.lc-card__title {
	margin: 22px 0 8px;
	padding: 0;
	font-size: 32px;
	font-weight: var(--lc-weight-regular);
	line-height: 1.2;
	letter-spacing: -0.035em;
	color: #000;
}

.lc-card__meta {
	margin: 0 0 9px;
	padding: 0;
	font-size: 16px;
	font-weight: var(--lc-weight-light);
	line-height: normal;
	letter-spacing: -0.035em;
	color: #000;
}

.lc-card__price {
	margin-bottom: 22px;
	text-transform: uppercase;
}

/* Course concept: type comes from the Divi module */
.lc-concept p {
	margin: 0;
	padding: 0;
}

.lc-concept ul {
	margin: 0;
	padding: 0 0 0 27px;
	list-style: disc;
}

/* Course sections */
.lc-sections {
	display: flex;
	flex-direction: column;
	gap: 50px;
}

h3.lc-section__title {
	margin: 0 0 30px;
	padding: 0;
	font-size: 32px;
	font-weight: var(--lc-weight-regular);
	line-height: 1.2;
	letter-spacing: -0.035em;
	color: #000;
}

.lc-section__body {
	font-size: 18px;
	font-weight: var(--lc-weight-regular);
	line-height: normal;
	letter-spacing: -0.035em;
	color: var(--lc-grey);
}

.lc-section__body p {
	margin: 0 0 1em;
	padding: 0;
	font: inherit;
	letter-spacing: inherit;
	color: inherit;
}

.lc-section__body p:last-child {
	margin-bottom: 0;
}

.lc-section__body ul {
	margin: 0 0 1em;
	padding: 0 0 0 27px;
	list-style: disc;
}

.lc-section__body ul:last-child {
	margin-bottom: 0;
}

.lc-section__body li {
	font: inherit;
	letter-spacing: inherit;
	color: inherit;
}

/* Empty state */
.lc-empty {
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: 310px;
	padding: 40px 16px;
	background: #f6f6f6;
}

/* Fully booked and deadline messages */
.lc-state {
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: center;
	padding: 60px 35px;
	background: #fff;
}

.lc-state .lc-heading,
.lc-state .lc-text {
	max-width: 400px;
}

/* Form */
.lc-form {
	position: relative;
	margin: 0;
}

.lc-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.lc-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 25px 30px;
}

.lc-field--full {
	grid-column: 1 / -1;
}

.lc-label {
	display: block;
	margin: 0 0 8px;
	padding: 0;
	font-size: 16px;
	font-weight: var(--lc-weight-light);
	line-height: normal;
	letter-spacing: -0.035em;
	color: var(--lc-grey);
	text-transform: uppercase;
}

.lc-form input.lc-input {
	display: block;
	box-sizing: border-box;
	width: 100%;
	height: 41px;
	margin: 0;
	padding: 0 13px;
	border: 1px solid var(--lc-line);
	border-radius: 0;
	outline: 0;
	box-shadow: none;
	background: #fff;
	color: var(--lc-grey);
	font-size: 18px;
	font-weight: var(--lc-weight-regular);
	letter-spacing: -0.035em;
}

.lc-form input.lc-input:focus {
	border-color: #000;
	color: var(--lc-ink);
}

.lc-field.is-invalid .lc-label,
.lc-field.is-invalid input.lc-input,
.lc-error {
	color: var(--lc-error);
}

.lc-field.is-invalid input.lc-input {
	border-color: var(--lc-error);
}

.lc-error {
	margin: 8px 0 0;
	padding: 0;
	font-size: 16px;
	font-weight: var(--lc-weight-regular);
	line-height: normal;
	letter-spacing: -0.035em;
}

.lc-form__footer {
	display: flex;
	gap: 30px;
	align-items: center;
	justify-content: space-between;
	margin-top: 30px;
}

.lc-form__footer .lc-button {
	flex-shrink: 0;
}

.lc-legal {
	margin: 0;
	padding: 0;
	font-size: 16px;
	font-weight: var(--lc-weight-light);
	line-height: 1.3;
	letter-spacing: -0.035em;
	color: var(--lc-grey);
}

/* Modal and bottom sheet */
.lc-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(0, 0, 0, 0.4);
	-webkit-backdrop-filter: blur(5px);
	backdrop-filter: blur(5px);
}

.lc-overlay[hidden] {
	display: none;
}

.lc-dialog {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 20px;
	box-sizing: border-box;
	width: 460px;
	max-width: 100%;
	max-height: 100%;
	overflow-y: auto;
	padding: 32px;
	outline: 0;
	background: #fff;
}

.lc-dialog .lc-icon {
	margin-bottom: -10px;
}

button.lc-dialog__x {
	position: absolute;
	top: 16px;
	right: 16px;
	display: block;
	width: 16px;
	height: 16px;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

html.lc-locked,
html.lc-locked body {
	overflow: hidden;
}

@media (max-width: 767px) {
	.lc-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.lc-state {
		padding: 40px 0;
	}

	.lc-fields {
		grid-template-columns: minmax(0, 1fr);
	}

	.lc-form__footer {
		flex-direction: column;
		align-items: stretch;
	}

	.lc-overlay {
		align-items: flex-end;
		padding: 0;
	}

	.lc-dialog {
		width: 100%;
	}
}
