/*
 * Observe Tech Lab v1.0.0 — Telemetry & Benchmarking Design System
 */

@font-face {
	font-family: 'Inter';
	src: url('../fonts/Inter-VariableFont_slnt,wght.woff2') format('woff2');
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Fira Code';
	src: url('../fonts/FiraCode-VariableFont_wght.woff2') format('woff2');
	font-weight: 300 700;
	font-style: normal;
	font-display: swap;
}

:root {
	--ot-primary: #09090B;
	--ot-accent: #0EA5E9;
	--ot-bg: #F1F5F9;
	--ot-surface: #FFFFFF;
	--ot-ink: #0F172A;
	--ot-muted: #475569;
	--ot-border: #CBD5E1;
	--ot-border-soft: #E2E8F0;
	--ot-dark-elevated: #111318;
	--ot-dark-border: rgba(255, 255, 255, 0.12);
	--ot-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--ot-mono: 'Fira Code', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	--ot-max: 1240px;
}

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

[hidden],
.elementor-location-popup,
.elementor-popup-modal,
.dialog-widget {
	display: none !important;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

html, body {
	overflow-x: clip;
	max-width: 100%;
}

body {
	margin: 0;
	background: var(--ot-bg);
	color: var(--ot-ink);
	font-family: var(--ot-sans);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

img, video, iframe, figure {
	max-width: 100%;
	height: auto;
}

img {
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
}

h1, h2, h3, h4, p, li, td, th, code {
	overflow-wrap: break-word;
	word-wrap: break-word;
}

.ot-wrap {
	width: 100%;
	max-width: var(--ot-max);
	margin: 0 auto;
	padding: 0 24px;
}

.ot-hp {
	position: absolute;
	left: -9999px;
}

/* Safe Grid & Flex Children */
.ot-hero-bento > *,
.ot-bench-grid > *,
.ot-archive-grid > *,
.ot-related-grid > *,
.ot-modules-dir > *,
.ot-rig-grid > *,
.ot-contact-console > *,
.ot-footer-grid > *,
.ot-form-row-2 > *,
.ot-spec-bar > *,
.ot-arch-head-grid > *,
.ot-nav-left,
.ot-nav-center,
.ot-nav-actions,
.ot-card-body {
	min-width: 0;
}

/* Fixed Top Electric Cyan Reading Progress Bar */
.ot-progress-bar {
	position: fixed;
	top: 0;
	left: 0;
	width: 0%;
	height: 3px;
	background: var(--ot-accent);
	box-shadow: 0 0 10px rgba(14, 165, 233, 0.65);
	z-index: 9500;
	pointer-events: none;
	transition: width 80ms linear;
}
body.admin-bar .ot-progress-bar {
	top: 32px;
}

/* Header & Technical Lab Sticky Navbar */
.ot-header {
	position: sticky;
	top: 0;
	z-index: 900;
	background: var(--ot-primary);
	color: #F8FAFC;
	border-bottom: 1px solid var(--ot-dark-border);
}
body.admin-bar .ot-header {
	top: 32px;
}

.ot-navbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 62px;
}

.ot-nav-left {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}

.ot-brand {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
}

.ot-brand-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #FFFFFF;
	color: #09090B;
	padding: 5px 11px;
	border-radius: 6px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.ot-brand-img {
	width: auto;
	height: 28px;
	max-width: 165px;
	object-fit: contain;
}

.ot-brand-word {
	font-family: var(--ot-sans);
	font-size: 15px;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: #09090B;
	white-space: nowrap;
}

.ot-status-pill {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 4px 10px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 999px;
	font-family: var(--ot-mono);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: #E2E8F0;
	white-space: nowrap;
}

.ot-status-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #10B981;
	box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.7);
	animation: ot-pulse 2s infinite;
	flex-shrink: 0;
}

@keyframes ot-pulse {
	0% {
		background: #10B981;
		box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.65);
	}
	50% {
		background: var(--ot-accent);
		box-shadow: 0 0 0 5px rgba(14, 165, 233, 0);
	}
	100% {
		background: #10B981;
		box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
	}
}

.ot-nav-center {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	overflow-x: auto;
	white-space: nowrap;
	scrollbar-width: none;
	-ms-overflow-style: none;
}
.ot-nav-center::-webkit-scrollbar {
	display: none;
}

.ot-nav-center a {
	font-size: 13.5px;
	font-weight: 600;
	color: #CBD5E1;
	padding: 6px 2px;
	border-bottom: 2px solid transparent;
	white-space: nowrap;
	flex-shrink: 0;
	transition: color 140ms ease, border-color 140ms ease;
}

.ot-nav-center a:hover,
.ot-nav-center a[aria-current="page"] {
	color: #FFFFFF;
	border-bottom-color: var(--ot-accent);
}

.ot-nav-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

