/* Lishka Gate — brand layer over Twenty Twenty-Five and lishka-agent-gate. */

:root {
	--lg-dark: #1b2b50;
	--lg-primary: #1043ff;
	--lg-accent: #fcac0b;
	--lg-surface: #f3f3f5;
	--lg-text: #212121;
	--lg-muted: #5d6679;
	--lg-line: #dde1e8;
}

/* ---------- page frame ---------- */

body {
	min-height: 100vh;
	margin: 0;
	background:
		radial-gradient(1200px 520px at 50% -180px, rgba(16, 67, 255, .09), transparent 70%),
		var(--lg-surface);
}

.wp-site-blocks {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	padding: 0 16px;
}

.lg-top {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	padding: 48px 0 28px;
}

.lg-top p { margin: 0; }

/* Signed out, the logout shortcode leaves an empty paragraph that would take a flex gap. */
.lg-top > p:not(:has(*)) { display: none; }

.lg-logo {
	display: block;
	width: 220px;
	max-width: 60vw;
	height: auto;
}

.lg-main {
	flex: 1;
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	padding-bottom: 56px;
}

.lg-content > * { margin-block: 0; }

.lg-page-title {
	margin: 8px 0 28px;
	font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem);
	text-align: center;
}

/* When the page is only the login card, the card carries its own title. */
.lg-main:has(.lag-login) .lg-page-title { display: none; }

/* Signed in: logo to the start, logout to the end. */
.lg-top:has(.lag-logout) {
	justify-content: space-between;
	padding: 24px 0;
	margin-bottom: 20px;
	border-bottom: 1px solid var(--lg-line);
}

.lg-top:has(.lag-logout) .lg-logo { width: 150px; }

.lg-top .lag-logout {
	width: auto;
	margin: 0;
	padding: 9px 22px;
}

/* ---------- plugin components, in the client's brand ---------- */

.lag-card,
.lag-library,
.lag-inline-viewer,
.lg-top {
	--lag-brand: var(--lg-primary);
	--lag-ink: var(--lg-dark);
	--lag-muted: var(--lg-muted);
	--lag-line: var(--lg-line);
	--lag-radius: 20px;
	font-family: inherit;
}

.lag-card {
	max-width: 440px;
	padding: 40px 36px 32px;
	border: 0;
	box-shadow: 0 18px 50px rgba(27, 43, 80, .10), 0 2px 6px rgba(27, 43, 80, .05);
	text-align: center;
}

.lag-title {
	margin: 0 0 10px;
	font-size: 1.7rem;
	font-weight: 700;
	line-height: 1.25;
	color: var(--lg-dark);
}

.lag-intro {
	margin: 0 0 26px;
	font-size: 1rem;
}

.lag-label {
	margin-bottom: 8px;
	text-align: start;
	font-weight: 700;
	font-size: .95rem;
}

.lag-input {
	padding: 14px 20px;
	border: 1px solid var(--lg-line);
	border-radius: 999px;
	background: #fff;
	font-family: inherit;
	font-size: 1.15rem;
	letter-spacing: .12em;
}

.lag-input::placeholder { color: #b4bac6; }

.lag-btn {
	margin-top: 16px;
	padding: 14px 22px;
	border-radius: 999px;
	font-family: inherit;
	font-size: 1.05rem;
	font-weight: 700;
}

.lag-btn:hover:not(:disabled) {
	filter: none;
	background: var(--lg-dark);
	border-color: var(--lg-dark);
}

.lag-btn-ghost:hover:not(:disabled) {
	background: var(--lg-primary);
	border-color: var(--lg-primary);
	color: #fff;
}

.lag-btn:focus-visible,
.lag-link:focus-visible,
.lag-book-cover:focus-visible {
	outline: 3px solid var(--lg-accent);
	outline-offset: 3px;
}

.lag-link { font-family: inherit; }

.lag-otp-hint { font-size: .88rem; }

/* ---------- library ---------- */

.lag-book-cover {
	border: 0;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 6px 20px rgba(27, 43, 80, .08);
}

.lag-book-open {
	background: linear-gradient(to top, rgba(27, 43, 80, .92), rgba(27, 43, 80, 0));
}

.lag-book-title {
	font-size: 1.1rem;
	font-weight: 700;
}

.lag-book-fallback { color: var(--lg-primary); opacity: .35; }

/* ---------- small screens ---------- */

@media (max-width: 560px) {
	.lg-top { padding: 32px 0 20px; }
	.lg-logo { width: 180px; }
	.lg-top:has(.lag-logout) .lg-logo { width: 120px; }
	.lag-card { padding: 30px 22px 24px; }
	.lag-title { font-size: 1.45rem; }
}
