:root {
	--site-max-width: 72rem;
	--site-padding: 1rem;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	line-height: 1.5;
	color: #111;
	background: #fff;
}

.site-shell {
	width: min(100% - (var(--site-padding) * 2), var(--site-max-width));
	margin-inline: auto;
}

.site-shell--app {
	width: 100%;
	max-width: none;
	margin-inline: 0;
}

.site-shell--workspace-route {
	width: 100%;
	max-width: none;
	margin-inline: 0;
}

.site-shell--minimal {
	width: min(100% - (var(--site-padding) * 2), var(--site-max-width));
}

.site-header,
.site-footer {
	border-bottom: 1px solid #e5e7eb;
	padding: 1rem 0;
}

.site-footer {
	border-top: 1px solid #e5e7eb;
	border-bottom: 0;
	margin-top: 2rem;
}

.site-content {
	padding: 1.5rem 0;
}

/*
 * Platform full-width layout contract.
 * Platform routes must remain edge-to-edge.
 */
.insites-platform-owned-route .site-content {
	padding: 0;
}

.insites-platform-owned-route .site-shell,
.insites-platform-owned-route .site-shell--app,
.insites-platform-owned-route .site-shell--workspace-route,
.insites-platform-owned-route .insites-platform-fullwidth-root,
.insites-platform-owned-route .insites-platform-shell,
.insites-platform-owned-route .insites-platform-shell__inner,
.insites-platform-owned-route .insites-platform-shell__content {
	width: 100%;
	max-width: none;
	margin-inline: 0;
}

.insites-platform-owned-route .site-shell--workspace-route,
.insites-platform-owned-route .insites-platform-fullwidth-root {
	padding-inline: 0;
}

.insites-platform-owned-route .insites-platform-fullwidth-root {
	min-height: 100vh;
}

.insites-shell-variant-minimal {
	background: radial-gradient(circle at top, #f3f4f6 0%, #eef2ff 45%, #e5e7eb 100%);
	min-height: 100vh;
}

.site-title {
	margin: 0;
	font-weight: 600;
}

.site-title a {
	color: inherit;
	text-decoration: none;
}

.insites-home-portal {
	min-height: clamp(460px, 76vh, 760px);
	display: grid;
	place-items: center;
	padding: 2.5rem 1rem;
}

.insites-home-portal__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2rem;
	width: min(560px, 100% - 2rem);
	padding: 3rem 2.5rem;
	border-radius: 20px;
	border: 1px solid #dbe1ea;
	background: rgba(255, 255, 255, 0.9);
	box-shadow: 0 20px 50px rgba(15, 23, 42, 0.1);
}

.insites-home-portal__brand .custom-logo {
	max-height: 88px;
	width: auto;
}

.insites-home-portal__brand-text {
	font-size: clamp(2rem, 5vw, 3rem);
	font-weight: 700;
	letter-spacing: 0.04em;
}

.insites-home-portal__actions {
	display: flex;
	gap: 0.85rem;
	justify-content: center;
	width: 100%;
}

.insites-home-portal__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 170px;
	padding: 0.8rem 1.45rem;
	border-radius: 12px;
	text-decoration: none;
	font-weight: 700;
	border: 1px solid #1f2937;
	color: #1f2937;
	background: #fff;
	transition: background-color .16s ease, color .16s ease, transform .12s ease;
}

.insites-home-portal__button:hover {
	background: #111827;
	color: #fff;
	transform: translateY(-1px);
}

.insites-home-portal__button--primary {
	background: #111827;
	color: #fff;
}

.admin-bar .site-header {
	position: sticky;
	top: 32px;
	background: #fff;
	z-index: 100;
}

@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}

	.site-shell--app {
		width: 100%;
	}
}

@media (max-width: 640px) {
	.insites-home-portal__inner {
		padding: 2rem 1.1rem;
		gap: 1.4rem;
	}

	.insites-home-portal__actions {
		flex-direction: column;
	}

	.insites-home-portal__button {
		width: 100%;
	}
}