.ot-cmd-btn,
.ot-modules-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 36px;
	padding: 6px 12px;
	border-radius: 6px;
	font-family: var(--ot-mono);
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	transition: border-color 140ms ease, background 140ms ease;
}

.ot-cmd-btn {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.16);
	color: #E2E8F0;
}
.ot-cmd-btn:hover {
	border-color: var(--ot-accent);
	color: #FFFFFF;
}

.ot-kbd {
	background: rgba(9, 9, 11, 0.8);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 4px;
	padding: 1px 5px;
	font-family: var(--ot-mono);
	font-size: 10px;
	color: var(--ot-accent);
}

.ot-modules-btn {
	background: var(--ot-accent);
	border: 1px solid var(--ot-accent);
	color: #09090B;
}
.ot-modules-btn:hover {
	background: #38BDF8;
	border-color: #38BDF8;
}

/* ⌘K Search Modal */
.ot-search-modal {
	position: fixed;
	inset: 0;
	z-index: 9300;
	background: rgba(9, 9, 11, 0.76);
	backdrop-filter: blur(4px);
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 84px 16px 24px;
}

.ot-search-dialog {
	width: min(680px, 100%);
	background: var(--ot-primary);
	color: #F8FAFC;
	border: 1px solid rgba(14, 165, 233, 0.45);
	border-top: 3px solid var(--ot-accent);
	border-radius: 8px;
	padding: 20px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.ot-search-dialog-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
}

.ot-mono-tag {
	font-family: var(--ot-mono);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: var(--ot-accent);
	text-transform: uppercase;
}

.ot-close-btn {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.16);
	color: #F8FAFC;
	width: 34px;
	height: 34px;
	border-radius: 6px;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.ot-close-btn:hover {
	border-color: var(--ot-accent);
	color: var(--ot-accent);
}

.ot-modal-search-form {
	display: flex;
	gap: 10px;
}

.ot-modal-search-form input {
	flex: 1;
	min-width: 0;
	padding: 12px 14px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 6px;
	background: var(--ot-dark-elevated);
	color: #FFFFFF;
	font-family: var(--ot-mono);
	font-size: 14px;
}
.ot-modal-search-form input:focus {
	outline: 2px solid var(--ot-accent);
	outline-offset: 1px;
}

.ot-modal-quick {
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid var(--ot-dark-border);
}

.ot-modal-quick-label {
	display: block;
	font-family: var(--ot-mono);
	font-size: 11px;
	color: #94A3B8;
	margin-bottom: 8px;
}

.ot-modal-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ot-chip-dark {
	display: inline-block;
	padding: 5px 10px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 4px;
	font-family: var(--ot-mono);
	font-size: 12px;
	color: #E2E8F0;
}
.ot-chip-dark:hover {
	border-color: var(--ot-accent);
	color: var(--ot-accent);
}

/* Modules Slide-Over Drawer */
.ot-drawer {
	position: fixed;
	inset: 0;
	z-index: 9200;
	background: rgba(9, 9, 11, 0.68);
	display: flex;
	justify-content: flex-end;
}
body.admin-bar .ot-drawer {
	top: 32px;
}

.ot-drawer-sheet {
	width: min(400px, 92vw);
	height: 100%;
	background: var(--ot-primary);
	color: #F8FAFC;
	padding: 24px;
	overflow-y: auto;
	border-left: 3px solid var(--ot-accent);
	scrollbar-width: none;
}
.ot-drawer-sheet::-webkit-scrollbar {
	display: none;
}

.ot-drawer-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--ot-dark-border);
	margin-bottom: 16px;
}

