/**
 * Litsey portal — [Lyceum.lk](https://www.lyceum.lk) tuzilmasiga yaqin,
 * Sirdaryo litseyiga moslashtirilgan yorug‘/qorong‘i mavzu.
 */
:root,
[data-theme="light"] {
	color-scheme: light;
	--ly-bg: #f1f5f9;
	--ly-surface: #ffffff;
	--ly-surface2: #f8fafc;
	--ly-text: #0f172a;
	--ly-muted: #64748b;
	--ly-border: #e2e8f0;
	--ly-accent: #0369a1;
	--ly-accent2: #0d9488;
	--ly-hero-soft: linear-gradient(135deg, rgba(3, 105, 161, 0.08), rgba(13, 148, 136, 0.06));
	--ly-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
	--ly-shadow2: 0 8px 24px rgba(15, 23, 42, 0.06);
	--ly-radius: 14px;
	--ly-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--ly-display: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

[data-theme="dark"] {
	color-scheme: dark;
	--ly-bg: #0b1220;
	--ly-surface: #111c2f;
	--ly-surface2: #0f172a;
	--ly-text: #e2e8f0;
	--ly-muted: #94a3b8;
	--ly-border: rgba(148, 163, 184, 0.22);
	--ly-accent: #38bdf8;
	--ly-accent2: #2dd4bf;
	--ly-hero-soft: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(45, 212, 191, 0.08));
	--ly-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
	--ly-shadow2: 0 12px 36px rgba(0, 0, 0, 0.35);
}

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

html {
	scroll-behavior: smooth;
}

.lw-skip {
	position: absolute;
	left: 12px;
	top: -100px;
	z-index: 1000;
	padding: 10px 16px;
	background: var(--ly-accent);
	color: #fff;
	font-weight: 600;
	border-radius: 10px;
	text-decoration: none;
	transition: top 0.2s ease;
}

.lw-skip:focus {
	top: 12px;
}

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

