:root {
	--lab-bg: #f4f6fb;
	--lab-bg-soft: #eef1f7;
	--lab-card: #ffffff;
	--lab-text: #111827;
	--lab-muted: #6b7280;
	--lab-border: #e4e8f0;
	--lab-primary: #0f4c81;
	--lab-primary-strong: #0b3c66;
	--lab-accent: #1f7dd4;
	--lab-dark: #0f172a;
	--lab-radius: 16px;
	--lab-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

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

body {
	margin: 0;
	font-family: "Segoe UI", "Noto Sans", "Helvetica Neue", sans-serif;
	color: var(--lab-text);
	background: var(--lab-bg);
	line-height: 1.6;
}

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

a {
	color: var(--lab-accent);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

.lab-container {
	width: min(1220px, calc(100% - 2rem));
	margin: 0 auto;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.97);
	border-bottom: 1px solid var(--lab-border);
	backdrop-filter: blur(8px);
}

.site-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.2rem;
	min-height: 68px;
}

.site-brand {
	font-weight: 700;
	color: var(--lab-text);
	font-size: 1.05rem;
}

.site-brand:hover {
	text-decoration: none;
}

.site-nav-wrap {
	margin-left: auto;
}

.site-nav,
.site-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 1rem;
}

.site-nav a {
	font-size: 0.95rem;
	color: #1f2a44;
	padding: 0.35rem 0.55rem;
	border-radius: 10px;
}

.site-nav a:hover {
	background: #eaf0f9;
	text-decoration: none;
}

.site-main {
	min-height: calc(100vh - 140px);
}

.site-footer {
	background: #0f172a;
	color: #a5b4d0;
	border-top: 1px solid #1f2937;
}

.site-footer p {
	margin: 0;
	padding: 1.1rem 0;
	text-align: center;
	font-size: 0.9rem;
}

.labs-home-hero {
	padding: 3.2rem 0 2.2rem;
	background:
		radial-gradient(circle at 85% 5%, rgba(31, 125, 212, 0.25), transparent 50%),
		linear-gradient(165deg, #e7eef9 0%, #f7faff 60%, #f2f6fd 100%);
	border-bottom: 1px solid var(--lab-border);
}

.labs-home-hero h1 {
	margin: 0;
	font-size: clamp(1.7rem, 2.8vw, 2.5rem);
	letter-spacing: -0.02em;
}

.labs-home-hero p {
	margin: 0.7rem 0 0;
	max-width: 64ch;
	color: #30405f;
}

.labs-home-hero-compact {
	padding-top: 2.4rem;
	padding-bottom: 1.8rem;
}

.labs-listing {
	padding: 2rem 0 3.2rem;
}

.labs-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
	gap: 1.15rem;
}

.labs-empty {
	background: #fff;
	padding: 1.5rem;
	border-radius: var(--lab-radius);
	border: 1px solid var(--lab-border);
}

.lab-card {
	background: var(--lab-card);
	border: 1px solid var(--lab-border);
	border-radius: var(--lab-radius);
	overflow: hidden;
	box-shadow: var(--lab-shadow);
	display: flex;
	flex-direction: column;
}

.lab-card-image-link {
	display: block;
	position: relative;
}

.lab-card-image {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	background: #d8e3f4;
}

.lab-card-image-placeholder {
	background: linear-gradient(145deg, #c7d6f0, #dce7f7);
}

.lab-card-body {
	padding: 1rem 1rem 1.15rem;
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	height: 100%;
}

.lab-card-title {
	margin: 0;
	font-size: 1.12rem;
	line-height: 1.35;
}

.lab-card-title a {
	color: var(--lab-text);
}

.lab-card-subtitle {
	margin: 0;
	color: #294367;
	font-size: 0.95rem;
}

.lab-card-excerpt {
	margin: 0;
	color: var(--lab-muted);
	font-size: 0.9rem;
}

.lab-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	padding: 0.62rem 1.1rem;
	font-size: 0.9rem;
	font-weight: 600;
	border: 1px solid transparent;
	cursor: pointer;
	text-decoration: none;
	transition: all 0.2s ease;
}

.lab-button:hover {
	text-decoration: none;
}

.lab-button-primary {
	background: var(--lab-primary);
	color: #fff;
}

.lab-button-primary:hover {
	background: var(--lab-primary-strong);
}

.lab-button-light {
	background: #fff;
	color: #0f2d4f;
}

