/* Micro Health Laboratories – Diagnostic Test Directory */
:root {
  --brand: #1a8fd6;
  --brand-600: #0f74b5;
  --brand-700: #0b5c91;
  --brand-50: #eaf5fc;
  --brand-100: #d3ebf9;
  --navy: #0b2a45;
  --ink: #16263a;
  --muted: #5b6b7f;
  --line: #e2e8f0;
  --bg: #f4f7fb;
  --card: #ffffff;
  --ok: #138a52;
  --ok-bg: #e5f6ed;
  --warn: #a15c07;
  --warn-bg: #fff4e0;
  --danger: #c0352b;
  --danger-bg: #fdecea;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16, 38, 58, .06), 0 4px 16px rgba(16, 38, 58, .06);
  --shadow-lg: 0 10px 40px rgba(11, 42, 69, .16);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; font-size: 15px; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-700); text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 1.3rem; font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.topbar { background: var(--navy); color: #c9d8e6; font-size: .82rem; }
.topbar .container { display: flex; gap: 20px; justify-content: flex-end; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap; }
.topbar a { color: #e6f0f8; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.site-header .container { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none !important; }
.brand img { height: 46px; width: auto; }
.brand-sub { border-left: 1px solid var(--line); padding-left: 14px; color: var(--navy); font-weight: 600; font-size: .9rem; line-height: 1.2; }
.brand-sub small { display: block; color: var(--muted); font-weight: 500; font-size: .75rem; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { color: var(--ink); padding: 8px 14px; border-radius: 8px; font-weight: 500; font-size: .93rem; }
.nav a:hover { background: var(--brand-50); color: var(--brand-700); text-decoration: none; }
.nav a.active { color: var(--brand-700); background: var(--brand-50); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; cursor: pointer; }

/* ---------- Buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; font-size: .92rem; padding: 10px 18px; border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer; text-decoration: none !important; transition: background .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-600); color: #fff; }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand-700); }
.btn-ghost { background: transparent; color: var(--brand-700); }
.btn-ghost:hover { background: var(--brand-50); }
.btn-danger { background: #fff; color: var(--danger); border-color: #f2c3bf; }
.btn-danger:hover { background: var(--danger-bg); }
.btn-sm { padding: 6px 12px; font-size: .82rem; }
.btn-block { width: 100%; }
.btn svg { width: 16px; height: 16px; flex: none; }

label { display: block; font-weight: 600; font-size: .86rem; color: var(--navy); margin-bottom: 6px; }
input[type=text], input[type=search], input[type=password], input[type=email], input[type=number], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid #cfd8e3; border-radius: var(--radius-sm); padding: 10px 12px; transition: border-color .15s, box-shadow .15s; }
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(26, 143, 214, .18); }
.field { margin-bottom: 18px; }
.field .help { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.field .error { font-size: .82rem; color: var(--danger); margin-top: 4px; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.form-grid .span-2 { grid-column: span 2; }

/* ---------- Hero ---------- */
.hero { background: radial-gradient(1200px 400px at 80% -10%, rgba(41, 171, 226, .35), transparent 60%), linear-gradient(135deg, var(--navy) 0%, #0f4069 60%, #11609a 100%); color: #fff; padding: 64px 0 88px; position: relative; overflow: hidden; }
.hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.75rem); max-width: 760px; }
.hero p.lead { color: #cfe2f2; font-size: 1.08rem; max-width: 640px; margin-bottom: 28px; }
.hero .eyebrow { display: inline-block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: #9fd3f2; font-weight: 600; margin-bottom: 12px; }
.hero-stats { display: flex; gap: 32px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats div { color: #cfe2f2; font-size: .88rem; }
.hero-stats strong { display: block; color: #fff; font-size: 1.6rem; font-weight: 700; }

/* ---------- Search ---------- */
.search { position: relative; max-width: 760px; }
.search form { display: flex; background: #fff; border-radius: 14px; padding: 6px; box-shadow: var(--shadow-lg); }
.search input { min-width: 0; border: 0; box-shadow: none !important; font-size: 1.05rem; padding: 12px 14px 12px 46px; background: transparent; }
.search .icon { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.search .btn { padding: 12px 24px; border-radius: 10px; }
.search.compact form { box-shadow: none; border: 1px solid #cfd8e3; border-radius: 10px; padding: 4px; }
.search.compact input { font-size: .98rem; padding: 9px 12px 9px 40px; }
.search.compact .icon { left: 16px; width: 18px; height: 18px; }
.search.compact .btn { padding: 9px 18px; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); z-index: 50; overflow: hidden; display: none; }
.suggest.open { display: block; }
.suggest a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 16px; color: var(--ink); border-bottom: 1px solid #f0f3f7; text-decoration: none; }
.suggest a:last-child { border-bottom: 0; }
.suggest a:hover, .suggest a.active { background: var(--brand-50); }
.suggest .s-name { font-weight: 600; }
.suggest .s-meta { color: var(--muted); font-size: .82rem; text-align: right; white-space: nowrap; }
.suggest .s-all { justify-content: center; color: var(--brand-700); font-weight: 600; font-size: .9rem; }

/* ---------- A–Z ---------- */
.az { display: flex; flex-wrap: wrap; gap: 6px; }
.az a, .az span { min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; font-weight: 600; font-size: .88rem; padding: 0 8px; }
.az a { background: #fff; border: 1px solid var(--line); color: var(--navy); }
.az a:hover { border-color: var(--brand); color: var(--brand-700); text-decoration: none; }
.az a.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.az span { color: #b6c2cf; border: 1px dashed #e2e8f0; }

/* ---------- Sections & cards ---------- */
.section { padding: 48px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.section-head p { margin: 0; color: var(--muted); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-body { padding: 22px; }
.overlap { margin-top: -48px; position: relative; z-index: 2; }

.dept-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.dept-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .15s; }
.dept-card:hover { border-color: var(--brand); box-shadow: var(--shadow); text-decoration: none; transform: translateY(-1px); }
.dept-icon { width: 42px; height: 42px; border-radius: 10px; background: var(--brand-50); color: var(--brand-700); display: grid; place-items: center; font-weight: 700; flex: none; }
.dept-card strong { display: block; color: var(--navy); font-size: .96rem; }
.dept-card small { color: var(--muted); }

.test-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.test-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.test-card:hover { border-color: var(--brand); box-shadow: var(--shadow); text-decoration: none; }
.test-card h3 { margin-bottom: 6px; }
.test-card .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: .84rem; }

/* ---------- Chips ---------- */
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--brand-50); color: var(--brand-700); white-space: nowrap; }
.chip-code { background: #eef2f6; color: #334558; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; letter-spacing: .02em; }
.chip-ok { background: var(--ok-bg); color: var(--ok); }
.chip-muted { background: #eef1f4; color: var(--muted); }

/* ---------- Directory listing ---------- */
.page-head { background: #fff; border-bottom: 1px solid var(--line); padding: 28px 0 22px; }
.page-head h1 { margin-bottom: 4px; }
.crumbs { font-size: .84rem; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); }
.layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; padding-top: 28px; padding-bottom: 56px; align-items: start; }
.sidebar .card-body { padding: 18px; }
.sidebar h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }
.filter-list { list-style: none; margin: 0 0 6px; padding: 0; }
.filter-list a { display: flex; justify-content: space-between; padding: 7px 10px; border-radius: 8px; color: var(--ink); font-size: .9rem; }
.filter-list a:hover { background: var(--brand-50); text-decoration: none; }
.filter-list a.active { background: var(--brand-50); color: var(--brand-700); font-weight: 600; }
.filter-list .count { color: var(--muted); font-size: .8rem; }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 18px 0 12px; flex-wrap: wrap; }
.active-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.active-filters a { display: inline-flex; gap: 6px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: .82rem; color: var(--ink); }
.active-filters a:hover { border-color: var(--danger); color: var(--danger); text-decoration: none; }

.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.data th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; padding: 12px 16px; background: #f8fafc; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data td { padding: 14px 16px; border-bottom: 1px solid #edf1f5; vertical-align: top; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: #fafcfe; }
table.data .t-name a { font-weight: 600; color: var(--navy); }
table.data .t-name a:hover { color: var(--brand-700); }
table.data .t-alias { color: var(--muted); font-size: .8rem; margin-top: 2px; }
table.data .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.row-actions form { margin: 0; }

.empty { text-align: center; padding: 56px 24px; color: var(--muted); }
.empty svg { width: 48px; height: 48px; color: #b6c2cf; margin: 0 auto 12px; }

.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: .9rem; }
.pagination a:hover { border-color: var(--brand); text-decoration: none; }
.pagination .current { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.pagination .gap { border: 0; background: none; }

/* ---------- Test detail ---------- */
.detail-head { background: #fff; border-bottom: 1px solid var(--line); padding: 28px 0 26px; }
.detail-head .chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.detail-head .aka { color: var(--muted); margin: 4px 0 0; }
.detail-actions { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; padding-top: 28px; padding-bottom: 56px; align-items: start; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fact { padding: 16px 22px; border-bottom: 1px solid #edf1f5; }
.fact:nth-child(odd) { border-right: 1px solid #edf1f5; }
.fact dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.fact dt svg { width: 14px; height: 14px; color: var(--brand); }
.fact dd { margin: 0; font-weight: 600; color: var(--navy); }
.fact.price dd { font-size: 1.3rem; color: var(--brand-700); }
.info-block { margin-top: 20px; }
.info-block .card-body > :last-child { margin-bottom: 0; }
.info-block h2 { font-size: 1.05rem; display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.info-block h2::before { content: ""; width: 4px; height: 18px; background: var(--brand); border-radius: 2px; }
.prewrap { white-space: pre-line; }
.components { columns: 2; column-gap: 28px; margin: 0; padding-left: 18px; }
.components li { margin-bottom: 4px; break-inside: avoid; }
.note { background: var(--warn-bg); color: #6b4105; border: 1px solid #f6dfb5; border-radius: var(--radius-sm); padding: 12px 14px; font-size: .86rem; }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li { border-bottom: 1px solid #edf1f5; }
.side-list li:last-child { border-bottom: 0; }
.side-list a { display: block; padding: 11px 18px; color: var(--ink); font-size: .9rem; }
.side-list a:hover { background: var(--brand-50); text-decoration: none; }
.side-list small { display: block; color: var(--muted); font-size: .78rem; }
.card-title { padding: 14px 18px; border-bottom: 1px solid var(--line); font-weight: 700; color: var(--navy); font-size: .92rem; }
.contact-card p { margin: 0 0 6px; font-size: .9rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #a9bdd0; padding: 40px 0 24px; font-size: .88rem; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: .9rem; margin-bottom: 10px; }
.site-footer a { color: #d9e7f3; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer .logo { height: 58px; width: auto; margin-bottom: 12px; }
.site-footer .legal { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 28px; padding-top: 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .8rem; }

/* ---------- Flash ---------- */
.flashes { margin: 16px auto 0; }
.flash { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 8px; font-size: .9rem; border: 1px solid; }
.flash-success { background: var(--ok-bg); color: #0d5e38; border-color: #bfe6d1; }
.flash-error { background: var(--danger-bg); color: #8f241c; border-color: #f4c7c2; }
.flash-info { background: var(--brand-50); color: var(--brand-700); border-color: var(--brand-100); }

/* ---------- Admin ---------- */
.admin-bar { background: var(--navy); }
.admin-bar .container { display: flex; align-items: center; gap: 18px; min-height: 60px; flex-wrap: wrap; }
.admin-bar .brand img { height: 34px; }
.admin-bar .brand span { color: #fff; font-weight: 600; font-size: .9rem; border-left: 1px solid rgba(255,255,255,.2); padding-left: 12px; }
.admin-nav { display: flex; gap: 2px; flex-wrap: wrap; }
.admin-nav a { color: #c9d8e6; padding: 8px 12px; border-radius: 8px; font-size: .9rem; font-weight: 500; }
.admin-nav a:hover, .admin-nav a.active { background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }
.admin-user { margin-left: auto; display: flex; align-items: center; gap: 10px; color: #c9d8e6; font-size: .86rem; }
.admin-user form { margin: 0; }
.admin-user .btn { color: #fff; border-color: rgba(255,255,255,.25); background: transparent; }
.admin-main { padding: 28px 0 56px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat { padding: 18px 20px; }
.stat .label { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.stat .value { font-size: 1.7rem; font-weight: 700; color: var(--navy); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.toolbar .grow { flex: 1 1 240px; }
.toolbar select { width: auto; min-width: 160px; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; padding: 16px 22px; border-top: 1px solid var(--line); background: #fafbfd; border-radius: 0 0 var(--radius) var(--radius); flex-wrap: wrap; }
.form-section { padding: 22px; border-bottom: 1px solid var(--line); }
.form-section:last-of-type { border-bottom: 0; }
.form-section > h3 { margin-bottom: 16px; }
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: linear-gradient(135deg, var(--navy), #11609a); }
.auth-card { width: 100%; max-width: 400px; }
.auth-card .logo { height: 54px; width: auto; margin: 0 auto 6px; }
code.kbd { background: #eef2f6; padding: 2px 6px; border-radius: 4px; font-size: .85em; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .layout, .detail { grid-template-columns: minmax(0, 1fr); }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .brand-sub { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 8px 16px 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .site-header .container { position: relative; }
  .hero { padding: 40px 0 72px; }
  .search .btn { padding: 12px 16px; }
  .search .btn span { display: none; }
  .facts { grid-template-columns: 1fr; }
  .fact:nth-child(odd) { border-right: 0; }
  .components { columns: 1; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .site-footer .cols { grid-template-columns: 1fr; }
  table.responsive, table.responsive tbody { display: block; width: 100%; }
  table.responsive thead { display: none; }
  table.responsive tr { display: block; padding: 14px 16px; border-bottom: 1px solid #edf1f5; }
  table.responsive td { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; border: 0; text-align: right; }
  table.responsive td > * { min-width: 0; }
  table.responsive td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: .8rem; font-weight: 500; }
  table.responsive td.t-name { display: block; margin-bottom: 6px; text-align: left; }
  table.responsive td[data-label]::before { text-align: left; flex: none; }
  html, body { overflow-x: hidden; }
  table.responsive .num { text-align: right; }
  .row-actions { justify-content: flex-start; }
  .admin-user { margin-left: 0; }
}

/* ---------- Print ---------- */
@media print {
  body { background: #fff; font-size: 12px; }
  .topbar, .site-header, .site-footer, .detail-actions, .no-print, .sidebar-related { display: none !important; }
  .detail { grid-template-columns: 1fr; padding: 0; }
  .card { box-shadow: none; border-color: #ccc; }
  .print-only { display: block !important; }
  a { color: inherit; }
}
.print-only { display: none; }

/* =========================================================
   Home page v2 — lab / genetics graphics
   ========================================================= */
.hero-v2 { padding: 56px 0 120px; }
.hero-pattern { position: absolute; inset: 0; opacity: .07; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='98' viewBox='0 0 56 98'%3E%3Cpath d='M28 66 0 50V18L28 2l28 16v32L28 66zm0 32V66' fill='none' stroke='%23ffffff' stroke-width='1.2'/%3E%3Ccircle cx='28' cy='2' r='2.4' fill='%23ffffff'/%3E%3Ccircle cx='0' cy='50' r='2.4' fill='%23ffffff'/%3E%3Ccircle cx='56' cy='18' r='2.4' fill='%23ffffff'/%3E%3C/svg%3E");
  background-size: 56px 98px;
  -webkit-mask-image: linear-gradient(100deg, transparent 20%, #000 75%); mask-image: linear-gradient(100deg, transparent 20%, #000 75%); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: 40px; align-items: center; }
.hero-v2 .eyebrow { display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); padding: 6px 14px; border-radius: 999px; letter-spacing: .1em; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #5ce1a6; box-shadow: 0 0 0 0 rgba(92,225,166,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(92,225,166,0); } 100% { box-shadow: 0 0 0 0 rgba(92,225,166,0); } }
.hero-v2 h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); letter-spacing: -.02em; }
.hero-v2 .hl { background: linear-gradient(90deg, #7fd3ff, #29abe2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.quick-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; font-size: .85rem; }
.quick-tags a { color: #e6f3fc; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 4px 12px; transition: background .15s, border-color .15s; }
.quick-tags a:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.4); text-decoration: none; color: #fff; }
.muted-light { color: #9fbdd6; }
.hero-v2 .hero-stats { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; margin-top: 30px; }

.hero-visual { position: relative; height: 480px; }
.hero-visual .glow { position: absolute; left: 50%; top: 50%; width: 420px; height: 420px; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(41,171,226,.45) 0%, rgba(41,171,226,.12) 45%, transparent 70%); }
.hero-visual .orbit { position: absolute; left: 50%; top: 50%; width: 400px; height: 400px; transform: translate(-50%, -50%); fill: none; stroke: rgba(255,255,255,.12); stroke-width: 1; stroke-dasharray: 3 7; animation: spin 80s linear infinite; }
.dna-wrap { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-18deg); width: 250px; animation: floaty 7s ease-in-out infinite; filter: drop-shadow(0 10px 30px rgba(0,0,0,.25)); }
.dna-wrap svg { width: 100%; height: auto; display: block; }
.dna .rung { animation: rung 3.2s ease-in-out infinite; animation-delay: calc(var(--i) * -0.11s); }
@keyframes rung { 50% { opacity: .95; } }
.molecule { position: absolute; right: 2%; top: 4%; width: 92px; color: rgba(159,211,242,.55); animation: floaty 9s ease-in-out infinite reverse; }
.float-card { position: absolute; display: flex; gap: 10px; align-items: center; background: rgba(255,255,255,.96); color: var(--ink); padding: 10px 14px 10px 10px; border-radius: 12px; box-shadow: 0 12px 30px rgba(3,20,36,.35); font-size: .8rem; animation: floaty 6s ease-in-out infinite; }
.float-card small { display: block; color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.float-card strong { color: var(--navy); font-size: .88rem; }
.fc-icon { width: 34px; height: 34px; border-radius: 9px; background: var(--brand-50); color: var(--brand-700); display: grid; place-items: center; }
.fc-icon svg { width: 18px; height: 18px; }
.fc-1 { left: 0; top: 18%; animation-delay: -1s; }
.fc-2 { right: 0; top: 52%; animation-delay: -3s; }
.fc-3 { left: 8%; bottom: 6%; animation-delay: -4.5s; }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 80px; fill: var(--bg); }

.overlap { margin-top: -70px; }
.az-card { border: 0; box-shadow: 0 18px 50px rgba(11,42,69,.14); }
.kicker { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 4px; }
.az-lg a, .az-lg span { min-width: 40px; height: 40px; }
.az-lg a:hover { background: var(--brand-50); }

.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; overflow: hidden; }
.feature::after { content: ""; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%; background: var(--brand-50); opacity: .7; }
.feature h3 { margin: 14px 0 6px; }
.feature p { color: var(--muted); font-size: .9rem; margin: 0; }
.f-icon { position: relative; z-index: 1; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-700)); box-shadow: 0 6px 16px rgba(26,143,214,.3); }
.f-icon svg { width: 24px; height: 24px; }

.section-tint { background: linear-gradient(180deg, #eaf4fb 0%, var(--bg) 100%); position: relative; }
.dept-icon svg { width: 24px; height: 24px; }
.dept-card { padding: 18px; }
.dept-card .dept-text { flex: 1; min-width: 0; }
.dept-arrow { color: #b6c2cf; transition: transform .15s, color .15s; }
.dept-card:hover .dept-arrow { color: var(--brand); transform: translateX(3px); }
.dept-card:hover .dept-icon { background: var(--brand); color: #fff; }
.dept-icon { transition: background .15s, color .15s; }

.tc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.tc-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--brand-50); color: var(--brand-700); display: grid; place-items: center; }
.tc-icon svg { width: 20px; height: 20px; }
.test-card .meta span { display: inline-flex; align-items: center; gap: 5px; }
.test-card .meta svg { width: 14px; height: 14px; color: var(--brand); }

.cta { background: linear-gradient(120deg, var(--navy), #0f4f80); color: #cfe2f2; padding: 44px 0; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; opacity: .06; background-image: radial-gradient(#fff 1.2px, transparent 1.2px); background-size: 18px 18px; }
.cta-inner { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; }
.cta h2 { color: #fff; margin-bottom: 4px; }
.cta p { margin: 0; }
.cta-art { width: 150px; color: #7fd3ff; }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--brand-50); color: var(--navy); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-outline-light:hover { background: rgba(255,255,255,.1); color: #fff; }

@media (max-width: 1024px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-inner { grid-template-columns: 1fr; }
  .cta-art { display: none; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { height: 300px; order: -1; }
  .hero-visual .glow, .hero-visual .orbit { width: 280px; height: 280px; }
  .dna-wrap { width: 160px; }
  .fc-1 { left: 2%; top: 10%; } .fc-2 { right: 2%; top: 55%; } .fc-3 { display: none; }
  .molecule { width: 64px; }
}
@media (max-width: 560px) {
  .features { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { height: 240px; }
  .dna-wrap { width: 130px; }
  .float-card { font-size: .74rem; padding: 8px 10px 8px 8px; }
  .fc-icon { width: 28px; height: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .dna-wrap, .float-card, .molecule, .orbit, .pulse, .dna .rung, .head-dna, .head-molecule { animation: none !important; }
}

/* =========================================================
   Inner-page banners (directory, detail, departments)
   ========================================================= */
.page-head, .detail-head {
  position: relative; overflow: hidden; border-bottom: 0; color: #cfe2f2;
  background: radial-gradient(800px 300px at 85% 0%, rgba(41,171,226,.35), transparent 60%),
              linear-gradient(135deg, var(--navy) 0%, #0f4069 60%, #11609a 100%);
  padding: 34px 0 64px;
}
.page-head > .container, .detail-head > .container { position: relative; z-index: 2; }
.page-head h1, .detail-head h1 { color: #fff; margin: 0; }
.page-head .muted, .detail-head .aka { color: #cfe2f2; }
.page-head .crumbs, .detail-head .crumbs, .page-head .crumbs a, .detail-head .crumbs a { color: #9fbdd6; }
.page-head .crumbs a:hover, .detail-head .crumbs a:hover { color: #fff; }
.title-row { display: flex; align-items: center; gap: 16px; margin: 6px 0 8px; }
.title-icon { width: 52px; height: 52px; flex: none; border-radius: 14px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, rgba(41,171,226,.9), rgba(15,116,181,.9)); box-shadow: 0 8px 22px rgba(0,0,0,.25), inset 0 0 0 1px rgba(255,255,255,.2); }
.title-icon svg { width: 28px; height: 28px; }
.head-glow { position: absolute; right: 6%; top: 50%; width: 340px; height: 340px; transform: translateY(-50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(41,171,226,.35), transparent 65%); pointer-events: none; }
.head-dna { position: absolute; right: 9%; top: 50%; width: 120px; transform: translateY(-50%) rotate(62deg); opacity: .75; pointer-events: none; z-index: 1;
  animation: floaty 7s ease-in-out infinite; }
.head-dna svg { width: 100%; height: auto; display: block; }
.head-molecule { position: absolute; right: 2.5%; top: 14px; width: 70px; color: rgba(159,211,242,.45); pointer-events: none; animation: floaty 9s ease-in-out infinite reverse; }
.head-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 40px; fill: var(--bg); z-index: 1; }
.page-head .search.compact form { border: 0; box-shadow: 0 10px 30px rgba(3,20,36,.3); }

/* Detail banner specifics */
.detail-head { padding-bottom: 92px; }
.detail-head .chip { background: rgba(255,255,255,.12); color: #e6f3fc; border: 1px solid rgba(255,255,255,.16); }
.detail-head .chip-code { background: rgba(0,0,0,.2); color: #fff; }
.detail-head .btn-outline { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.25); }
.detail-head .btn-outline:hover { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.4); }
.detail-head .btn-ghost { color: #cfe2f2; }
.detail-head .btn-ghost:hover { background: rgba(255,255,255,.08); color: #fff; }
.detail { margin-top: -70px; position: relative; z-index: 3; }
.detail > div > .card:first-child { box-shadow: 0 18px 50px rgba(11,42,69,.14); border: 0; }
.fact dt svg { width: 26px; height: 26px; padding: 5px; border-radius: 7px; background: var(--brand-50); }
.fact { padding: 18px 22px; }
.fact dd { padding-left: 32px; }
.fact.price { background: linear-gradient(90deg, var(--brand-50), transparent); }

@media (max-width: 900px) {
  .head-dna, .head-glow { right: -20px; opacity: .35; }
  .head-molecule { display: none; }
}
@media (max-width: 560px) {
  .head-dna { display: none; }
  .title-icon { width: 42px; height: 42px; border-radius: 11px; }
  .title-icon svg { width: 22px; height: 22px; }
}
/* =========================================================
   Home hero — compact (fits stats above the fold at ~600px tall)
   ========================================================= */
.hero-v2 { padding: 34px 0 78px; }                       /* was 56 / 120 (~35% less) */
.hero-v2 .eyebrow { margin-bottom: 14px; padding: 5px 12px; }
.hero-v2 h1 { font-size: clamp(1.9rem, 3.1vw, 2.6rem); line-height: 1.12; max-width: 17ch;
  text-wrap: balance; margin-bottom: 12px; }
.hero-v2 .hl { white-space: nowrap; }                    /* keep "clearly explained" together */
.hero-v2 p.lead { font-size: 1rem; max-width: 560px; margin-bottom: 20px; text-wrap: pretty; }
.hero-grid { gap: 32px; }
.hero-visual { height: 380px; }
.hero-visual .glow { width: 360px; height: 360px; }
.hero-visual .orbit { width: 340px; height: 340px; }
.dna-wrap { width: 205px; }
.fc-1 { top: 12%; } .fc-2 { top: 50%; } .fc-3 { bottom: 4%; }

.stat-strip { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.stat-strip li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: #cfe2f2; font-size: .88rem; }
.stat-strip strong { color: #fff; font-weight: 700; }
.stat-strip svg { width: 16px; height: 16px; color: #7fd3ff; flex: none; }
.hero-v2 .quick-tags { margin-top: 12px; }
.overlap { margin-top: -52px; }

@media (max-width: 900px) {
  .hero-v2 { padding-top: 20px; }
  .hero-visual { height: 230px; }
  .hero-visual .glow, .hero-visual .orbit { width: 230px; height: 230px; }
  .dna-wrap { width: 130px; }
  .hero-v2 h1 { max-width: 20ch; }
}
@media (max-width: 560px) {
  .hero-visual { height: 190px; }
  .dna-wrap { width: 110px; }
  .stat-strip li { font-size: .8rem; padding: 6px 11px 6px 8px; }
}

/* =========================================================
   Unified dark header — flows into the navy hero / banners
   ========================================================= */
.site-header--dark { background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.07); }
.site-header--dark .container { min-height: 80px; }
.site-header--dark .brand img { height: 60px; }
.site-header--dark .brand-sub { font-size: 1rem; padding-left: 16px; }
.site-header--dark .brand-sub { color: #fff; border-left-color: rgba(255,255,255,.18); }
.site-header--dark .brand-sub small { color: #9fbdd6; }
.site-header--dark .nav a { color: #cfe2f2; }
.site-header--dark .nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.site-header--dark .nav a.active { background: rgba(255,255,255,.1); color: #fff; box-shadow: inset 0 -2px 0 #29abe2; }
.site-header--dark .nav-call { display: inline-flex; align-items: center; gap: 8px; margin-left: 10px;
  border: 1px solid rgba(255,255,255,.22); color: #fff !important; font-weight: 600; }
.site-header--dark .nav-call svg { width: 15px; height: 15px; color: #7fd3ff; }
.site-header--dark .nav-call:hover { border-color: #29abe2; background: rgba(41,171,226,.15) !important; }
.site-header--dark .nav-toggle { color: #fff; border-color: rgba(255,255,255,.25); }
/* banners start exactly at the header's navy so there is no seam */
.hero, .page-head, .detail-head { margin-top: -1px; }
@media (max-width: 760px) {
  .site-header--dark .nav { background: var(--navy); border-bottom-color: rgba(255,255,255,.08); box-shadow: 0 12px 30px rgba(3,20,36,.4); }
  .site-header--dark .nav-call { margin: 6px 0 0; justify-content: center; }
}

@media print {
  .page-head, .detail-head { background: #fff !important; color: #000; padding: 0 0 12px; }
  .detail-head h1, .detail-head .aka { color: #000; }
  .hero-pattern, .head-glow, .head-dna, .head-molecule, .head-wave, .title-icon { display: none !important; }
  .detail { margin-top: 0; }
  .detail-head .chip { color: #000; border-color: #999; }
}