.ot-drawer-pages {
	list-style: none;
	margin: 0 0 22px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ot-drawer-pages a {
	display: block;
	padding: 10px 12px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid var(--ot-dark-border);
	border-radius: 6px;
	font-family: var(--ot-mono);
	font-size: 12.5px;
	font-weight: 600;
}
.ot-drawer-pages a:hover {
	border-color: var(--ot-accent);
	color: var(--ot-accent);
}

.ot-drawer-subhead {
	font-family: var(--ot-mono);
	font-size: 11px;
	letter-spacing: 0.08em;
	color: #94A3B8;
	margin: 0 0 10px;
}

.ot-drawer-cats {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ot-drawer-cats a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 9px 12px;
	background: var(--ot-dark-elevated);
	border: 1px solid var(--ot-dark-border);
	border-radius: 6px;
	font-size: 13.5px;
}
.ot-drawer-cats a:hover {
	border-color: var(--ot-accent);
}

.ot-mod-idx {
	font-family: var(--ot-mono);
	font-size: 11px;
	color: var(--ot-accent);
	flex-shrink: 0;
}

.ot-mod-name {
	flex: 1;
	font-weight: 600;
}

.ot-mod-count {
	font-family: var(--ot-mono);
	font-size: 11px;
	color: #94A3B8;
}

/* Shared Buttons & Chips */
.ot-btn-accent {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 10px 20px;
	background: var(--ot-accent);
	color: #09090B;
	border: 0;
	border-radius: 6px;
	font-family: var(--ot-mono);
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	transition: background 140ms ease;
}
.ot-btn-accent:hover {
	background: #38BDF8;
}

.ot-btn-outline {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 8px 16px;
	background: var(--ot-surface);
	border: 1px solid var(--ot-border);
	border-radius: 6px;
	font-family: var(--ot-mono);
	font-size: 12.5px;
	font-weight: 600;
}
.ot-btn-outline:hover {
	border-color: var(--ot-accent);
	color: var(--ot-accent);
}

.ot-chip {
	display: inline-block;
	padding: 6px 12px;
	background: var(--ot-surface);
	border: 1px solid var(--ot-border);
	border-radius: 4px;
	font-family: var(--ot-mono);
	font-size: 12px;
	font-weight: 600;
}
.ot-chip:hover {
	border-color: var(--ot-accent);
	color: var(--ot-accent);
}

.ot-mono-kicker {
	display: inline-block;
	font-family: var(--ot-mono);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: var(--ot-accent);
	text-transform: uppercase;
}

.ot-signal-badge {
	display: inline-block;
	font-family: var(--ot-mono);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: var(--ot-accent);
	background: rgba(14, 165, 233, 0.14);
	border: 1px solid rgba(14, 165, 233, 0.45);
	padding: 3px 9px;
	border-radius: 4px;
}

/* Media Container */
.ot-media {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #0F172A;
}

.ot-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ot-media-fallback {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #09090B 0%, #1E293B 100%);
	color: var(--ot-accent);
	font-family: var(--ot-mono);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.1em;
}

/* Front Page: Terminal-Inspired Hero Bento */
.ot-hero-section {
	padding: 26px 0 18px;
}

.ot-hero-bento {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
	gap: 20px;
	align-items: stretch;
}

.ot-hero-lead {
	background: var(--ot-primary);
	color: #F8FAFC;
	border: 1px solid var(--ot-dark-border);
	border-top: 3px solid var(--ot-accent);
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.ot-hero-media-link {
	display: block;
}

.ot-hero-content {
	padding: 22px 24px 24px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex: 1;
}

.ot-hero-tags {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}

.ot-hero-cat {
	font-family: var(--ot-mono);
	font-size: 12px;
	font-weight: 600;
	color: #CBD5E1;
	border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}
.ot-hero-cat:hover {
	color: var(--ot-accent);
	border-bottom-color: var(--ot-accent);
}

.ot-hero-title {
	margin: 0;
	font-size: clamp(22px, 3vw, 34px);
	font-weight: 800;
	line-height: 1.18;
	letter-spacing: -0.025em;
}
.ot-hero-title a:hover {
	color: #7DD3FC;
}

.ot-hero-excerpt {
	margin: 0;
	font-size: 15px;
	color: #CBD5E1;
	line-height: 1.55;
}

.ot-hero-telemetry {
	margin-top: auto;
	padding-top: 14px;
	border-top: 1px solid var(--ot-dark-border);
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	font-family: var(--ot-mono);
	font-size: 11.5px;
	color: #94A3B8;
}

/* Right 1/3 Spec Telemetry Panel */
.ot-telemetry-panel {
	background: var(--ot-surface);
	border: 1px solid var(--ot-border);
	border-top: 3px solid var(--ot-primary);
	border-radius: 8px;
	display: flex;
	flex-direction: column;
}

.ot-telemetry-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 14px 18px;
	background: #F8FAFC;
	border-bottom: 1px solid var(--ot-border-soft);
}

.ot-telemetry-sub {
	font-family: var(--ot-mono);
	font-size: 11px;
	color: var(--ot-muted);
}

.ot-telemetry-list {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.ot-telemetry-item {
	padding: 16px 18px;
	border-bottom: 1px solid var(--ot-border-soft);
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.ot-telemetry-item:last-child {
	border-bottom: 0;
}

.ot-telemetry-badges {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	font-family: var(--ot-mono);
	font-size: 10.5px;
	font-weight: 700;
}

.ot-badge-dev {
	background: var(--ot-primary);
	color: var(--ot-accent);
	padding: 2px 7px;
	border-radius: 3px;
}

.ot-badge-date {
	color: var(--ot-muted);
	background: var(--ot-bg);
	padding: 2px 6px;
	border-radius: 3px;
}

.ot-badge-min {
	color: #0369A1;
	background: #E0F2FE;
	padding: 2px 6px;
	border-radius: 3px;
}

.ot-telemetry-title {
	margin: 2px 0 0;
	font-size: 15.5px;
	font-weight: 700;
	line-height: 1.32;
}
.ot-telemetry-title a:hover {
	color: #0284C7;
}

.ot-telemetry-desc {
	margin: 0;
	font-size: 13px;
	color: var(--ot-muted);
	line-height: 1.45;
}

.ot-telemetry-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 18px;
	background: #F8FAFC;
	border-top: 1px solid var(--ot-border-soft);
	font-family: var(--ot-mono);
	font-size: 11px;
	font-weight: 700;
	color: var(--ot-muted);
}
.ot-telemetry-foot a {
	color: #0284C7;
}
.ot-telemetry-foot a:hover {
	text-decoration: underline;
}

/* Section Scaffolding */
.ot-section {
	padding: 32px 0;
}

.ot-section-alt {
	background: #E2E8F0;
	border-top: 1px solid var(--ot-border);
	border-bottom: 1px solid var(--ot-border);
}

.ot-section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 20px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--ot-border);
}