.lw-body {
	margin: 0;
	min-height: 100dvh;
	font-family: var(--ly-font);
	background: var(--ly-bg);
	color: var(--ly-text);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

a {
	color: var(--ly-accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

/* ----- site chrome (ixcham, mobil “sheet”, sticky yo‘q) ----- */
.lw-sitehead {
	position: relative;
	z-index: 40;
	background: var(--ly-surface);
	border-bottom: 1px solid var(--ly-border);
}

.lw-sitehead__inner {
	width: min(1120px, 100% - max(24px, env(safe-area-inset-left, 0px) + env(safe-area-inset-right, 0px)));
	margin-inline: auto;
	padding-inline: max(16px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 56px;
	padding-block: 8px;
}

.lw-brand {
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: column;
	gap: 1px;
	min-width: 0;
}

.lw-brand__title {
	font-family: var(--ly-display);
	font-weight: 700;
	font-size: 1rem;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.lw-brand__sub {
	font-size: 0.72rem;
	color: var(--ly-muted);
	font-weight: 500;
}

.lw-sitehead__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	align-items: center;
}

.lw-sitehead__nav-link {
	font-weight: 500;
	font-size: 0.875rem;
	color: var(--ly-text);
	text-decoration: none;
	padding: 10px 12px;
	border-radius: 10px;
	transition: background 0.18s ease, color 0.18s ease;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
}

.lw-sitehead__nav-link:hover {
	background: color-mix(in srgb, var(--ly-text) 6%, transparent);
	color: var(--ly-accent);
}

.lw-sitehead__nav-link--admin {
	color: var(--ly-muted);
	font-size: 0.8125rem;
}

.lw-sitehead__nav-link--admin:hover {
	color: var(--ly-accent);
}

.lw-sitehead__actions {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
}

.lw-menu-toggle {
	display: none;
	width: 44px;
	height: 44px;
	padding: 0;
	border: none;
	border-radius: 12px;
	background: color-mix(in srgb, var(--ly-text) 6%, transparent);
	color: var(--ly-text);
	cursor: pointer;
	align-items: center;
	justify-content: center;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
}

.lw-menu-toggle__bars {
	display: block;
	width: 18px;
	height: 2px;
	background: currentColor;
	border-radius: 1px;
	box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

.lw-navbackdrop {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 90;
	background: rgba(15, 23, 42, 0.38);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	opacity: 0;
	transition: opacity 0.25s ease;
	pointer-events: none;
}

body.lw-nav-open .lw-navbackdrop {
	opacity: 1;
	pointer-events: auto;
}

@media (max-width: 899px) {
	.lw-menu-toggle {
		display: inline-flex;
	}

	.lw-sitehead__nav {
		position: fixed;
		z-index: 100;
		top: 0;
		right: 0;
		width: min(100% - 48px, 300px);
		height: 100dvh;
		height: 100vh;
		margin: 0;
		padding: max(20px, env(safe-area-inset-top)) 16px 24px max(16px, env(safe-area-inset-right));
		flex-direction: column;
		flex-wrap: nowrap;
		align-items: stretch;
		gap: 4px;
		background: var(--ly-surface);
		box-shadow: -12px 0 40px rgba(15, 23, 42, 0.12);
		transform: translate3d(100%, 0, 0);
		transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
		overflow-y: auto;
		overscroll-behavior: contain;
	}

	body.lw-nav-open .lw-sitehead__nav {
		transform: translate3d(0, 0, 0);
	}

	.lw-sitehead__nav-link {
		padding: 14px 16px;
		border-radius: 12px;
		font-size: 1rem;
		font-weight: 600;
	}

	.lw-sitehead__nav-link--admin {
		margin-top: 12px;
		padding-top: 18px;
		border-top: 1px solid var(--ly-border);
		font-weight: 600;
		color: var(--ly-accent);
	}

	.lw-navbackdrop {
		display: block;
	}
}

@media (min-width: 900px) {
	.lw-sitehead__nav .lw-sitehead__nav-link--admin {
		display: none;
	}
}

/* ----- mansil + orqaga (ichki sahifalar) ----- */
.lw-wayfind {
	position: relative;
	z-index: 1;
	padding: 12px 0 16px;
	margin-top: 0;
	background: var(--ly-bg);
	border-bottom: 1px solid color-mix(in srgb, var(--ly-border) 70%, transparent);
}

.lw-wayfind__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 18px;
}

.lw-wayfind__back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 16px 10px 12px;
	border-radius: 12px;
	border: 1px solid var(--ly-border);
	background: var(--ly-surface);
	color: var(--ly-text);
	font-weight: 600;
	font-size: 0.875rem;
	text-decoration: none;
	transition: background 0.18s ease, border-color 0.18s ease;
	flex-shrink: 0;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
}

.lw-wayfind__back:hover {
	border-color: color-mix(in srgb, var(--ly-accent) 35%, var(--ly-border));
	background: var(--ly-surface2);
}

.lw-wayfind__back:focus-visible {
	outline: 2px solid var(--ly-accent);
	outline-offset: 3px;
}

.lw-wayfind__back-ic {
	display: grid;
	place-items: center;
	color: var(--ly-accent);
}

.lw-wayfind__back-ic svg {
	display: block;
}

.lw-wayfind__scroll {
	flex: 1 1 200px;
	min-width: 0;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	mask-image: linear-gradient(90deg, #000 92%, transparent 100%);
}

.lw-wayfind__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: inline-flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: 4px;
	min-height: 40px;
}

.lw-wayfind__item {
	display: inline-flex;
	align-items: center;
}

.lw-wayfind__sep {
	display: inline-flex;
	align-items: center;
	padding: 0 2px;
	color: var(--ly-muted);
	opacity: 0.55;
	list-style: none;
}

.lw-wayfind__chip {
	display: inline-flex;
	align-items: center;
	max-width: 220px;
	padding: 7px 12px;
	border-radius: 999px;
	border: 1px solid var(--ly-border);
	background: var(--ly-surface);
	color: var(--ly-text);
	font-weight: 600;
	font-size: 0.82rem;
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.lw-wayfind__chip:hover {
	border-color: color-mix(in srgb, var(--ly-accent) 35%, var(--ly-border));
	background: var(--ly-surface2);
}

.lw-wayfind__chip--here {
	border-color: color-mix(in srgb, var(--ly-accent) 25%, var(--ly-border));
	background: color-mix(in srgb, var(--ly-accent) 6%, var(--ly-surface));
	color: var(--ly-text);
	cursor: default;
}

.lw-wayfind__page-only {
	display: none;
	margin: 0;
	flex: 1 1 auto;
	min-width: 0;
	text-align: center;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--ly-muted);
	line-height: 1.35;
	padding: 2px 4px;
}

@media (max-width: 640px) {
	.lw-wayfind__scroll {
		display: none;
	}

	.lw-wayfind__page-only {
		display: block;
	}

	.lw-wayfind__bar {
		flex-direction: row;
		flex-wrap: nowrap;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
	}

	.lw-wayfind__back {
		flex-shrink: 0;
	}
}

@media (min-width: 641px) {
	.lw-wayfind__page-only {
		display: none !important;
	}
}

.lw-theme-toggle {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	border: 1px solid var(--ly-border);
	background: color-mix(in srgb, var(--ly-text) 5%, transparent);
	cursor: pointer;
	display: inline-grid;
	place-items: center;
	font-size: 1.1rem;
	color: var(--ly-text);
	transition: border-color 0.18s ease, background 0.18s ease;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
}

.lw-theme-toggle:hover {
	border-color: color-mix(in srgb, var(--ly-accent) 40%, var(--ly-border));
	background: var(--ly-surface2);
}

[data-theme="light"] .lw-theme-toggle__moon {
	display: none;
}
[data-theme="dark"] .lw-theme-toggle__sun {
	display: none;
}

.lw-sitefoot {
	margin-top: 48px;
	border-top: 1px solid var(--ly-border);
	background: var(--ly-surface);
}

.lw-sitefoot__inner {
	width: min(1120px, 100% - max(24px, env(safe-area-inset-left, 0px) + env(safe-area-inset-right, 0px)));
	margin-inline: auto;
	padding: 36px max(16px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)) 24px;
	display: grid;
	gap: 24px;
	grid-template-columns: 1fr 1fr;
	align-items: start;
}

@media (max-width: 720px) {
	.lw-sitefoot__inner {
		grid-template-columns: 1fr;
	}
}

.lw-sitefoot__k {
	font-family: var(--ly-display);
	font-size: 1.1rem;
}

.lw-sitefoot__muted {
	color: var(--ly-muted);
	margin: 0.35em 0 0;
	font-size: 0.95rem;
}

.lw-sitefoot__cols {
	display: block;
}

.lw-sitefoot__list--inline {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 18px;
	align-items: center;
}

.lw-sitefoot__list--inline li {
	margin: 0;
}

.lw-sitefoot__hint {
	margin: 14px 0 0;
	font-size: 0.8125rem;
	color: var(--ly-muted);
	line-height: 1.45;
	max-width: 40ch;
}

.lw-sitefoot__h {
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--ly-muted);
	margin: 0 0 10px;
}

.lw-sitefoot__list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 8px;
}