.lab-button-light:hover {
	background: #eef5ff;
}

.lab-button-outline {
	border-color: #ffffff;
	color: #ffffff;
	background: rgba(255, 255, 255, 0.08);
}

.lab-button-outline:hover {
	background: rgba(255, 255, 255, 0.18);
}

.lab-page {
	background: #fff;
}

.lab-hero {
	position: relative;
	min-height: 430px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.lab-hero-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
}

.lab-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(120deg, rgba(5, 13, 28, 0.72), rgba(8, 39, 76, 0.65));
}

.lab-hero-content {
	position: relative;
	z-index: 2;
	padding: 2rem 0;
	text-align: center;
	color: #fff;
}

.lab-hero-title {
	margin: 0;
	font-size: clamp(1.95rem, 3.6vw, 3.25rem);
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.lab-hero-subtitle {
	margin: 1rem auto 0;
	max-width: 54ch;
	color: rgba(255, 255, 255, 0.92);
	font-size: clamp(1rem, 1.7vw, 1.2rem);
}

.lab-hero-actions {
	margin-top: 1.4rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem;
	justify-content: center;
}

.lab-section {
	padding: 2.9rem 0;
}

.lab-section-alt {
	background: var(--lab-bg-soft);
}

.lab-section-dark {
	background: linear-gradient(145deg, #0d2d55, #0b2240);
	color: #fff;
}

.lab-section-heading {
	text-align: center;
	margin-bottom: 1.4rem;
}

.lab-section-heading h2 {
	margin: 0;
	font-size: clamp(1.45rem, 2.5vw, 2rem);
	line-height: 1.22;
}

.lab-section-heading p {
	margin: 0.6rem auto 0;
	max-width: 62ch;
	color: inherit;
	opacity: 0.85;
}

.lab-section-heading-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	text-align: left;
}

.lab-three-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
}

.lab-two-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.lab-stack {
	display: grid;
	gap: 1rem;
}

.lab-info-card {
	background: #fff;
	border: 1px solid var(--lab-border);
	border-radius: var(--lab-radius);
	padding: 1rem;
	box-shadow: 0 8px 26px rgba(15, 23, 42, 0.06);
}

.lab-section-dark .lab-info-card {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.2);
	box-shadow: none;
}

.lab-info-card h2,
.lab-info-card h3 {
	margin: 0 0 0.75rem;
	font-size: 1.08rem;
}

.lab-head-profile {
	display: flex;
	align-items: flex-start;
	gap: 0.85rem;
	margin-bottom: 0.7rem;
}

.lab-head-image {
	width: 92px;
	height: 92px;
	border-radius: 999px;
	object-fit: cover;
	border: 3px solid #f0f3f8;
	background: #dbe5f7;
	flex-shrink: 0;
}

.lab-head-position {
	font-size: 0.88rem;
	margin: 0.2rem 0;
}

.lab-muted {
	color: var(--lab-muted);
}

.lab-contact-line {
	margin: 0.2rem 0;
	font-size: 0.9rem;
}

.lab-contact-line a {
	color: inherit;
}

.lab-contact-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 0.72rem;
}

.lab-contact-list li {
	padding: 0.6rem 0.7rem;
	background: #f6f8fc;
	border: 1px solid var(--lab-border);
	border-radius: 10px;
	display: grid;
	gap: 0.22rem;
}

.lab-contact-list span {
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #466083;
}

.lab-contact-list a,
.lab-contact-list strong {
	font-size: 0.92rem;
	color: #111827;
}

.lab-map {
	height: 190px;
	border-radius: 12px;
	overflow: hidden;
	background: #dde6f4;
	margin-top: 0.8rem;
}

.lab-bullet-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.55rem;
}

.lab-bullet-list li {
	position: relative;
	padding-left: 1rem;
}

.lab-bullet-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.62em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #3b82f6;
}

.lab-capabilities-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.8rem;
	margin-bottom: 1rem;
}

.lab-capability-card {
	background: #f7f9fd;
	border: 1px solid var(--lab-border);
	border-radius: 12px;
	padding: 0.9rem;
}

.lab-capability-card h3 {
	margin: 0;
	font-size: 0.96rem;
}

.lab-capability-card p {
	margin: 0.45rem 0 0;
	font-size: 0.84rem;
	color: #536481;
}