.ot-section-head h2 {
	margin: 4px 0 0;
	font-size: clamp(20px, 2.5vw, 26px);
	font-weight: 800;
	letter-spacing: -0.02em;
}

.ot-section-meta {
	font-family: var(--ot-mono);
	font-size: 11.5px;
	font-weight: 700;
	color: var(--ot-muted);
}

/* 2-Column Benchmark Cards & Reusable Lab Card */
.ot-bench-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.ot-lab-card {
	background: var(--ot-surface);
	border: 1px solid var(--ot-border);
	border-top: 2px solid var(--ot-accent);
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 150ms ease, box-shadow 150ms ease;
}
.ot-lab-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.ot-card-media-link {
	display: block;
}

.ot-card-body {
	padding: 18px 20px;
	display: flex;
	flex-direction: column;
	gap: 9px;
	flex: 1;
}

.ot-card-topmeta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	font-family: var(--ot-mono);
	font-size: 11.5px;
}

.ot-cyan-tag {
	font-weight: 700;
	color: #0284C7;
}

.ot-node-ref {
	color: var(--ot-muted);
	font-size: 11px;
}

.ot-card-title {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.015em;
}
.ot-card-title a:hover {
	color: #0284C7;
}

.ot-card-excerpt {
	margin: 0;
	font-size: 14px;
	color: var(--ot-muted);
	line-height: 1.55;
}

.ot-card-footer {
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px solid var(--ot-border-soft);
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-family: var(--ot-mono);
	font-size: 11px;
	font-weight: 600;
	color: var(--ot-muted);
}

/* Compact Signal Stream */
.ot-signal-stream {
	list-style: none;
	margin: 0;
	padding: 0;
	background: var(--ot-surface);
	border: 1px solid var(--ot-border);
	border-radius: 8px;
	overflow: hidden;
}

.ot-signal-row {
	display: grid;
	grid-template-columns: 78px 140px minmax(0, 1fr) auto;
	align-items: center;
	gap: 14px;
	padding: 13px 18px;
	border-bottom: 1px solid var(--ot-border-soft);
}
.ot-signal-row:last-child {
	border-bottom: 0;
}
.ot-signal-row:hover {
	background: #F8FAFC;
}

.ot-signal-idx {
	font-family: var(--ot-mono);
	font-size: 12px;
	font-weight: 700;
	color: #0284C7;
}

.ot-signal-cat {
	font-family: var(--ot-mono);
	font-size: 11px;
	font-weight: 700;
	color: var(--ot-primary);
	background: var(--ot-bg);
	padding: 3px 8px;
	border-radius: 4px;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ot-signal-link {
	font-weight: 700;
	font-size: 15px;
	line-height: 1.35;
}
.ot-signal-link:hover {
	color: #0284C7;
}

.ot-signal-meta {
	font-family: var(--ot-mono);
	font-size: 11.5px;
	color: var(--ot-muted);
	white-space: nowrap;
}

/* Visible Modules Directory */
.ot-modules-dir {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

.ot-module-tile {
	background: var(--ot-surface);
	border: 1px solid var(--ot-border);
	border-left: 3px solid var(--ot-accent);
	border-radius: 6px;
	padding: 14px 16px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	transition: border-color 140ms ease, background 140ms ease;
}
.ot-module-tile:hover {
	border-color: var(--ot-primary);
	background: #F8FAFC;
}

.ot-module-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	font-family: var(--ot-mono);
	font-size: 11px;
}

.ot-mod-code {
	font-weight: 700;
	color: #0284C7;
}

.ot-mod-qty {
	color: var(--ot-muted);
}

.ot-mod-title {
	font-size: 15px;
	font-weight: 700;
	color: var(--ot-ink);
}

/* Archive & Blog Header + Grid/List Toggle */
.ot-arch-head {
	background: var(--ot-primary);
	color: #F8FAFC;
	padding: 34px 0 30px;
	border-bottom: 2px solid var(--ot-accent);
}

.ot-arch-head-grid {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
}

.ot-arch-head h1 {
	margin: 8px 0 8px;
	font-size: clamp(24px, 3.6vw, 38px);
	font-weight: 800;
	letter-spacing: -0.025em;
}

.ot-arch-desc {
	margin: 0;
	color: #CBD5E1;
	max-width: 660px;
	font-size: 15px;
}

.ot-arch-controls {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.ot-live-counter {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 6px;
	font-family: var(--ot-mono);
	font-size: 12px;
	font-weight: 700;
	color: #E2E8F0;
}

.ot-counter-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--ot-accent);
}