.lw-sitefoot__list a {
	font-weight: 600;
	color: var(--ly-text);
	text-decoration: none;
}

.lw-sitefoot__list a:hover {
	color: var(--ly-accent);
	text-decoration: underline;
}

.lw-sitefoot__copy {
	margin: 0;
	padding: 16px;
	text-align: center;
	font-size: 0.85rem;
	color: var(--ly-muted);
	border-top: 1px solid var(--ly-border);
}

.lw-shell {
	width: min(1180px, 100% - 32px);
	margin-inline: auto;
}

.lw-inner {
	width: min(880px, 100%);
}

.lw-innerpage {
	padding: clamp(24px, 4vw, 48px) 0 64px;
}

.lw-pagehead {
	margin-bottom: 28px;
}

.lw-h1 {
	font-family: var(--ly-display);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.1;
	font-size: clamp(2rem, 4vw, 2.75rem);
	margin: 0 0 0.4em;
	color: var(--ly-text);
}

.lw-h2 {
	font-family: var(--ly-display);
	font-weight: 700;
	font-size: clamp(1.25rem, 2.2vw, 1.65rem);
	margin: 1.1em 0 0.45em;
	letter-spacing: -0.02em;
	color: var(--ly-text);
}

.lw-h3 {
	font-family: var(--ly-display);
	font-weight: 700;
	font-size: 1.1rem;
	margin: 0 0 0.35em;
	color: var(--ly-text);
}

.lw-lead {
	color: var(--ly-muted);
	font-size: clamp(1.02rem, 1.5vw, 1.15rem);
	margin: 0 0 1em;
	max-width: 60ch;
}

.lw-date {
	font-size: 0.88rem;
	color: var(--ly-muted);
	margin: 0 0 0.5em;
}

.lw-richtext p {
	margin: 0.65em 0;
}

.lw-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 18px;
	border-radius: 999px;
	border: 1px solid var(--ly-border);
	font-weight: 600;
	font-size: 0.92rem;
	text-decoration: none;
	color: var(--ly-text);
	background: var(--ly-surface2);
	transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.lw-btn:hover {
	transform: translateY(-1px);
	border-color: var(--ly-accent);
}

.lw-btn--pri {
	background: linear-gradient(135deg, var(--ly-accent), var(--ly-accent2));
	border: none;
	color: #fff;
}

.lw-btn--sec {
	background: var(--ly-surface);
}

.lw-cardlink {
	display: block;
	padding: 16px 18px;
	border-radius: var(--ly-radius);
	border: 1px solid var(--ly-border);
	background: var(--ly-surface);
	color: var(--ly-text);
	text-decoration: none;
	box-shadow: var(--ly-shadow2);
	transition: transform 0.15s ease, border-color 0.15s ease;
}

.lw-cardlink:hover {
	transform: translateY(-2px);
	border-color: var(--ly-accent);
}

.lw-portgrid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
}

.lw-pcard {
	padding: 18px;
	border-radius: var(--ly-radius);
	border: 1px solid var(--ly-border);
	background: var(--ly-surface);
	box-shadow: var(--ly-shadow2);
}

.lw-pimg {
	border-radius: 14px;
	margin-bottom: 12px;
	border: 1px solid var(--ly-border);
}

.lw-reslist {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 12px;
}

.lw-reveal {
	opacity: 1;
	transform: none;
}

/* ----- Lyceum-style home ----- */
.ly-marquee {
	overflow: hidden;
	border-bottom: 1px solid var(--ly-border);
	background: var(--ly-surface);
}

.ly-marquee__track {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 0.25rem;
	padding: 10px 0;
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--ly-muted);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	width: max-content;
	animation: ly-marquee 38s linear infinite;
}