.lab-table-wrap {
	background: #fff;
	border: 1px solid var(--lab-border);
	border-radius: 12px;
	overflow-x: auto;
}

.lab-table-wrap-light {
	border-color: rgba(255, 255, 255, 0.3);
}

.lab-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.88rem;
}

.lab-table th,
.lab-table td {
	padding: 0.68rem;
	border-bottom: 1px solid var(--lab-border);
	text-align: left;
	vertical-align: top;
}

.lab-table thead th {
	background: #f5f7fb;
	font-size: 0.76rem;
	text-transform: uppercase;
	color: #3f4d66;
	letter-spacing: 0.05em;
}

.lab-section-dark .lab-table thead th {
	background: rgba(255, 255, 255, 0.9);
	color: #12294c;
}

.lab-section-dark .lab-table td {
	background: #fff;
	color: #172341;
}

.lab-cta-card {
	margin-top: 1rem;
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 14px;
	padding: 1rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.lab-cta-card h3 {
	margin: 0;
	font-size: 1.08rem;
}

.lab-cta-card p {
	margin: 0.25rem 0 0;
	opacity: 0.88;
}

.lab-team-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.9rem;
}

.lab-team-card {
	background: #fff;
	border: 1px solid var(--lab-border);
	border-radius: 14px;
	overflow: hidden;
}

.lab-team-photo {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	background: #d9e4f8;
}

.lab-team-photo-placeholder {
	background: linear-gradient(145deg, #d4deef, #e3e9f5);
}

.lab-team-content {
	padding: 0.82rem;
}

.lab-team-content h3 {
	margin: 0;
	font-size: 0.96rem;
}

.lab-team-role {
	margin: 0.18rem 0 0;
	font-size: 0.82rem;
	color: #1f4f86;
	font-weight: 600;
}

.lab-team-spec {
	margin: 0.18rem 0 0.5rem;
	font-size: 0.74rem;
	text-transform: uppercase;
	color: #6b7280;
}

.lab-team-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.lab-team-links a {
	font-size: 0.78rem;
}

.lab-stats-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.7rem;
	margin-bottom: 1rem;
}

.lab-stat-item {
	background: #f7f9fd;
	border: 1px solid var(--lab-border);
	border-radius: 12px;
	padding: 0.8rem 0.7rem;
	text-align: center;
}

.lab-stat-value {
	display: block;
	font-size: 1.4rem;
	font-weight: 700;
	color: #175ba3;
	line-height: 1.1;
}

.lab-stat-label {
	display: block;
	margin-top: 0.2rem;
	font-size: 0.72rem;
	color: #667085;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.lab-project-list {
	display: grid;
	gap: 0.62rem;
}

.lab-project-item {
	background: #f8fafe;
	border-left: 3px solid #2a7be3;
	padding: 0.62rem 0.72rem;
	border-radius: 10px;
}

.lab-project-item strong {
	display: block;
	font-size: 0.9rem;
}

.lab-project-item span {
	display: block;
	margin-top: 0.18rem;
	font-size: 0.78rem;
	color: #61718b;
}

.lab-number-list {
	margin: 0;
	padding: 0 0 0 1.2rem;
	display: grid;
	gap: 0.48rem;
}

.lab-number-list li {
	font-size: 0.88rem;
}

.lab-gallery-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.55rem;
}

.lab-gallery-item {
	margin: 0;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid var(--lab-border);
}

.lab-gallery-item img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.lab-documents-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.8rem;
}

.lab-document-card {
	background: #fff;
	border: 1px solid var(--lab-border);
	border-radius: 12px;
	padding: 0.82rem;
}

.lab-document-card h3 {
	margin: 0;
	font-size: 0.95rem;
}

.lab-document-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-top: 0.45rem;
	font-size: 0.74rem;
	color: #64748b;
}

.lab-document-meta span {
	background: #f1f5f9;
	border-radius: 999px;
	padding: 0.16rem 0.48rem;
}

.lab-document-link {
	display: inline-flex;
	margin-top: 0.62rem;
	font-size: 0.82rem;
	font-weight: 600;
}

.lab-document-link-disabled {
	color: #9aa5b5;
}

.lab-news-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.82rem;
}

.lab-news-card {
	background: #fff;
	border: 1px solid var(--lab-border);
	border-radius: 12px;
	padding: 0.85rem;
}