.ot-view-toggle {
	display: inline-flex;
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 6px;
	padding: 3px;
	gap: 4px;
}

.ot-view-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border: 0;
	border-radius: 4px;
	background: transparent;
	color: #CBD5E1;
	font-family: var(--ot-mono);
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
}

.ot-view-btn.is-active {
	background: var(--ot-accent);
	color: #09090B;
}

/* 3-Column Archive Grid & Smooth List Morph */
.ot-archive-grid,
.ot-related-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.ot-archive-grid.is-list {
	grid-template-columns: 1fr;
	gap: 12px;
}

.ot-archive-grid.is-list .ot-lab-card {
	flex-direction: row;
	align-items: stretch;
	border-top: 1px solid var(--ot-border);
	border-left: 3px solid var(--ot-accent);
}

.ot-archive-grid.is-list .ot-card-media-link {
	width: 220px;
	flex-shrink: 0;
}

.ot-archive-grid.is-list .ot-card-media {
	height: 100%;
	aspect-ratio: 16 / 10;
}

.ot-archive-grid.is-list .ot-card-body {
	padding: 14px 18px;
	flex-direction: row;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px 18px;
}

.ot-archive-grid.is-list .ot-card-topmeta {
	width: 100%;
}

.ot-archive-grid.is-list .ot-card-title {
	flex: 1 1 320px;
	font-size: 17px;
}

.ot-archive-grid.is-list .ot-card-excerpt {
	display: none;
}

.ot-archive-grid.is-list .ot-card-footer {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
	gap: 14px;
}

/* Single Post: Code-Clean Tech Brief */
.ot-single-head {
	background: var(--ot-primary);
	color: #F8FAFC;
	padding: 30px 0 34px;
	border-bottom: 2px solid var(--ot-accent);
}

.ot-single-container {
	max-width: 1040px;
}

.ot-spec-bar {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 6px;
	background: var(--ot-dark-elevated);
	margin-bottom: 22px;
	overflow: hidden;
}

.ot-spec-cell {
	padding: 11px 14px;
	border-right: 1px solid rgba(255, 255, 255, 0.12);
	display: flex;
	flex-direction: column;
	gap: 3px;
}
.ot-spec-cell:last-child {
	border-right: 0;
}

.ot-spec-key {
	font-family: var(--ot-mono);
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: var(--ot-accent);
}

.ot-spec-val {
	font-family: var(--ot-mono);
	font-size: 13px;
	font-weight: 600;
	color: #F8FAFC;
}
.ot-spec-val a:hover {
	color: var(--ot-accent);
}

.ot-single-title-row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
}

.ot-single-title {
	margin: 0;
	font-size: clamp(26px, 4vw, 42px);
	font-weight: 800;
	line-height: 1.16;
	letter-spacing: -0.025em;
	max-width: 820px;
}

.ot-copy-endpoint {
	min-height: 38px;
	padding: 8px 14px;
	background: rgba(14, 165, 233, 0.14);
	border: 1px solid var(--ot-accent);
	border-radius: 6px;
	color: #E0F2FE;
	font-family: var(--ot-mono);
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	white-space: nowrap;
}
.ot-copy-endpoint:hover {
	background: var(--ot-accent);
	color: #09090B;
}

.ot-copy-endpoint-alt {
	background: var(--ot-primary);
	color: #F8FAFC;
}

.ot-single-cover-wrap {
	max-width: 1040px;
	margin-top: 26px;
}

.ot-single-cover {
	border-radius: 8px;
	border: 1px solid var(--ot-border);
}

.ot-prose-container {
	max-width: 760px;
	padding-top: 28px;
	padding-bottom: 44px;
}

.ot-prose {
	background: var(--ot-surface);
	border: 1px solid var(--ot-border);
	border-radius: 8px;
	padding: 32px 34px;
	font-size: 17px;
	line-height: 1.8;
}

.ot-prose h2,
.ot-prose h3,
.ot-prose h4 {
	margin: 1.5em 0 0.6em;
	line-height: 1.28;
	letter-spacing: -0.015em;
}

.ot-prose p {
	margin: 0 0 1.2em;
}

.ot-prose a {
	color: #0284C7;
	text-decoration: underline;
}