@keyframes ly-marquee {
	0% {
		transform: translateX(0);
	}
	100% {
		transform: translateX(-50%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.ly-marquee__track {
		animation: none;
		width: auto;
		flex-wrap: wrap;
		justify-content: center;
		padding: 12px 16px;
	}
}

.ly-hero {
	position: relative;
	padding: clamp(32px, 6vw, 72px) 0 48px;
	overflow: clip;
}

.ly-hero__bg {
	position: absolute;
	inset: 0;
	background: var(--ly-hero-soft);
	pointer-events: none;
}

.ly-hero__grid {
	position: relative;
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: clamp(24px, 4vw, 48px);
	align-items: center;
}

@media (max-width: 900px) {
	.ly-hero__grid {
		grid-template-columns: 1fr;
	}
}

.ly-kicker {
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--ly-accent2);
	margin: 0 0 10px;
}

.ly-hero__h {
	font-family: var(--ly-display);
	font-weight: 800;
	font-size: clamp(2.1rem, 4.5vw, 3.15rem);
	line-height: 1.08;
	letter-spacing: -0.035em;
	margin: 0 0 12px;
	color: var(--ly-text);
}

.ly-hero__lead {
	margin: 0 0 18px;
	color: var(--ly-muted);
	font-size: clamp(1.05rem, 1.6vw, 1.2rem);
	max-width: 52ch;
}

.ly-checks {
	margin: 0 0 22px;
	padding-left: 1.15em;
	color: var(--ly-text);
	font-weight: 500;
}

.ly-checks li {
	margin: 0.35em 0;
}

.ly-hero__cta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.ly-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 22px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.95rem;
	text-decoration: none;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ly-btn--primary {
	background: linear-gradient(135deg, var(--ly-accent), var(--ly-accent2));
	color: #fff;
	box-shadow: 0 10px 28px color-mix(in srgb, var(--ly-accent) 35%, transparent);
	border: none;
}

.ly-btn--primary:hover {
	transform: translateY(-2px);
}

.ly-btn--ghost {
	border: 1px solid var(--ly-border);
	color: var(--ly-text);
	background: var(--ly-surface);
}

.ly-btn--ghost:hover {
	border-color: var(--ly-accent);
	transform: translateY(-1px);
}

.ly-btn--accent2.ly-btn--primary {
	background: linear-gradient(135deg, var(--ly-accent2), #7c3aed);
	box-shadow: 0 10px 28px color-mix(in srgb, var(--ly-accent2) 38%, transparent);
}

.ly-inquiry-head {
	margin-bottom: clamp(24px, 4vw, 40px);
}

.ly-inquiry-intro {
	max-width: 62ch;
	color: var(--ly-muted);
	font-size: 1.05rem;
	line-height: 1.55;
}

.ly-inquiry-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
	gap: clamp(24px, 4vw, 40px);
	align-items: start;
}

@media (max-width: 900px) {
	.ly-inquiry-layout {
		grid-template-columns: 1fr;
	}
}

.ly-inquiry-card {
	background: var(--ly-surface);
	border: 1px solid var(--ly-border);
	border-radius: 20px;
	padding: clamp(20px, 3vw, 28px);
	box-shadow: var(--ly-shadow);
}

.ly-inquiry-card__title {
	margin: 0 0 8px;
	font-size: 1.15rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--ly-text);
}

.ly-inquiry-card__hint {
	margin: 0 0 22px;
	color: var(--ly-muted);
	font-size: 0.95rem;
	line-height: 1.5;
}

.ly-inquiry-form__errors {
	margin: 0 0 16px;
	padding: 12px 14px;
	border-radius: 12px;
	background: color-mix(in srgb, #ef4444 12%, transparent);
	border: 1px solid color-mix(in srgb, #ef4444 35%, transparent);
	color: #b91c1c;
	font-size: 0.92rem;
}

.ly-field {
	margin-bottom: 18px;
}

.ly-field__label {
	display: block;
	font-weight: 700;
	font-size: 0.92rem;
	margin-bottom: 6px;
	color: var(--ly-text);
}

.ly-field__req {
	color: var(--ly-accent2);
}

.ly-field__hint {
	margin: 0 0 8px;
	font-size: 0.85rem;
	color: var(--ly-muted);
	line-height: 1.45;
}

.ly-input {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 14px;
	border-radius: 12px;
	border: 1px solid var(--ly-border);
	background: var(--ly-surface2);
	color: var(--ly-text);
	font: inherit;
	font-size: 1rem;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ly-input:focus {
	outline: none;
	border-color: var(--ly-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--ly-accent) 22%, transparent);
}

.ly-input--area {
	min-height: 140px;
	resize: vertical;
	line-height: 1.5;
}

.ly-field--error .ly-input {
	border-color: #ef4444;
}

.ly-field__errlist {
	margin: 8px 0 0;
	padding-left: 1.1em;
	color: #b91c1c;
	font-size: 0.88rem;
}

.ly-inquiry-form__actions {
	margin-top: 8px;
}

.ly-inquiry-submit {
	cursor: pointer;
	font: inherit;
}

.ly-inquiry-aside__card {
	position: relative;
	top: auto;
	background: linear-gradient(
		160deg,
		color-mix(in srgb, var(--ly-accent) 10%, var(--ly-surface)),
		var(--ly-surface)
	);
	border: 1px solid var(--ly-border);
	border-radius: 18px;
	padding: 20px 22px;
	box-shadow: var(--ly-shadow);
}

.ly-inquiry-aside__h {
	margin: 0 0 12px;
	font-size: 1rem;
	font-weight: 800;
	color: var(--ly-text);
}

.ly-inquiry-aside__list {
	margin: 0;
	padding-left: 1.1em;
	color: var(--ly-muted);
	line-height: 1.6;
}

.ly-inquiry-aside__list a {
	color: var(--ly-accent);
	font-weight: 600;
	text-decoration: none;
}

.ly-inquiry-aside__list a:hover {
	text-decoration: underline;
}

.ly-inquiry-thanks {
	min-height: 50vh;
	display: flex;
	align-items: center;
}

.ly-inquiry-thanks__inner {
	max-width: 56ch;
	margin: 0 auto;
	text-align: center;
	padding: clamp(32px, 6vw, 64px) 0;
}

.ly-inquiry-thanks__body,
.ly-inquiry-thanks__lead {
	color: var(--ly-muted);
	font-size: 1.08rem;
	line-height: 1.6;
	margin: 0 0 24px;
}

.ly-inquiry-thanks__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
	margin: 0;
}

.ly-hero__frame {
	border-radius: 22px;
	overflow: hidden;
	border: 1px solid var(--ly-border);
	box-shadow: var(--ly-shadow);
	background: var(--ly-surface2);
	aspect-ratio: 4 / 5;
	max-height: 520px;
}

.ly-hero__frame--empty {
	display: grid;
	place-items: center;
	padding: 24px;
	text-align: center;
}

.ly-hero__phnote {
	margin: 0;
	font-size: 0.92rem;
	color: var(--ly-muted);
	line-height: 1.5;
}

.ly-hero__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ly-section {
	padding: clamp(36px, 5vw, 64px) 0;
}

.ly-section__title {
	font-family: var(--ly-display);
	font-weight: 800;
	font-size: clamp(1.5rem, 2.8vw, 2rem);
	letter-spacing: -0.03em;
	margin: 0 0 12px;
	color: var(--ly-text);
}

.ly-section__title--center {
	text-align: center;
}

.ly-section__lead {
	text-align: center;
	color: var(--ly-muted);
	margin: 0 auto 32px;
	max-width: 52ch;
	font-size: 1.05rem;
}

.ly-about__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(20px, 4vw, 40px);
	align-items: center;
}

