/* Premium clinical design system — used when Vite build is absent */
:root {
  --brand-navy: #0B2545;
  --brand-navy-dark: #07162C;
  --brand-green: #1E8449;
  --brand-green-dark: #145A32;
  --brand-green-pale: #E8F5E9;
  --radius-lg: 0.75rem;
  --shadow-soft: 0 1px 2px rgba(15, 23, 42, 0.05);
  --transition: 150ms ease-out;
}
:focus-visible { outline: 2px solid var(--brand-green); outline-offset: 2px; }
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: var(--brand-green); color: #fff; font-weight: 600; border-radius: 0.5rem;
  padding: 0.625rem 1rem; font-size: 0.875rem; transition: var(--transition); border: 0; cursor: pointer;
  text-decoration: none;
}
.btn-primary:hover { background: var(--brand-green-dark); }
.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: #fff; color: #1e293b; font-weight: 600; border-radius: 0.5rem;
  padding: 0.625rem 1rem; font-size: 0.875rem; border: 1px solid #e2e8f0; cursor: pointer;
  text-decoration: none;
}
.btn-secondary:hover { background: #f8fafc; }
.btn-navy {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-navy); color: #fff; font-weight: 600; border-radius: 0.5rem;
  padding: 0.625rem 1rem; font-size: 0.875rem; text-decoration: none;
}
.btn-ghost {
  display: inline-flex; align-items: center; color: #475569; font-weight: 600;
  border-radius: 0.5rem; padding: 0.5rem 0.75rem; font-size: 0.875rem; border: 0; background: transparent; cursor: pointer;
}
.panel, .card-surface, .clinical-section {
  background: #fff; border: 1px solid #e2e8f0; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft);
}
.clinical-section-header {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.75rem 1rem; border-bottom: 1px solid #f1f5f9;
}
.clinical-overline {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: #64748b;
}
.clinical-title { font-size: 0.875rem; font-weight: 700; color: #0f172a; }
.clinical-body, .clinical-lead { font-size: 0.9375rem; line-height: 1.65; color: #334155; max-width: 68ch; }
.clinical-lead { font-weight: 500; color: #1e293b; }
.fact-tile {
  border-radius: 0.5rem; border: 1px solid #e2e8f0; background: #f8fafc; padding: 0.625rem 0.75rem;
}
.fact-tile-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #64748b; }
.fact-tile-value { font-size: 0.875rem; font-weight: 600; color: #0f172a; margin-top: 0.125rem; line-height: 1.35; word-break: break-word; font-variant-numeric: tabular-nums; }
.spec-sheet { width: 100%; border-collapse: collapse; text-align: left; }
.spec-sheet tr { border-bottom: 1px solid #f1f5f9; }
.spec-sheet th {
  padding: 0.625rem 0.75rem 0.625rem 0; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; color: #94a3b8; vertical-align: top; width: 30%;
}
.spec-sheet td { padding: 0.625rem 0; font-size: 0.875rem; color: #334155; line-height: 1.5; vertical-align: top; }
.clinical-list { list-style: none; padding: 0; margin: 0; }
.clinical-list li { position: relative; padding-left: 1rem; margin-bottom: 0.5rem; font-size: 0.875rem; color: #334155; line-height: 1.55; }
.clinical-list li::before {
  content: ""; position: absolute; left: 0; top: 0.55rem; width: 0.375rem; height: 0.375rem;
  border-radius: 999px; background: rgba(11, 37, 69, 0.7);
}
.risk-banner { border-radius: 0.5rem; border: 2px solid #fca5a5; background: #fef2f2; padding: 0.75rem 1rem; }
.risk-banner-title { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: #b91c1c; }
.severity-severe { border-left: 4px solid #dc2626; background: #fef2f2; color: #450a0a; }
.severity-moderate { border-left: 4px solid #f59e0b; background: #fffbeb; color: #451a03; }
.severity-mild { border-left: 4px solid #3b82f6; background: #eff6ff; color: #172554; }
.chip {
  display: inline-flex; align-items: center; border-radius: 0.375rem; padding: 0.125rem 0.5rem;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
}
.chip-eml { background: #dbeafe; color: #1e40af; }
.chip-alert { background: #fee2e2; color: #991b1b; }
.chip-pom { background: #f1f5f9; color: #334155; }
.chip-verified { background: var(--brand-green); color: #fff; }
.chip-pro { background: var(--brand-navy); color: #fff; }
.chip-free { background: #f1f5f9; color: #475569; }
.chip-source { background: #d1fae5; color: #065f46; }
.chip-review { background: #fef3c7; color: #78350f; }
.market-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem;
  border-radius: 0.5rem; border: 1px solid #a7f3d0; background: rgba(236, 253, 245, 0.6); padding: 0.75rem;
}
.market-strip .label { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(4, 120, 87, 0.85); }
.market-strip .value { font-size: 0.875rem; font-weight: 700; color: var(--brand-navy); font-variant-numeric: tabular-nums; }
.moa-chain { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.moa-step {
  border-radius: 0.375rem; border: 1px solid #e2e8f0; background: #f8fafc;
  padding: 0.375rem 0.625rem; font-size: 11px; font-weight: 600; color: #1e293b;
}
.moa-arrow { color: #cbd5e1; font-size: 0.75rem; font-weight: 700; }
.trust-line { font-size: 12px; color: #64748b; font-weight: 500; }
.nav-link { font-size: 0.875rem; font-weight: 600; color: #475569; padding: 0.5rem 0; text-decoration: none; }
.nav-link:hover { color: var(--brand-navy); }
.nav-link-active { color: var(--brand-green); border-bottom: 2px solid var(--brand-green); font-weight: 700; }
.landing-section { padding: 4rem 0; }
.landing-h2 { font-size: 1.75rem; font-weight: 700; color: var(--brand-navy); letter-spacing: -0.02em; }
.landing-lead { color: #64748b; font-size: 0.9375rem; max-width: 42rem; }
.mobile-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  background: #fff; border-top: 1px solid #e2e8f0;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.mobile-bottom-nav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.125rem; padding: 0.5rem 0; font-size: 10px; font-weight: 600; color: #64748b; text-decoration: none;
}
.mobile-bottom-nav a.active { color: var(--brand-green); }
@media (min-width: 1024px) {
  .mobile-bottom-nav { display: none; }
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Density */
body.density-compact .clinical-body,
body.density-compact .clinical-lead { font-size: 0.8125rem; line-height: 1.45; }
body.density-compact .fact-tile { padding: 0.4rem 0.55rem; }
body.density-compact .panel,
body.density-compact .clinical-section,
body.density-compact .calc-instrument { border-radius: 0.5rem; }
body.density-compact .calc-instrument { padding: 1rem !important; }
body.density-compact .landing-section { padding: 2.5rem 0; }

/* Calculator instrument */
.calc-instrument { position: relative; }
.calc-result .text-3xl { letter-spacing: -0.03em; }
.calc-assumptions { margin-top: 0.5rem; }

/* Interaction matrix cells hover */
table .rounded-md { transition: transform 120ms ease-out; }
table .rounded-md:hover { transform: scale(1.06); }