.lab-news-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	font-size: 0.74rem;
	color: #64748b;
	margin-bottom: 0.5rem;
}

.lab-news-meta span {
	background: #e9f1fe;
	color: #174f8f;
	border-radius: 999px;
	padding: 0.14rem 0.46rem;
	font-weight: 600;
}

.lab-news-card h3 {
	margin: 0;
	font-size: 0.98rem;
	line-height: 1.34;
}

.lab-news-card p {
	margin: 0.5rem 0 0;
	font-size: 0.86rem;
	color: #5f6f87;
}

.lab-news-card a {
	display: inline-flex;
	margin-top: 0.62rem;
	font-size: 0.82rem;
	font-weight: 600;
}

.lab-feedback-card {
	max-width: 820px;
	margin: 0 auto;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.32);
	border-radius: 16px;
	padding: 1.1rem;
}

.lab-feedback-form {
	display: grid;
	gap: 0.72rem;
}

.lab-feedback-form label {
	display: block;
	font-size: 0.8rem;
	margin-bottom: 0.25rem;
	color: rgba(255, 255, 255, 0.9);
}

.lab-feedback-form input,
.lab-feedback-form textarea {
	width: 100%;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.32);
	border-radius: 10px;
	padding: 0.55rem 0.7rem;
	font-size: 0.9rem;
}

.lab-feedback-form textarea {
	resize: vertical;
	min-height: 110px;
}

.lab-feedback-form input::placeholder,
.lab-feedback-form textarea::placeholder {
	color: rgba(255, 255, 255, 0.64);
}

.lab-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.72rem;
}

.lab-feedback-notice {
	border-radius: 10px;
	padding: 0.58rem 0.72rem;
	margin: 0 0 0.7rem;
	font-size: 0.88rem;
}

.lab-feedback-success {
	background: rgba(16, 185, 129, 0.16);
	border: 1px solid rgba(16, 185, 129, 0.42);
}

.lab-feedback-error {
	background: rgba(248, 113, 113, 0.14);
	border: 1px solid rgba(248, 113, 113, 0.46);
}

.lab-additional-content {
	background: #fff;
	border: 1px solid var(--lab-border);
	border-radius: 14px;
	padding: 1rem;
}

.lab-page-footer {
	background: #0f172a;
	border-top: 1px solid #1f2937;
	color: #9baacf;
}

.lab-page-footer p {
	margin: 0;
	text-align: center;
	padding: 1.1rem 0;
}

.generic-post-list {
	display: grid;
	gap: 0.8rem;
}

.generic-post-item {
	background: #fff;
	border: 1px solid var(--lab-border);
	border-radius: 12px;
	padding: 1rem;
}

.generic-post-title {
	margin: 0;
	font-size: 1.1rem;
}

.generic-post-excerpt {
	margin-top: 0.5rem;
	color: #5f6f87;
}

.page-numbers {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	padding: 0;
	margin: 1.3rem 0 0;
}

.page-numbers li {
	margin: 0;
}

.page-numbers a,
.page-numbers span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	padding: 0.35rem 0.55rem;
	border: 1px solid var(--lab-border);
	border-radius: 8px;
	background: #fff;
	font-size: 0.86rem;
}

.page-numbers .current {
	background: var(--lab-primary);
	border-color: var(--lab-primary);
	color: #fff;
}

@media (max-width: 1080px) {
	.lab-three-grid {
		grid-template-columns: 1fr;
	}

	.lab-capabilities-grid,
	.lab-team-grid,
	.lab-documents-grid,
	.lab-news-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 820px) {
	.site-header-inner {
		flex-wrap: wrap;
		padding: 0.5rem 0;
	}

	.site-nav,
	.site-nav ul {
		flex-wrap: wrap;
		gap: 0.5rem;
	}

	.lab-hero {
		min-height: 360px;
	}

	.lab-two-grid,
	.lab-form-grid,
	.lab-stats-grid,
	.lab-gallery-grid {
		grid-template-columns: 1fr;
	}

	.lab-cta-card {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (max-width: 640px) {
	.lab-container {
		width: calc(100% - 1.25rem);
	}

	.labs-grid,
	.lab-capabilities-grid,
	.lab-team-grid,
	.lab-documents-grid,
	.lab-news-grid {
		grid-template-columns: 1fr;
	}

	.lab-table {
		min-width: 620px;
	}

	.lab-section {
		padding: 2.1rem 0;
	}
}