@media (max-width: 800px) {
	.ly-about__grid {
		grid-template-columns: 1fr;
	}
}

.ly-about__text {
	color: var(--ly-muted);
	font-size: 1.05rem;
	line-height: 1.7;
}

.ly-about__pic {
	border-radius: var(--ly-radius);
	overflow: hidden;
	border: 1px solid var(--ly-border);
	box-shadow: var(--ly-shadow2);
}

.ly-about__img {
	width: 100%;
	height: auto;
}

.ly-offer__grid {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 18px;
}

.ly-offer__card {
	background: var(--ly-surface);
	border: 1px solid var(--ly-border);
	border-radius: var(--ly-radius);
	padding: 20px;
	box-shadow: var(--ly-shadow2);
	transition: transform 0.15s ease, border-color 0.15s ease;
}

.ly-offer__card:hover {
	transform: translateY(-3px);
	border-color: color-mix(in srgb, var(--ly-accent) 45%, var(--ly-border));
}

.ly-offer__imgwrap {
	margin: -4px -4px 14px;
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid var(--ly-border);
	aspect-ratio: 16 / 10;
}

.ly-offer__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ly-offer__h {
	font-family: var(--ly-display);
	font-size: 1.08rem;
	margin: 0 0 8px;
	color: var(--ly-text);
}

.ly-offer__p {
	margin: 0;
	color: var(--ly-muted);
	font-size: 0.95rem;
}

.ly-news__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 22px;
}

.ly-linkall {
	font-weight: 700;
	color: var(--ly-accent);
	text-decoration: none;
}

.ly-linkall:hover {
	text-decoration: underline;
}

.ly-news__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 20px;
}

.ly-news__grid--index {
	list-style: none;
	padding: 0;
	margin: 0;
}

.ly-news__card {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 0;
	border-radius: var(--ly-radius);
	background: var(--ly-surface);
	border: 1px solid var(--ly-border);
	overflow: hidden;
	box-shadow: var(--ly-shadow2);
	transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.ly-news__card:hover {
	transform: translateY(-4px);
	box-shadow: var(--ly-shadow);
}

.ly-news__card > .ly-news__link {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	text-decoration: none;
	color: inherit;
	min-height: 0;
}

.ly-news__card > .ly-news__views {
	margin: 0;
	padding: 0 18px 14px;
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--ly-muted);
}

.ly-news__media {
	aspect-ratio: 16 / 9;
	background: linear-gradient(145deg, var(--ly-surface2), var(--ly-border));
}

.ly-news__media--empty {
	background: repeating-linear-gradient(
		-12deg,
		var(--ly-surface2),
		var(--ly-surface2) 12px,
		color-mix(in srgb, var(--ly-accent) 8%, var(--ly-surface2)) 12px,
		color-mix(in srgb, var(--ly-accent) 8%, var(--ly-surface2)) 24px
	);
}

.ly-news__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ly-news__body {
	flex: 1 1 auto;
	padding: 16px 18px 12px;
}

.ly-news__date {
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--ly-muted);
}