.ot-prose code {
	font-family: var(--ot-mono);
	font-size: 0.88em;
	background: #F1F5F9;
	border: 1px solid var(--ot-border-soft);
	padding: 2px 6px;
	border-radius: 4px;
}

.ot-prose pre {
	background: var(--ot-primary);
	color: #E2E8F0;
	padding: 16px 18px;
	border-radius: 6px;
	border-left: 3px solid var(--ot-accent);
	font-family: var(--ot-mono);
	font-size: 13.5px;
	line-height: 1.6;
	overflow-x: auto;
	max-width: 100%;
}

.ot-prose pre code {
	background: transparent;
	border: 0;
	padding: 0;
	color: inherit;
}

.ot-table-wrap {
	width: 100%;
	overflow-x: auto;
	margin: 1.4em 0;
	border: 1px solid var(--ot-border);
	border-radius: 6px;
}

.ot-prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14.5px;
}

.ot-prose th,
.ot-prose td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--ot-border-soft);
	text-align: left;
}

.ot-prose th {
	background: #F8FAFC;
	font-family: var(--ot-mono);
	font-size: 12px;
	text-transform: uppercase;
}

.ot-prose-footer {
	margin-top: 18px;
	padding: 16px 20px;
	background: var(--ot-surface);
	border: 1px solid var(--ot-border);
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
}

.ot-prose-endpoint {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
	flex: 1;
}

.ot-prose-endpoint code {
	font-family: var(--ot-mono);
	font-size: 12px;
	color: var(--ot-muted);
	word-break: break-all;
}

/* About Us: Independent Testing Lab */
.ot-about-hero {
	background: var(--ot-primary);
	color: #F8FAFC;
	padding: 44px 0;
	border-bottom: 2px solid var(--ot-accent);
}

.ot-about-hero-box {
	max-width: 820px;
}

.ot-about-hero-box h1 {
	margin: 14px 0 12px;
	font-size: clamp(28px, 4vw, 44px);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.025em;
}

.ot-about-lead {
	margin: 0 0 18px;
	font-size: 17px;
	color: #CBD5E1;
	line-height: 1.65;
}

.ot-about-hero-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	font-family: var(--ot-mono);
	font-size: 12px;
	color: var(--ot-accent);
}

.ot-rig-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.ot-rig-card {
	background: var(--ot-surface);
	border: 1px solid var(--ot-border);
	border-top: 3px solid var(--ot-accent);
	border-radius: 8px;
	padding: 24px;
}

.ot-rig-idx {
	font-family: var(--ot-mono);
	font-size: 11.5px;
	font-weight: 700;
	color: #0284C7;
}

.ot-rig-card h3 {
	margin: 8px 0 10px;
	font-size: 20px;
	font-weight: 800;
}

.ot-rig-card p {
	margin: 0;
	font-size: 14.5px;
	color: var(--ot-muted);
}

.ot-matrix-panel {
	background: var(--ot-surface);
	border: 1px solid var(--ot-border);
	border-radius: 8px;
	padding: 28px;
}

.ot-matrix-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 20px;
}

.ot-matrix-head h2 {
	margin: 4px 0 0;
	font-size: 24px;
}

.ot-matrix-table-wrap {
	width: 100%;
	overflow-x: auto;
}

.ot-matrix-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14.5px;
}

.ot-matrix-table tr {
	border-bottom: 1px solid var(--ot-border-soft);
}

.ot-matrix-table th {
	text-align: left;
	padding: 13px 14px 13px 0;
	font-family: var(--ot-mono);
	font-size: 12px;
	color: var(--ot-muted);
	width: 34%;
}

.ot-matrix-table td {
	padding: 13px 0;
	font-weight: 700;
}

/* Contact Us: Pitch / Tip Desk Console */
.ot-contact-head {
	max-width: 720px;
	margin-bottom: 24px;
}

.ot-contact-head h1 {
	margin: 6px 0 10px;
	font-size: clamp(26px, 3.6vw, 40px);
	font-weight: 800;
	letter-spacing: -0.025em;
}

.ot-contact-head p {
	margin: 0;
	color: var(--ot-muted);
}

.ot-contact-console {
	display: grid;
	grid-template-columns: minmax(280px, 5fr) minmax(0, 7fr);
	gap: 24px;
	align-items: start;
}

.ot-telemetry-card {
	background: var(--ot-primary);
	color: #F8FAFC;
	border: 1px solid var(--ot-dark-border);
	border-top: 3px solid var(--ot-accent);
	border-radius: 8px;
	padding: 24px;
}

.ot-telemetry-card-head h2 {
	margin: 12px 0 18px;
	font-size: 22px;
}

