/* Genalytics Scientific (HK) Limited - V4.3 Precision Engineering & Editorial Design */
:root {
  --brand: #0B5FA5;
  --brand-dark: #084980;
  --brand-soft: #EFF6FC;
  --ink: #0F172A;
  --ink-soft: #1E293B;
  --muted: #475569;
  --subtle: #64748B;
  --surface: #F7F9FC;
  --line: #DCE4EE;
  --line-strong: #CBD5E1;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: #FFFFFF;
  color: var(--ink);
  font-family: "Inter", "Noto Sans TC", "Noto Sans SC", "PingFang HK", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.nowrap,
nav a,
button,
.btn-corp,
.badge-corp,
th {
  white-space: nowrap !important;
  flex-shrink: 0;
}

/* Restrained Precision Instrument Cards (No AI glow / bounce) */
.corp-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.corp-card:hover {
  border-color: #93B8DC;
  box-shadow: 0 8px 20px -12px rgba(15, 23, 42, 0.14);
}

.corp-card-static {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 10px;
}

/* Clean Architectural Hero & Subpage Header */
.bright-hero {
  background: linear-gradient(180deg, #F5F8FC 0%, #FFFFFF 100%);
}

.subpage-banner-bright {
  background: #F5F8FC;
  border-bottom: 1px solid var(--line);
}

/* Solid Engineering Primary Button (No SaaS gradient glow) */
.btn-primary-bright {
  background-color: var(--brand);
  color: #FFFFFF;
  border: 1px solid var(--brand);
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.btn-primary-bright:hover {
  background-color: var(--brand-dark);
  border-color: var(--brand-dark);
}

/* Navigation Links */
.nav-link {
  position: relative;
  padding: 0.45rem 0;
  color: #334155;
  font-weight: 600;
  font-size: 13.5px;
  transition: color 0.18s ease;
  white-space: nowrap !important;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background-color: var(--brand);
}

/* Quiet Status Indicator */
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  background-color: #059669;
}

/* Brand Tag Chip */
.brand-pill-light {
  padding: 0.28rem 0.62rem;
  border-radius: 6px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  color: #334155;
  font-size: 11.5px;
  font-weight: 600;
}

/* Technical Article Typography */
.guide-prose h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0F172A;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}

.guide-prose h3 {
  font-size: 1.02rem;
  font-weight: 700;
  color: #1E293B;
  margin-top: 1.35rem;
  margin-bottom: 0.5rem;
}

.guide-prose p {
  color: #334155;
  line-height: 1.8;
  margin-bottom: 0.9rem;
}

.guide-prose ul,
.guide-prose ol {
  margin: 0.75rem 0 1rem 1.25rem;
  color: #334155;
  line-height: 1.8;
}

.guide-prose li {
  margin-bottom: 0.35rem;
}

/* Interactive Before/After Colony Comparison Slider */
.ba-slider {
  position: relative;
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
  background: #0F172A;
}

.ba-slider img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.ba-overlay {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2.5px;
  background: #38BDF8;
  box-shadow: 0 0 8px rgba(14, 165, 233, 0.65);
  pointer-events: none;
}

.ba-handle {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  border-radius: 9999px;
  background: #FFFFFF;
  border: 2px solid var(--brand);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.28);
  pointer-events: none;
}

.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  margin: 0;
  z-index: 20;
}