.ly-news__ttl {
	font-family: var(--ly-display);
	font-size: 1.12rem;
	margin: 6px 0 8px;
	line-height: 1.25;
	color: var(--ly-text);
}

.ly-news__ex {
	margin: 0;
	font-size: 0.92rem;
	color: var(--ly-muted);
	line-height: 1.5;
}

.ly-home-team {
	margin-top: clamp(8px, 2vw, 16px);
}

.ly-home-team__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
	gap: 20px;
}

.ly-home-team__card {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 0;
	border-radius: var(--ly-radius);
	background: var(--ly-surface);
	border: 1px solid var(--ly-border);
	overflow: hidden;
	box-shadow: var(--ly-shadow2);
	text-decoration: none;
	color: inherit;
	transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.ly-home-team__card:hover {
	transform: translateY(-4px);
	box-shadow: var(--ly-shadow);
}

.ly-home-team__media {
	aspect-ratio: 8 / 9;
	background: linear-gradient(145deg, var(--ly-surface2), var(--ly-border));
}

.ly-home-team__media--empty {
	background: repeating-linear-gradient(
		-12deg,
		var(--ly-surface2),
		var(--ly-surface2) 12px,
		color-mix(in srgb, var(--ly-accent) 8%, var(--ly-surface2)) 12px,
		color-mix(in srgb, var(--ly-accent) 8%, var(--ly-surface2)) 24px
	);
}

.ly-home-team__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ly-home-team__body {
	padding: 16px 18px 18px;
	flex: 1 1 auto;
}

.ly-home-team__name {
	font-family: var(--ly-display);
	font-size: 1.05rem;
	font-weight: 700;
	margin: 0 0 8px;
	line-height: 1.25;
	color: var(--ly-text);
	letter-spacing: -0.02em;
}

.ly-home-team__role {
	margin: 0;
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--ly-accent);
	line-height: 1.4;
}

.ly-empty {
	grid-column: 1 / -1;
	text-align: center;
	padding: 32px;
	color: var(--ly-muted);
}

.ly-stats__row {
	list-style: none;
	padding: 0;
	margin: 24px 0 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 16px;
}

.ly-stats__cell {
	text-align: center;
	padding: 22px 16px;
	border-radius: var(--ly-radius);
	border: 1px solid var(--ly-border);
	background: var(--ly-surface);
	box-shadow: var(--ly-shadow2);
}

.ly-stats__val {
	display: block;
	font-family: var(--ly-display);
	font-weight: 800;
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	color: var(--ly-accent);
	letter-spacing: -0.03em;
}

.ly-stats__cap {
	display: block;
	margin-top: 6px;
	font-size: 0.88rem;
	color: var(--ly-muted);
	font-weight: 600;
}

.ly-teachers-intro {
	max-width: 62ch;
	color: var(--ly-muted);
	margin-top: 12px;
}

.ly-teachers-page__head {
	margin-bottom: clamp(20px, 3vw, 36px);
}

.ly-teachers-sec {
	margin-top: clamp(4px, 1.5vw, 12px);
}

.ly-teachers-sec--staff {
	margin-top: clamp(32px, 5vw, 48px);
	padding-top: clamp(24px, 4vw, 36px);
	border-top: 1px solid var(--ly-border);
}

.ly-teachers-sec__title {
	font-family: var(--ly-display);
	font-weight: 800;
	font-size: clamp(1.22rem, 2.3vw, 1.52rem);
	letter-spacing: -0.02em;
	margin: 0 0 clamp(16px, 2.5vw, 22px);
	color: var(--ly-text);
}

.ly-teachers-showcase--leadership {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}

@media (min-width: 780px) {
	.ly-teachers-showcase--leadership:has(.ly-teachers-showcase__item--director) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ly-teachers-showcase__item--director {
		grid-column: 1 / -1;
	}

	.ly-teachers-showcase__item--director .ly-teacher-tile {
		display: grid;
		grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
		max-width: 920px;
		margin-inline: auto;
		width: 100%;
		align-items: stretch;
	}

	.ly-teachers-showcase__item--director .ly-teacher-tile__visual {
		aspect-ratio: auto;
		min-height: 260px;
	}

	.ly-teachers-showcase__item--director .ly-teacher-tile__img {
		height: 100%;
		min-height: 260px;
	}

	.ly-teachers-showcase__item--director .ly-teacher-tile:hover {
		transform: none;
		box-shadow: var(--ly-shadow2);
	}
}

.ly-teachers-showcase {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: clamp(20px, 3vw, 28px);
}

.ly-teachers-showcase__item {
	--ly-tile-i: 0;
}

.ly-teacher-tile {
	border-radius: 22px;
	overflow: hidden;
	border: 1px solid color-mix(in srgb, var(--ly-border) 85%, transparent);
	background: var(--ly-surface);
	box-shadow: var(--ly-shadow2);
	transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
}

@media (prefers-reduced-motion: no-preference) {
	.ly-teacher-tile:hover {
		transform: translateY(-6px);
		box-shadow: var(--ly-shadow);
	}
}

.ly-teacher-tile__visual {
	position: relative;
	aspect-ratio: 5 / 6;
	overflow: hidden;
	background: var(--ly-surface2);
	isolation: isolate;
}