.ot-telemetry-dl {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.ot-telemetry-row {
	padding-bottom: 14px;
	border-bottom: 1px solid var(--ot-dark-border);
}

.ot-telemetry-row dt {
	font-family: var(--ot-mono);
	font-size: 11px;
	font-weight: 700;
	color: var(--ot-accent);
	margin-bottom: 4px;
}

.ot-telemetry-row dd {
	margin: 0;
	font-size: 14.5px;
	color: #E2E8F0;
}
.ot-telemetry-row dd a:hover {
	color: var(--ot-accent);
}

.ot-telemetry-card-foot {
	margin-top: 18px;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
	font-family: var(--ot-mono);
	font-size: 11px;
	color: #94A3B8;
}

.ot-intake-panel {
	background: var(--ot-surface);
	border: 1px solid var(--ot-border);
	border-radius: 8px;
	padding: 28px;
}

.ot-intake-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.ot-form-row-2 {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.ot-intake-form label {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ot-intake-form label > span {
	font-family: var(--ot-mono);
	font-size: 11.5px;
	font-weight: 700;
	color: var(--ot-ink);
	text-transform: uppercase;
}

.ot-intake-form input,
.ot-intake-form select,
.ot-intake-form textarea {
	width: 100%;
	padding: 11px 13px;
	border: 1px solid var(--ot-border);
	border-radius: 6px;
	background: #F8FAFC;
	color: var(--ot-ink);
	font-family: var(--ot-sans);
	font-size: 15px;
}
.ot-intake-form input:focus,
.ot-intake-form select:focus,
.ot-intake-form textarea:focus {
	outline: 2px solid var(--ot-accent);
	outline-offset: 1px;
}

.ot-form-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
	padding-top: 8px;
}

.ot-form-hint {
	font-family: var(--ot-mono);
	font-size: 12px;
	color: var(--ot-muted);
}

.ot-notice {
	padding: 12px 16px;
	border-radius: 6px;
	margin-bottom: 18px;
	font-family: var(--ot-mono);
	font-size: 13px;
	font-weight: 700;
}
.ot-notice-ok {
	background: #ECFDF5;
	color: #065F46;
	border: 1px solid #A7F3D0;
}
.ot-notice-error {
	background: #FEF2F2;
	color: #991B1B;
	border: 1px solid #FECACA;
}

/* Search, Static Page & 404 */
.ot-console-search-form {
	display: flex;
	gap: 10px;
	max-width: 680px;
	margin-top: 16px;
}

.ot-console-search-form input {
	flex: 1;
	min-width: 0;
	padding: 11px 14px;
	border: 1px solid var(--ot-border);
	border-radius: 6px;
	background: var(--ot-surface);
	color: var(--ot-ink);
	font-family: var(--ot-mono);
	font-size: 14px;
}

.ot-search-meta-bar {
	margin-top: 18px;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
}

.ot-filter-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ot-filter-chips .ot-chip {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.16);
	color: #E2E8F0;
}
.ot-filter-chips .ot-chip:hover {
	border-color: var(--ot-accent);
	color: var(--ot-accent);
}

.ot-page-container {
	max-width: 860px;
}

.ot-static-panel,
.ot-404-console,
.ot-empty-panel {
	background: var(--ot-surface);
	border: 1px solid var(--ot-border);
	border-top: 3px solid var(--ot-accent);
	border-radius: 8px;
	padding: 32px;
}

.ot-static-head {
	padding-bottom: 18px;
	margin-bottom: 22px;
	border-bottom: 1px solid var(--ot-border-soft);
}

.ot-static-head h1 {
	margin: 6px 0 6px;
	font-size: clamp(24px, 3.4vw, 36px);
	font-weight: 800;
}

.ot-static-updated {
	font-family: var(--ot-mono);
	font-size: 11.5px;
	color: var(--ot-muted);
}

.ot-static-panel .ot-prose {
	border: 0;
	padding: 0;
}

.ot-404-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 14px;
}

.ot-404-console h1 {
	margin: 0 0 10px;
	font-size: clamp(24px, 3.2vw, 34px);
	font-weight: 800;
}

.ot-404-desc {
	margin: 0 0 18px;
	color: var(--ot-muted);
}

.ot-404-diag {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 10px;
}

.ot-404-diag code {
	background: var(--ot-primary);
	color: var(--ot-accent);
	padding: 6px 10px;
	border-radius: 4px;
	font-family: var(--ot-mono);
	font-size: 12px;
}

.ot-404-modules {
	margin-top: 20px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

/* Pagination */
.ot-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 28px;
}

.ot-pagination .page-numbers {
	padding: 8px 14px;
	background: var(--ot-surface);
	border: 1px solid var(--ot-border);
	border-radius: 6px;
	font-family: var(--ot-mono);
	font-size: 13px;
	font-weight: 700;
}

.ot-pagination .page-numbers.current {
	background: var(--ot-accent);
	color: #09090B;
	border-color: var(--ot-accent);
}

