/* ═══════════════════════════════════════════════════
   UK Pandemic Preparedness Strategy — v4
   Clean, magazine-style layout with sidebar navigation
   ═══════════════════════════════════════════════════ */

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; margin: 0; overflow-x: hidden; }

/* ─── Reading Progress Bar ─── */
.reading-bar {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 999;
  background: linear-gradient(90deg, #005eb8, #6366f1);
  width: 0; transition: width .12s linear; border-radius: 0 2px 2px 0;
}

/* ═══════════════════════════════════════════════════
   SIDEBAR (Desktop)
   ═══════════════════════════════════════════════════ */
.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; width: 260px;
  background: #0f172a; color: #94a3b8;
  display: flex; flex-direction: column;
  z-index: 80; overflow: hidden;
  border-right: 1px solid #1e293b;
}

.sidebar-header {
  padding: 1.25rem 1.25rem 1rem;
  display: flex; align-items: center; gap: .75rem;
  border-bottom: 1px solid #1e293b;
}
.sidebar-logo {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, #005eb8, #6366f1);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: .875rem; flex-shrink: 0;
}
.sidebar-title-main { display: block; font-size: .8125rem; font-weight: 700; color: #e2e8f0; line-height: 1.2; }
.sidebar-title-sub { display: block; font-size: .625rem; color: #64748b; font-weight: 500; letter-spacing: .03em; }

.sidebar-nav {
  flex: 1; overflow-y: auto; padding: .75rem .75rem;
  scrollbar-width: thin; scrollbar-color: #334155 transparent;
}
.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav::-webkit-scrollbar-thumb { background: #334155; border-radius: 2px; }

/* Sidebar nav items */
.snav-group { margin-bottom: .375rem; }
.snav-label {
  font-size: .5625rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: #475569; padding: .5rem .75rem .25rem;
}
.snav-item {
  display: flex; align-items: center; gap: .625rem;
  padding: .5rem .75rem; border-radius: .5rem; cursor: pointer;
  font-size: .8125rem; font-weight: 500; color: #94a3b8;
  transition: all .15s ease; border: 1px solid transparent;
  margin-bottom: 1px; text-decoration: none; width: 100%;
  background: none;
}
.snav-item:hover { background: #1e293b; color: #e2e8f0; }
.snav-item.active {
  background: rgba(99, 102, 241, .12); color: #a5b4fc;
  border-color: rgba(99, 102, 241, .2); font-weight: 600;
}
.snav-item .snav-icon {
  width: 28px; height: 28px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: .625rem; flex-shrink: 0;
  background: #1e293b; color: #64748b; transition: all .15s;
}
.snav-item.active .snav-icon { background: rgba(99, 102, 241, .2); color: #a5b4fc; }
.snav-item:hover .snav-icon { color: #94a3b8; }
.snav-item .snav-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Sidebar footer */
.sidebar-footer {
  padding: .75rem; border-top: 1px solid #1e293b;
  display: flex; flex-direction: column; gap: .5rem;
}
.sidebar-search-btn {
  display: flex; align-items: center; gap: .5rem;
  padding: .5rem .75rem; border-radius: .5rem;
  background: #1e293b; border: 1px solid #334155;
  color: #64748b; font-size: .75rem; cursor: pointer;
  transition: all .15s; width: 100%;
}
.sidebar-search-btn:hover { background: #334155; color: #94a3b8; }
.sidebar-search-btn span { flex: 1; text-align: left; }
.sidebar-search-btn kbd {
  font-size: .5625rem; background: #0f172a; padding: .125rem .375rem;
  border-radius: .25rem; border: 1px solid #334155; font-family: inherit;
}
.sidebar-link {
  display: flex; align-items: center; gap: .5rem;
  padding: .375rem .75rem; font-size: .6875rem; color: #64748b;
  text-decoration: none; transition: color .15s;
}
.sidebar-link:hover { color: #94a3b8; }

/* ═══════════════════════════════════════════════════
   MOBILE TOP BAR
   ═══════════════════════════════════════════════════ */
.mobile-bar {
  display: none; position: fixed; top: 0; left: 0; right: 0;
  z-index: 80; background: rgba(255,255,255,.95);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid #e2e8f0;
}
.mobile-bar-inner { padding: .625rem 1rem; display: flex; align-items: center; justify-content: space-between; }
.mobile-logo {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, #005eb8, #6366f1);
  display: flex; align-items: center; justify-content: center; color: white;
}
.mobile-search-btn {
  width: 36px; height: 36px; border-radius: .5rem;
  background: #f1f5f9; border: 1px solid #e2e8f0;
  color: #64748b; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .15s;
}
.mobile-search-btn:hover { background: #e2e8f0; }

/* ═══════════════════════════════════════════════════
   MOBILE BOTTOM NAV
   ═══════════════════════════════════════════════════ */
.mobile-bottom-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 80; background: rgba(255,255,255,.97);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid #e2e8f0;
  overflow-x: auto; white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  padding: .375rem .5rem .5rem;
  scrollbar-width: none;
}
.mobile-bottom-nav::-webkit-scrollbar { display: none; }
.mnav-item {
  display: inline-flex; flex-direction: column; align-items: center;
  gap: .125rem; padding: .25rem .625rem;
  font-size: .5625rem; font-weight: 600; color: #94a3b8;
  cursor: pointer; border-radius: .5rem; transition: all .15s;
  border: none; background: none; min-width: 52px;
}
.mnav-item:hover { color: #475569; }
.mnav-item.active { color: #4f46e5; }
.mnav-item i { font-size: .875rem; margin-bottom: .0625rem; }

/* ═══════════════════════════════════════════════════
   MAIN CONTENT AREA
   ═══════════════════════════════════════════════════ */
.main-content {
  margin-left: 260px;
  min-height: 100vh;
  padding: 2rem 2.5rem 4rem;
  max-width: calc(100% - 260px);
}

.content-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.loading-state {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-height: 60vh;
}
.loading-spinner {
  width: 40px; height: 40px;
  border: 3px solid #e2e8f0; border-top-color: #6366f1;
  border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════════
   SEARCH OVERLAY
   ═══════════════════════════════════════════════════ */
.search-overlay {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, .5);
  backdrop-filter: blur(8px);
  z-index: 200; display: flex;
  align-items: flex-start; justify-content: center;
  padding-top: 12vh;
  animation: fadeIn .15s ease;
}
.search-overlay.hidden { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.search-modal {
  background: white; border-radius: 1rem;
  width: 90%; max-width: 600px;
  box-shadow: 0 25px 80px rgba(0,0,0,.25);
  overflow: hidden;
}
.search-header {
  display: flex; align-items: center; gap: .75rem;
  padding: 1rem 1.25rem; border-bottom: 1px solid #e2e8f0;
}
.search-field {
  flex: 1; border: none; outline: none;
  font-size: 1rem; font-weight: 500; color: #1e293b;
  font-family: inherit; background: transparent;
}
.search-close-btn {
  background: #f1f5f9; border: 1px solid #e2e8f0;
  border-radius: .375rem; padding: .25rem .5rem;
  cursor: pointer; color: #64748b;
  transition: all .15s;
}
.search-close-btn:hover { background: #e2e8f0; }
.search-results {
  max-height: 50vh; overflow-y: auto; padding: .5rem;
}
.search-result-item {
  display: flex; align-items: start; gap: .75rem;
  padding: .75rem; border-radius: .5rem;
  cursor: pointer; transition: background .1s;
  border: none; width: 100%; text-align: left; background: none;
}
.search-result-item:hover { background: #f1f5f9; }

/* ═══════════════════════════════════════════════════
   HERO SECTION (Inline, not full-bleed)
   ═══════════════════════════════════════════════════ */
.hero {
  background: linear-gradient(135deg, #0f172a, #1e293b 40%, #312e81);
  border-radius: 1.25rem; padding: 2.5rem;
  color: white; position: relative; overflow: hidden;
  margin-bottom: 2rem;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(99,102,241,.15), transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(0,94,184,.1), transparent 50%);
}
.hero-content { position: relative; z-index: 2; }
.hero-eyebrow {
  font-size: .625rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .15em; color: rgba(255,255,255,.5); margin-bottom: .75rem;
}
.hero h1 {
  font-size: 2rem; font-weight: 900; line-height: 1.15;
  letter-spacing: -.02em; margin: 0 0 .75rem;
}
.hero h1 .text-accent {
  background: linear-gradient(135deg, #818cf8, #c084fc);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: .9375rem; color: rgba(255,255,255,.7);
  line-height: 1.7; margin-bottom: 1.5rem; max-width: 32rem;
}
.hero-stats {
  display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem;
}
.hero-pill {
  display: inline-flex; align-items: center; gap: .375rem;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  padding: .375rem .875rem; border-radius: 100px;
  font-size: .75rem; color: rgba(255,255,255,.8);
  transition: all .2s;
}
.hero-pill:hover { background: rgba(255,255,255,.14); transform: translateY(-1px); }
.hero-pill strong { color: white; font-weight: 800; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.btn-primary {
  display: inline-flex; align-items: center; gap: .375rem;
  background: white; color: #1e293b;
  padding: .625rem 1.375rem; border-radius: 100px;
  font-size: .8125rem; font-weight: 700; border: none;
  cursor: pointer; transition: all .2s;
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,0,0,.2); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: .375rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.9);
  padding: .625rem 1.375rem; border-radius: 100px;
  font-size: .8125rem; font-weight: 600;
  cursor: pointer; transition: all .2s;
}
.btn-ghost:hover { background: rgba(255,255,255,.15); }

/* ═══════════════════════════════════════════════════
   RISK BANNER
   ═══════════════════════════════════════════════════ */
.risk-banner {
  background: linear-gradient(135deg, #fef2f2, #fff1f2);
  border: 1px solid #fecaca; border-radius: 1rem;
  padding: 1.5rem; margin-bottom: 2rem;
}
.risk-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem;
}
.risk-stat {
  text-align: center; padding: .75rem;
  background: white; border-radius: .75rem;
  border: 1px solid #fecaca;
  transition: transform .2s;
}
.risk-stat:hover { transform: translateY(-2px); }
.risk-stat-icon { font-size: 1.25rem; margin-bottom: .375rem; }
.risk-stat-num { font-size: 1.5rem; font-weight: 900; color: #991b1b; line-height: 1.1; }
.risk-stat-label { font-size: .625rem; color: #dc2626; font-weight: 500; margin-top: .125rem; }

/* ═══════════════════════════════════════════════════
   SECTION STYLES
   ═══════════════════════════════════════════════════ */
.sec-header { margin-bottom: 1.75rem; }
.sec-header h2 {
  font-size: 1.625rem; font-weight: 800; color: #0f172a;
  letter-spacing: -.025em; line-height: 1.2; margin: 0 0 .5rem;
}
.sec-header p {
  font-size: .9375rem; color: #64748b; line-height: 1.7;
  max-width: 36rem; margin: 0;
}
.sec-badge {
  display: inline-flex; align-items: center; gap: .375rem;
  font-size: .5625rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; padding: .25rem .625rem;
  border-radius: 100px; margin-bottom: .5rem;
}

/* TL;DR / Key Takeaway */
.tldr {
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
  border: 1px solid #c7d2fe; border-radius: .875rem;
  padding: 1rem 1.25rem; margin-bottom: 1.5rem;
  display: flex; align-items: flex-start; gap: .75rem;
}
.tldr-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: #6366f1; color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; flex-shrink: 0;
}
.tldr-text {
  font-size: .875rem; color: #3730a3; line-height: 1.65; font-weight: 500;
}

/* Cards */
.card {
  background: white; border-radius: 1rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  transition: all .25s cubic-bezier(.4,0,.2,1);
}
.card:hover { box-shadow: 0 8px 30px -8px rgba(0,0,0,.1); transform: translateY(-2px); }

.panel {
  background: white; border-radius: 1rem;
  border: 1px solid #e2e8f0; padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  margin-bottom: 1rem;
}

/* ═══════════════════════════════════════════════════
   BIOR.TECH–INSPIRED CARD SYSTEM
   Adapted from bior.tech — glass-morphism + accent borders
   ═══════════════════════════════════════════════════ */

/* ─── Country Index Cards ─── */
.bior-card {
  position: relative; overflow: hidden;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 0 0 0 rgba(0,168,107,0);
  transition: all .35s cubic-bezier(.4,0,.2,1);
}
.bior-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(90deg, rgba(0,0,0,.06), rgba(0,0,0,.03));
  transition: all .35s ease;
}
.bior-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px -12px rgba(0,0,0,.12), 0 0 0 1px rgba(0,168,107,.1);
  border-color: rgba(0,168,107,.15);
  background: rgba(255,255,255,1);
}
/* Accent color top-bar variants (BIOR.TECH style) */
.bior-card.accent-green::before { background: linear-gradient(90deg, #00A86B, #34d399); }
.bior-card.accent-green:hover { border-color: rgba(0,168,107,.2); box-shadow: 0 16px 48px -12px rgba(0,168,107,.1); }
.bior-card.accent-blue::before { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.bior-card.accent-blue:hover { border-color: rgba(59,130,246,.2); box-shadow: 0 16px 48px -12px rgba(59,130,246,.1); }
.bior-card.accent-red::before { background: linear-gradient(90deg, #ef4444, #f87171); }
.bior-card.accent-red:hover { border-color: rgba(239,68,68,.2); box-shadow: 0 16px 48px -12px rgba(239,68,68,.08); }
.bior-card.accent-amber::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.bior-card.accent-amber:hover { border-color: rgba(245,158,11,.2); box-shadow: 0 16px 48px -12px rgba(245,158,11,.08); }
.bior-card.accent-purple::before { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.bior-card.accent-purple:hover { border-color: rgba(139,92,246,.2); box-shadow: 0 16px 48px -12px rgba(139,92,246,.08); }
.bior-card.accent-indigo::before { background: linear-gradient(90deg, #4f46e5, #818cf8); }
.bior-card.accent-indigo:hover { border-color: rgba(79,70,229,.2); box-shadow: 0 16px 48px -12px rgba(79,70,229,.08); }

/* ─── KPI Stat Cards (BIOR.TECH) ─── */
.bior-kpi {
  position: relative; overflow: hidden;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 16px;
  padding: 1rem;
  text-align: center;
  transition: all .3s ease;
}
.bior-kpi::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  border-radius: 16px 16px 0 0;
  background: rgba(0,0,0,.06); transition: all .3s ease;
}
.bior-kpi:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px -8px rgba(0,0,0,.1);
  border-color: rgba(0,168,107,.15);
}
.bior-kpi .kpi-value { font-size: 1.75rem; font-weight: 900; line-height: 1.1; }
.bior-kpi .kpi-label { font-size: .625rem; font-weight: 700; color: #94a3b8; letter-spacing: .05em; text-transform: uppercase; margin-top: .375rem; }
/* KPI accent bars */
.bior-kpi.accent-green::before { background: linear-gradient(90deg, #00A86B, #34d399); }
.bior-kpi.accent-blue::before { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.bior-kpi.accent-purple::before { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.bior-kpi.accent-amber::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.bior-kpi.accent-red::before { background: linear-gradient(90deg, #ef4444, #f87171); }
.bior-kpi.accent-indigo::before { background: linear-gradient(90deg, #4f46e5, #818cf8); }

/* ─── Metric Cells (small stat boxes inside cards) ─── */
.bior-metric {
  background: linear-gradient(135deg, rgba(248,250,252,.8), rgba(241,245,249,.6));
  border: 1px solid rgba(0,0,0,.04);
  border-radius: 12px; padding: .625rem .5rem;
  text-align: center; transition: all .25s ease;
}
.bior-metric:hover { background: rgba(248,250,252,1); border-color: rgba(0,168,107,.12); }
.bior-metric .metric-value { font-size: .6875rem; font-weight: 800; color: #1e293b; }
.bior-metric .metric-label { font-size: .5rem; font-weight: 600; color: #94a3b8; text-transform: uppercase; letter-spacing: .04em; margin-top: .125rem; }
.bior-metric.metric-danger { background: linear-gradient(135deg, rgba(254,242,242,.7), rgba(254,226,226,.5)); border-color: rgba(239,68,68,.08); }
.bior-metric.metric-danger .metric-value { color: #991b1b; }

/* ─── Panel Card (BIOR.TECH panel-card) ─── */
.bior-panel {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 16px; padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.03);
  transition: all .3s ease;
  margin-bottom: 1rem;
}
.bior-panel:hover { border-color: rgba(0,0,0,.1); box-shadow: 0 4px 16px rgba(0,0,0,.06); }

/* ─── Date Badge (prominent calendar banner) ─── */
.bior-date-badge {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem; border-radius: 14px;
  background: linear-gradient(135deg, rgba(239,246,255,.8), rgba(219,234,254,.5));
  border: 1px solid rgba(59,130,246,.1);
  transition: all .25s ease;
}
.bior-date-badge:hover { border-color: rgba(59,130,246,.2); background: rgba(239,246,255,.95); }
.bior-date-badge .date-icon {
  width: 2.5rem; height: 2.5rem; border-radius: 12px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; box-shadow: 0 4px 12px rgba(37,99,235,.25);
}
.bior-date-badge .date-icon i { color: white; font-size: 1rem; }
.bior-date-badge .date-eyebrow { font-size: .5625rem; font-weight: 700; color: rgba(59,130,246,.6); text-transform: uppercase; letter-spacing: .08em; }
.bior-date-badge .date-value { font-size: .9375rem; font-weight: 800; color: #1e3a5f; line-height: 1.2; }
.bior-date-badge .date-sub { font-size: .5625rem; color: rgba(59,130,246,.5); margin-top: .125rem; }

/* ─── Source Badge (official source tag) ─── */
.bior-source-tag {
  display: inline-flex; align-items: center; gap: .375rem;
  font-size: .5625rem; font-weight: 700;
  background: linear-gradient(135deg, #00A86B, #008F5B);
  color: white; padding: .3125rem .625rem .3125rem .3125rem;
  border-radius: 10px; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,168,107,.2);
  transition: all .25s ease; position: relative;
  overflow: hidden; text-decoration: none;
}
.bior-source-tag::after {
  content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent);
  transition: left .5s ease;
}
.bior-source-tag:hover { background: linear-gradient(135deg, #00c77b, #00A86B); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,168,107,.3); }
.bior-source-tag:hover::after { left: 100%; }
.bior-source-tag .source-icon {
  width: 1.125rem; height: 1.125rem; border-radius: 6px;
  background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.bior-source-tag .source-icon i { font-size: .5rem; }

/* ─── Dimension Bars (score indicators) ─── */
.bior-dim-bar .dim-track {
  height: 3px; border-radius: 3px; background: rgba(0,0,0,.05);
  margin-top: .1875rem; overflow: hidden;
}
.bior-dim-bar .dim-fill {
  height: 100%; border-radius: 3px;
  transition: width .6s cubic-bezier(.4,0,.2,1);
}
.bior-dim-bar .dim-label { font-size: .4375rem; font-weight: 600; color: #94a3b8; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bior-dim-bar .dim-score { font-size: .5rem; font-weight: 800; text-align: center; margin-top: .125rem; }

/* ─── Progress Track (BIOR.TECH ring-inspired) ─── */
.bior-progress {
  height: .5rem; border-radius: .5rem; overflow: hidden;
  background: linear-gradient(90deg, rgba(0,0,0,.03), rgba(0,0,0,.05));
}
.bior-progress .progress-fill {
  height: 100%; border-radius: .5rem;
  transition: width .8s cubic-bezier(.4,0,.2,1);
  box-shadow: inset 0 1px 2px rgba(255,255,255,.3);
}

/* ─── Strength/Gap Pills ─── */
.bior-strength-pill {
  display: inline-flex; align-items: center; gap: .25rem;
  font-size: .5625rem; font-weight: 600; padding: .1875rem .5rem;
  border-radius: 8px;
}
.bior-strength-pill.strength { background: rgba(0,168,107,.08); color: #059669; border: 1px solid rgba(0,168,107,.12); }
.bior-strength-pill.gap { background: rgba(239,68,68,.06); color: #dc2626; border: 1px solid rgba(239,68,68,.1); }

/* ─── UK Featured Card (dark glass) ─── */
.bior-card-featured {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 40%, #312e81);
  border: 2px solid rgba(79,70,229,.4);
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(79,70,229,.12);
  transition: all .35s cubic-bezier(.4,0,.2,1);
  color: white;
}
.bior-card-featured::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(99,102,241,.15), transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(0,168,107,.08), transparent 50%);
  pointer-events: none;
}
.bior-card-featured:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 56px -12px rgba(79,70,229,.2);
  border-color: rgba(99,102,241,.5);
}

/* ─── Glass Metric (inside dark featured card) ─── */
.glass-metric {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px; padding: .625rem;
  text-align: center; backdrop-filter: blur(4px);
  transition: all .25s ease;
}
.glass-metric:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.2); }

/* ─── Shimmer effect (BIOR.TECH btn hover) ─── */
.bior-shimmer { position: relative; overflow: hidden; }
.bior-shimmer::after {
  content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
  transition: left .5s ease; pointer-events: none;
}
.bior-shimmer:hover::after { left: 100%; }

/* ─── Footer tag (bottom of card) ─── */
.bior-card-footer {
  padding-top: .75rem; margin-top: .75rem;
  border-top: 1px solid rgba(0,0,0,.06);
  display: flex; align-items: center; justify-content: space-between;
}

/* ═══════════════════════════════════════════════════ */

/* Callout boxes */
.callout { border-radius: .875rem; padding: 1.125rem 1.25rem; }
.callout-blue { background: linear-gradient(135deg, #eff6ff, #dbeafe); border: 1px solid #bfdbfe; }
.callout-green { background: linear-gradient(135deg, #f0fdf4, #dcfce7); border: 1px solid #bbf7d0; }
.callout-red { background: linear-gradient(135deg, #fef2f2, #fee2e2); border: 1px solid #fecaca; }
.callout-amber { background: linear-gradient(135deg, #fffbeb, #fef3c7); border: 1px solid #fde68a; }
.callout-purple { background: linear-gradient(135deg, #faf5ff, #f3e8ff); border: 1px solid #e9d5ff; }
.callout-dark { background: linear-gradient(135deg, #0f172a, #1e293b); border: 1px solid #334155; color: #e2e8f0; }

/* Badge */
.badge {
  display: inline-flex; align-items: center; gap: .25rem;
  font-size: .5625rem; font-weight: 700; padding: .1875rem .5rem;
  border-radius: 100px; letter-spacing: .02em;
}

/* Step number */
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.75rem; height: 1.75rem; border-radius: 50%;
  font-size: .6875rem; font-weight: 800; flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════
   COLLAPSIBLE / ACCORDION
   ═══════════════════════════════════════════════════ */
.accordion-trigger {
  width: 100%; display: flex; align-items: center;
  justify-content: space-between; cursor: pointer;
  padding: 0; background: none; border: none;
  text-align: left;
}
.accordion-body {
  max-height: 0; overflow: hidden;
  transition: max-height .4s cubic-bezier(.4,0,.2,1);
}
.accordion-body.open { max-height: 12000px; transition: max-height .6s ease-in; }
.accordion-chevron { transition: transform .25s ease; color: #94a3b8; }
.accordion-chevron.rotated { transform: rotate(180deg); }

/* ═══════════════════════════════════════════════════
   STATUS BADGES
   ═══════════════════════════════════════════════════ */
.status-met { background: #dcfce7; color: #166534; }
.status-partial { background: #fef3c7; color: #92400e; }
.status-unclear { background: #f1f5f9; color: #475569; }
.status-unmet { background: #fecaca; color: #991b1b; }

/* ═══════════════════════════════════════════════════
   GOAL STRIPE ACCENTS
   ═══════════════════════════════════════════════════ */
.goal-1 { border-left: 4px solid #2563eb; }
.goal-2 { border-left: 4px solid #059669; }
.goal-3 { border-left: 4px solid #7c3aed; }
.goal-4 { border-left: 4px solid #dc2626; }
.goal-5 { border-left: 4px solid #ea580c; }

/* ═══════════════════════════════════════════════════
   CHARTS
   ═══════════════════════════════════════════════════ */
.chart-box { position: relative; width: 100%; }
.chart-box canvas { max-height: 320px; }
.donut-center {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center; pointer-events: none;
}

/* ═══════════════════════════════════════════════════
   TIMELINE
   ═══════════════════════════════════════════════════ */
.tl { position: relative; padding-left: 2rem; }
.tl::before {
  content: ''; position: absolute;
  left: .5625rem; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(to bottom, #6366f1, #a5b4fc, #e2e8f0);
  border-radius: 1px;
}
.tl-item { position: relative; padding-bottom: .75rem; }
.tl-dot {
  position: absolute; left: -2rem;
  width: 1.25rem; height: 1.25rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid white;
  box-shadow: 0 1px 4px rgba(0,0,0,.1);
  z-index: 2; top: .375rem;
}

/* ═══════════════════════════════════════════════════
   PROGRESS BARS / GANTT
   ═══════════════════════════════════════════════════ */
.pbar { transition: width 1s cubic-bezier(.25,.8,.25,1); border-radius: 4px; }
.gbar { transition: width 1s cubic-bezier(.25,.8,.25,1) .2s; border-radius: 4px; }

/* ═══════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════ */
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
.fade-up.vis { opacity: 1; transform: translateY(0); }

.stagger > * { opacity: 0; transform: translateY(12px); animation: stIn .4s ease forwards; }
@keyframes stIn { to { opacity: 1; transform: translateY(0); } }
.stagger > *:nth-child(1){animation-delay:.04s}.stagger > *:nth-child(2){animation-delay:.08s}
.stagger > *:nth-child(3){animation-delay:.12s}.stagger > *:nth-child(4){animation-delay:.16s}
.stagger > *:nth-child(5){animation-delay:.2s}.stagger > *:nth-child(6){animation-delay:.24s}
.stagger > *:nth-child(7){animation-delay:.28s}.stagger > *:nth-child(8){animation-delay:.32s}
.stagger > *:nth-child(9){animation-delay:.36s}.stagger > *:nth-child(10){animation-delay:.4s}
.stagger > *:nth-child(11){animation-delay:.44s}.stagger > *:nth-child(12){animation-delay:.48s}

.pulse-dot { animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

.shimmer { position: relative; overflow: hidden; }
.shimmer::after {
  content:''; position:absolute; top:0; left:-75%;
  width:50%; height:100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.1), transparent);
}
.shimmer:hover::after { animation: shimAnim .6s ease forwards; }
@keyframes shimAnim { to { left: 125%; } }

/* ═══════════════════════════════════════════════════
   GUIDED TOUR
   ═══════════════════════════════════════════════════ */
.tour-overlay {
  position: fixed; inset: 0;
  background: rgba(15,23,42,.5);
  backdrop-filter: blur(4px);
  z-index: 300; display: flex;
  align-items: center; justify-content: center;
}
.tour-overlay.hidden { display: none; }
.tour-card {
  background: white; border-radius: 1.25rem;
  padding: 1.75rem; max-width: 440px; width: 90%;
  position: relative;
  box-shadow: 0 25px 60px rgba(0,0,0,.2);
  animation: tourPop .25s ease;
}
@keyframes tourPop { from { transform: scale(.93); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.tour-dots { display: flex; gap: 3px; margin-bottom: .875rem; }
.tour-dot {
  width: 20px; height: 3px; border-radius: 2px;
  background: #e2e8f0; transition: all .25s;
}
.tour-dot.active { background: #6366f1; width: 28px; }
.tour-dot.done { background: #10b981; }
.tour-title { font-size: 1.125rem; font-weight: 800; color: #0f172a; margin-bottom: .375rem; }
.tour-desc { font-size: .875rem; color: #64748b; line-height: 1.7; }
.tour-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 1.25rem; }
.tour-counter { font-size: .75rem; color: #94a3b8; }
.tour-btn-next {
  background: #4f46e5; color: white;
  padding: .4375rem 1.125rem; border-radius: 100px;
  font-size: .8125rem; font-weight: 600;
  border: none; cursor: pointer; transition: all .15s;
}
.tour-btn-next:hover { background: #4338ca; }
.tour-btn-back {
  background: #f1f5f9; color: #64748b;
  padding: .4375rem 1.125rem; border-radius: 100px;
  font-size: .8125rem; font-weight: 600;
  border: none; cursor: pointer; transition: all .15s;
}
.tour-btn-back:hover { background: #e2e8f0; }
.tour-x {
  position: absolute; top: .75rem; right: .75rem;
  width: 1.75rem; height: 1.75rem; border-radius: 50%;
  background: #f1f5f9; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #94a3b8; font-size: .75rem; transition: all .15s;
}
.tour-x:hover { background: #e2e8f0; color: #475569; }

/* ═══════════════════════════════════════════════════
   BACK TO TOP
   ═══════════════════════════════════════════════════ */
.btt {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  width: 2.5rem; height: 2.5rem;
  background: #4f46e5; color: white; border: none;
  border-radius: 50%; box-shadow: 0 4px 16px rgba(79,70,229,.3);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: all .25s;
  z-index: 40; font-size: .75rem;
}
.btt.vis { opacity: 1; pointer-events: auto; }
.btt:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(79,70,229,.4); }

/* ═══════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════ */
.site-footer {
  background: #0f172a; color: #64748b;
  margin-left: 260px;
}
.footer-inner { max-width: 900px; margin: 0 auto; padding: 3rem 2.5rem 2rem; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer-heading { font-size: .8125rem; font-weight: 700; color: #e2e8f0; margin-bottom: .75rem; }
.footer-text { font-size: .75rem; line-height: 1.7; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .375rem; }
.footer-links a { font-size: .75rem; color: #64748b; text-decoration: none; transition: color .15s; }
.footer-links a:hover { color: #e2e8f0; }
.footer-bottom {
  border-top: 1px solid #1e293b; margin-top: 2rem;
  padding-top: 1.5rem; text-align: center;
  font-size: .625rem; color: #475569;
}

/* ═══════════════════════════════════════════════════
   SVG FLOW NODES
   ═══════════════════════════════════════════════════ */
.flow-node { transition: all .2s; cursor: pointer; }
.flow-node:hover { transform: scale(1.03); filter: brightness(1.05); }

/* ═══════════════════════════════════════════════════
   SCROLLBAR (Main)
   ═══════════════════════════════════════════════════ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .sidebar { display: none; }
  .mobile-bar { display: block; }
  .mobile-bottom-nav { display: flex; }
  .main-content { margin-left: 0; padding: 3.5rem 1rem 5rem; max-width: 100%; }
  .site-footer { margin-left: 0; }
  .footer-inner { padding: 2rem 1rem 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .btt { bottom: 5rem; right: 1rem; }
}

@media (max-width: 640px) {
  .hero { padding: 1.5rem; border-radius: 1rem; }
  .hero h1 { font-size: 1.5rem; }
  .hero-desc { font-size: .8125rem; }
  .sec-header h2 { font-size: 1.25rem; }
  .risk-grid { grid-template-columns: repeat(2, 1fr); }
  .risk-stat-num { font-size: 1.125rem; }
  .panel { padding: 1rem; }
  .chart-box canvas { max-height: 220px; }
  .tldr { flex-direction: column; gap: .5rem; }
  .tldr-icon { width: 24px; height: 24px; font-size: .625rem; }
}

/* ═══════════════════════════════════════════════════
   PRINT
   ═══════════════════════════════════════════════════ */
@media print {
  .no-print, .sidebar, .mobile-bar, .mobile-bottom-nav, .btt { display: none !important; }
  .main-content { margin-left: 0 !important; padding: 1rem !important; max-width: 100% !important; }
  .site-footer { margin-left: 0 !important; }
  body { font-size: 11pt; }
  .card, .panel { break-inside: avoid; }
  .fade-up { opacity: 1 !important; transform: none !important; }
  .stagger > * { opacity: 1 !important; animation: none !important; transform: none !important; }
  canvas { max-width: 100% !important; height: auto !important; }
}