.ly-teacher-tile__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
	will-change: transform;
}

.ly-teacher-tile__img--ph {
	min-height: 240px;
	background: linear-gradient(
		145deg,
		color-mix(in srgb, var(--ly-accent) 18%, var(--ly-surface2)),
		color-mix(in srgb, var(--ly-accent2) 14%, var(--ly-surface2))
	);
}

.ly-teacher-tile__blend {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		165deg,
		transparent 35%,
		color-mix(in srgb, var(--ly-text) 55%, transparent) 100%
	);
	mix-blend-mode: multiply;
	opacity: 0.45;
	pointer-events: none;
	transition: opacity 0.5s ease;
}

[data-theme="dark"] .ly-teacher-tile__blend {
	mix-blend-mode: soft-light;
	opacity: 0.55;
}

.ly-teacher-tile__shine {
	position: absolute;
	inset: -40% -60% auto 20%;
	height: 120%;
	background: linear-gradient(
		118deg,
		transparent 40%,
		color-mix(in srgb, #fff 22%, transparent) 50%,
		transparent 60%
	);
	opacity: 0;
	transform: translateX(-20%) rotate(8deg);
	transition: opacity 0.6s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
	pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
	.ly-teacher-tile:hover .ly-teacher-tile__img {
		transform: scale(1.06);
	}

	.ly-teacher-tile:hover .ly-teacher-tile__blend {
		opacity: 0.32;
	}

	.ly-teacher-tile:hover .ly-teacher-tile__shine {
		opacity: 0.9;
		transform: translateX(25%) rotate(8deg);
	}
}

.ly-teacher-tile__body {
	padding: 20px 20px 22px;
}

.ly-teacher-tile__name {
	margin: 0 0 6px;
	font-family: var(--ly-display);
	font-size: 1.2rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--ly-text);
}

.ly-teacher-tile__role {
	margin: 0 0 12px;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--ly-accent);
	line-height: 1.35;
}

.ly-teacher-tile__bio {
	font-size: 0.94rem;
	line-height: 1.55;
	color: var(--ly-muted);
}

.ly-teacher-tile__bio p {
	margin: 0 0 0.65em;
}

.ly-teacher-tile__bio p:last-child {
	margin-bottom: 0;
}

.ly-teacher-tile__cta {
	margin: 14px 0 0;
}

.ly-teacher-tile__link {
	display: inline-flex;
	align-items: center;
	font-weight: 600;
	font-size: 0.9rem;
	text-decoration: none;
	padding: 10px 16px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--ly-accent) 12%, transparent);
	color: var(--ly-accent);
	transition: background 0.2s ease, transform 0.2s ease;
}

.ly-teacher-tile__link:hover {
	background: color-mix(in srgb, var(--ly-accent) 20%, transparent);
	transform: translateY(-1px);
}

.ly-stream__inner {
	max-width: 800px;
}

.ly-richtext {
	color: var(--ly-muted);
}

.ly-fig {
	margin: 1.5em 0;
	border-radius: var(--ly-radius);
	overflow: hidden;
	border: 1px solid var(--ly-border);
	box-shadow: var(--ly-shadow2);
}

.ly-fig__img {
	width: 100%;
	height: auto;
}

.ly-article-hero {
	margin: 0 0 28px;
	border-radius: var(--ly-radius);
	overflow: hidden;
	border: 1px solid var(--ly-border);
	box-shadow: var(--ly-shadow2);
}

.ly-article-hero__img {
	width: 100%;
	height: auto;
}

.ly-news-article__lead {
	margin-top: 12px;
	font-size: clamp(1.05rem, 2vw, 1.2rem);
	line-height: 1.55;
}

.ly-news-article__lead p:last-child {
	margin-bottom: 0;
}

.ly-article-video {
	margin: 0 0 24px;
	max-width: 960px;
}

.ly-article-video .responsive-object {
	margin: 0;
	border-radius: var(--ly-radius);
	overflow: hidden;
	border: 1px solid var(--ly-border);
	box-shadow: var(--ly-shadow2);
}

.ly-article-video iframe {
	display: block;
	width: 100%;
}

.ly-article-attach {
	margin-top: clamp(24px, 4vw, 40px);
	padding: 18px 22px;
	border-radius: 16px;
	border: 1px solid var(--ly-border);
	background: var(--ly-surface2);
	max-width: 640px;
}

.ly-article-attach__label {
	margin: 0 0 8px;
	font-size: 0.85rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--ly-muted);
}

.ly-article-attach__link {
	font-weight: 600;
	color: var(--ly-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ly-article-attach__link:hover {
	text-decoration-thickness: 2px;
}

.ly-news-article__stream {
	display: flex;
	flex-direction: column;
	gap: clamp(16px, 2.5vw, 28px);
}

.ly-richtext--article {
	color: var(--ly-text);
	line-height: 1.65;
}

.ly-richtext--article p {
	margin: 0 0 1em;
}

.ly-richtext--article figure,
.ly-richtext--article .responsive-object,
.ly-richtext--article .richtext-image {
	margin: 1.25em 0;
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid var(--ly-border);
	box-shadow: var(--ly-shadow2);
	background: var(--ly-surface2);
}

.ly-richtext--article img,
.ly-richtext--article .richtext-image img,
.ly-richtext--article .responsive-object img {
	width: 100%;
	height: auto;
	display: block;
	vertical-align: middle;
}

.ly-news-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
	gap: 14px;
	margin: 0.5em 0;
}

.ly-news-gallery__cell {
	margin: 0;
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid var(--ly-border);
	background: var(--ly-surface2);
	box-shadow: var(--ly-shadow2);
}

.ly-news-gallery__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	aspect-ratio: 4 / 3;
	display: block;
}