/* Compact Carbon Terminal Footer */
.ot-footer {
	background: var(--ot-primary);
	color: #CBD5E1;
	border-top: 2px solid var(--ot-accent);
	padding: 40px 0 22px;
}

.ot-footer-grid {
	display: grid;
	grid-template-columns: 1.2fr 0.7fr 1.5fr;
	gap: 28px;
	padding-bottom: 26px;
	border-bottom: 1px solid var(--ot-dark-border);
}

.ot-footer-tagline {
	margin: 14px 0 12px;
	font-size: 14px;
	color: #94A3B8;
	max-width: 380px;
}

.ot-footer-telemetry {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-family: var(--ot-mono);
	font-size: 12px;
	color: #E2E8F0;
}

.ot-footer h4 {
	margin: 0 0 12px;
	font-family: var(--ot-mono);
	font-size: 12px;
	letter-spacing: 0.08em;
	color: var(--ot-accent);
}

.ot-footer-links-col ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ot-footer-links-col li {
	margin-bottom: 8px;
	font-size: 13.5px;
}
.ot-footer-links-col a:hover {
	color: var(--ot-accent);
}

.ot-footer-module-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ot-footer-module-grid a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 10px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 4px;
	font-size: 12.5px;
}
.ot-footer-module-grid a:hover {
	border-color: var(--ot-accent);
	color: #FFFFFF;
}

.ot-footer-module-grid a span {
	font-family: var(--ot-mono);
	font-size: 11px;
	color: var(--ot-accent);
}

.ot-footer-base {
	padding-top: 16px;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	font-family: var(--ot-mono);
	font-size: 11.5px;
	color: #94A3B8;
}

/* Breakpoint 1: Tablet (<= 1080px) */
@media (max-width: 1080px) {
	.ot-hero-bento {
		grid-template-columns: 1fr;
	}
	.ot-archive-grid,
	.ot-related-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.ot-modules-dir {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.ot-contact-console {
		grid-template-columns: 1fr;
	}
	.ot-footer-grid {
		grid-template-columns: 1fr 1fr;
	}
}

/* Navbar Mobile Bar (<= 900px) — Zero 375px Overlap */
@media (max-width: 900px) {
	.ot-nav-center {
		display: none;
	}
	.ot-brand-pill {
		padding: 3px 8px;
	}
	.ot-brand-img {
		max-height: 26px;
		max-width: 145px;
	}
	.ot-brand-word {
		font-size: 13.5px;
		max-width: 129px;
		overflow: hidden;
		text-overflow: ellipsis;
	}
	.ot-cmd-btn,
	.ot-modules-btn {
		padding: 6px 10px;
		font-size: 11.5px;
	}
}

/* Breakpoint 2: Mobile (<= 768px) */
@media (max-width: 768px) {
	body.admin-bar .ot-header,
	body.admin-bar .ot-drawer,
	body.admin-bar .ot-progress-bar {
		top: 46px;
	}
	.ot-wrap {
		padding: 0 16px;
	}
	.ot-bench-grid,
	.ot-archive-grid,
	.ot-related-grid,
	.ot-rig-grid,
	.ot-form-row-2,
	.ot-footer-grid {
		grid-template-columns: 1fr;
	}
	.ot-spec-bar {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.ot-spec-cell {
		border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	}
	.ot-signal-row {
		grid-template-columns: 68px minmax(0, 1fr);
		gap: 8px 10px;
	}
	.ot-signal-cat {
		justify-self: start;
	}
	.ot-signal-link {
		grid-column: 1 / -1;
	}
	.ot-signal-meta {
		grid-column: 1 / -1;
	}
	.ot-archive-grid.is-list .ot-lab-card {
		flex-direction: column;
	}
	.ot-archive-grid.is-list .ot-card-media-link {
		width: 100%;
	}
	.ot-prose {
		padding: 22px 18px;
	}
	.ot-intake-panel,
	.ot-static-panel,
	.ot-404-console,
	.ot-matrix-panel {
		padding: 20px 16px;
	}
	.ot-console-search-form,
	.ot-modal-search-form {
		flex-direction: column;
	}
}

/* Breakpoint 3: Compact Mobile (<= 520px) */
@media (max-width: 520px) {
	.ot-wrap {
		padding: 0 14px;
	}
	.ot-navbar {
		gap: 8px;
		min-height: 54px;
	}
	.ot-nav-left {
		gap: 8px;
	}
	.ot-status-pill {
		padding: 4px 6px;
	}
	.ot-status-text,
	.ot-cmd-label,
	.ot-kbd {
		display: none;
	}
	.ot-cmd-btn {
		padding: 6px 9px;
	}
	.ot-modules-btn {
		padding: 6px 10px;
	}
	.ot-modules-dir {
		grid-template-columns: 1fr;
	}
	.ot-hero-content {
		padding: 16px;
	}
	.ot-spec-bar {
		grid-template-columns: 1fr;
	}
}