.ly-news-fig {
	margin: 0;
	border-radius: 18px;
	overflow: hidden;
	border: 1px solid var(--ly-border);
	box-shadow: var(--ly-shadow2);
	background: var(--ly-surface2);
	transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

@media (prefers-reduced-motion: no-preference) {
	.ly-news-fig:hover {
		transform: translateY(-3px);
		box-shadow: var(--ly-shadow);
	}
}

.ly-news-fig__img {
	width: 100%;
	height: auto;
	display: block;
}

.ly-news-article__meta {
	margin: 0 0 8px;
	font-size: 0.92rem;
	color: var(--ly-muted);
}

.lw-pagehead .ly-news__views {
	display: inline;
	font-weight: 600;
	color: var(--ly-accent);
}

.ly-port-section {
	margin-bottom: clamp(36px, 5vw, 56px);
}

.ly-port-section--elon {
	padding-top: 8px;
	border-top: 1px solid var(--ly-border);
}

.ly-port-section__title {
	font-family: var(--ly-display);
	font-weight: 800;
	font-size: clamp(1.35rem, 2.5vw, 1.75rem);
	margin: 0 0 18px;
	letter-spacing: -0.02em;
	color: var(--ly-text);
}

.ly-port-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
}

.ly-port-card {
	padding: 18px;
	border-radius: var(--ly-radius);
	border: 1px solid var(--ly-border);
	background: var(--ly-surface);
	box-shadow: var(--ly-shadow2);
	position: relative;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ly-port-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--ly-shadow);
}

.ly-port-card--elon {
	border-color: color-mix(in srgb, var(--ly-accent2) 35%, var(--ly-border));
}

.ly-port-card__media {
	border-radius: 14px;
	overflow: hidden;
	margin-bottom: 12px;
	border: 1px solid var(--ly-border);
	aspect-ratio: 3 / 2;
	background: var(--ly-surface2);
}

.ly-port-card__media--empty {
	background: repeating-linear-gradient(
		-12deg,
		var(--ly-surface2),
		var(--ly-surface2) 10px,
		color-mix(in srgb, var(--ly-accent2) 10%, var(--ly-surface2)) 10px,
		color-mix(in srgb, var(--ly-accent2) 10%, var(--ly-surface2)) 20px
	);
}

.ly-port-card--aslink {
	display: block;
	text-decoration: none;
	color: inherit;
	cursor: pointer;
}

.ly-port-card--aslink .ly-port-card__h {
	color: var(--ly-text);
}

.ly-port-card__go {
	display: inline-flex;
	pointer-events: none;
}

.ly-port-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ly-port-card__badge {
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 4px 10px;
	border-radius: 999px;
	margin-bottom: 8px;
}

.ly-port-card__badge--portfolio {
	background: color-mix(in srgb, var(--ly-accent) 12%, transparent);
	color: var(--ly-accent);
}

.ly-port-card__badge--elon {
	background: color-mix(in srgb, var(--ly-accent2) 15%, transparent);
	color: var(--ly-text);
}

.ly-port-card__h {
	font-family: var(--ly-display);
	font-size: 1.12rem;
	margin: 0 0 8px;
	color: var(--ly-text);
}

.ly-port-card__desc {
	font-size: 0.95rem;
	color: var(--ly-muted);
	max-height: 6.5em;
	overflow: hidden;
}

.ly-port-card--elon .ly-port-card__desc {
	max-height: 5.5em;
}

.ly-port-card__cta {
	margin: 14px 0 0;
}

.ly-search-form {
	margin-bottom: 28px;
	max-width: 640px;
}

.ly-search-form__label {
	display: block;
	font-weight: 600;
	margin-bottom: 8px;
	color: var(--ly-text);
}

.ly-search-form__row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: stretch;
}

.ly-search-form__input {
	flex: 1 1 220px;
	min-height: 48px;
	padding: 0 14px;
	border-radius: 12px;
	border: 1px solid var(--ly-border);
	background: var(--ly-surface);
	font-size: 1rem;
}

.ly-search-results {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 14px;
}

.ly-search-results__item {
	padding: 16px 18px;
	border-radius: var(--ly-radius);
	border: 1px solid var(--ly-border);
	background: var(--ly-surface);
	box-shadow: var(--ly-shadow2);
}

.ly-search-results__h {
	font-family: var(--ly-display);
	font-size: 1.1rem;
	margin: 0 0 6px;
}

.ly-search-results__ex {
	margin: 0;
	color: var(--ly-muted);
	font-size: 0.95rem;
}

.ly-search-pager {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 24px;
}
