:root {
  --ink: #0f172a;        /* headings / primary text */
  --slate: #475569;      /* body text */
  --slate-soft: #94a3b8; /* muted labels, counts */
  --paper: #ffffff;      /* page background */
  --tint: #f8fafc;       /* subtle section backgrounds */
  --tint-deep: #f1f5f9;  /* filter bar / active chip background */
  --rule: #e2e8f0;       /* borders */
  --blue: #2563eb;       /* primary accent */
  --blue-dark: #1d4ed8;  /* hover */
  --blue-light: #eff6ff; /* tints, badge backgrounds */
  --green: #059669;      /* investor/secondary tag accent */
  --green-light: #ecfdf5;
  --amber: #d97706;      /* funder/studio badge accent */
  --amber-light: #fffbeb;
  --purple: #7c3aed;     /* PE / "both" badge accent */
  --purple-light: #f5f3ff;
  --cyan: #0891b2;       /* NHS/HSE badge accent */
  --cyan-light: #ecfeff;
  --red: #dc2626;        /* count badges */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', 'DM Sans', sans-serif;
  background: var(--tint-deep);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* ── PAGE SHELL ──
   Wraps everything between nav and footer in a fixed-width column,
   so the page reads as a visible, bordered column on wide/standard
   laptop screens instead of stretching edge to edge. */
.page-shell {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  background: var(--paper);
  border-left: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  box-shadow: 0 0 40px rgba(15,23,42,0.04);
}

a { color: inherit; }

/* ── NAV ── */
nav {
  background: var(--paper);
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  height: 100%;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--blue);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}
.nav-logo {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}
.nav-logo span { font-weight: 400; color: var(--slate); }
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 210;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
nav.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
nav.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
nav.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-links {
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  position: absolute;
  top: 64px;
  right: 0;
  min-width: 210px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: none;
  border-radius: 0 0 0 12px;
  padding: 8px;
  box-shadow: 0 16px 28px rgba(15,23,42,0.10);
}
nav.nav-open .nav-links { display: flex; }
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--slate);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 8px;
  transition: all 0.15s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--ink); background: var(--tint); }
.nav-links a.active { color: var(--ink); background: var(--tint-deep); }
.nav-links .nav-cta { background: var(--blue); color: white; margin-top: 4px; text-align: center; }
.nav-links .nav-cta:hover { background: var(--blue-dark); color: white; }
.beta-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-light);
  border-radius: 4px;
  padding: 1px 5px;
  margin-left: 6px;
  vertical-align: middle;
}

/* ── HERO ── */
.hero {
  background: var(--paper);
  padding: 72px 0 48px;
  border-bottom: 1px solid var(--rule);
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
}
.hero h1 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(32px, 4.4vw, 48px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 680px;
  margin: 0 auto 20px;
  color: var(--ink);
}
.hero p { font-size: 16px; color: var(--slate); max-width: 560px; line-height: 1.65; margin: 0 auto 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s;
  border: 1px solid var(--blue);
}
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 8px;
  border: 1px solid var(--rule);
  text-decoration: none;
  transition: all 0.15s;
}
.btn-secondary:hover { border-color: #cbd5e1; background: var(--tint); }

/* ── GENERIC PAGE HERO (directory/investor/events/contact pages) ── */
.page-hero { background: var(--paper); padding: 56px 40px 40px; border-bottom: 1px solid var(--rule); }
.page-hero-label { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.page-hero h1 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 14px;
  max-width: 720px;
  color: var(--ink);
}
.page-hero p { font-size: 15px; color: var(--slate); max-width: 580px; line-height: 1.65; }

/* ── SECTION ── */
.section { padding: 56px 40px; max-width: 1200px; margin: 0 auto; width: 100%; }
.section-label { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.section-title { font-family: 'Inter', sans-serif; font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 8px; line-height: 1.2; }
.section-sub { font-size: 15px; color: var(--slate); max-width: 560px; line-height: 1.6; margin-bottom: 8px; }

/* ── DIRECTORY INDEX PANEL (facets + results) ── */
.index-panel { border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; margin-top: 32px; }
.index-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 24px;
  background: var(--tint);
  border-bottom: 1px solid var(--rule);
}
.index-toolbar-title { font-size: 15px; font-weight: 700; color: var(--ink); }
.index-toolbar-count { font-size: 13px; color: var(--slate-soft); }
.index-body { display: block; }

.results-col { padding: 8px 0; }

.result-card { display: flex; gap: 20px; padding: 24px; border-bottom: 1px solid var(--rule); text-decoration: none; color: inherit; transition: background 0.12s; }
.result-card:last-child { border-bottom: none; }
.result-card:hover { background: var(--tint); }
.result-index { font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 700; color: var(--slate-soft); width: 24px; flex-shrink: 0; padding-top: 2px; }
.result-main { flex: 1; min-width: 0; }
.result-tags { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.result-tag { font-size: 10px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; background: var(--blue-light); color: var(--blue-dark); }
.result-tag.investor { background: var(--green-light); color: var(--green); }
.result-tag.muted { background: var(--tint-deep); color: var(--slate); }
.result-title { font-family: 'Inter', sans-serif; font-size: 20px; font-weight: 700; color: var(--ink); margin-bottom: 8px; line-height: 1.3; }
.result-desc { font-size: 14px; color: var(--slate); line-height: 1.6; margin-bottom: 14px; max-width: 640px; }
.result-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tag { font-size: 11px; padding: 3px 9px; border-radius: 4px; background: var(--tint-deep); color: var(--slate); font-weight: 600; }
.result-cta { font-size: 13px; font-weight: 700; color: var(--blue); display: inline-flex; align-items: center; gap: 6px; }
.result-card:hover .result-cta { color: var(--blue-dark); }

/* ── DIRECTORY CARD GRID (used on interior directory/programme pages) ── */
.dir-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.dir-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.dir-card:hover { border-color: #cbd5e1; box-shadow: 0 4px 16px rgba(15,23,42,0.06); }
.dir-card-flag { font-size: 28px; line-height: 1; }
.dir-card-title { font-family: 'Inter', sans-serif; font-size: 18px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.dir-card-desc { font-size: 13px; color: var(--slate); line-height: 1.6; flex: 1; }
.dir-card-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.dir-pill { font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 100px; background: var(--tint-deep); color: var(--slate); }
.dir-card-cta { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--rule); }
.dir-card-cta span { font-size: 13px; font-weight: 700; color: var(--blue); }
.dir-arrow { width: 26px; height: 26px; border-radius: 50%; background: var(--blue-light); color: var(--blue); display: flex; align-items: center; justify-content: center; font-size: 13px; transition: background 0.15s, transform 0.15s; }
.dir-card:hover .dir-arrow { background: var(--blue); color: white; transform: translateX(3px); }

/* ── STAT ROW ── */
.stat-row { display: flex; flex-wrap: wrap; gap: 40px; padding: 28px 40px; max-width: 1200px; margin: 0 auto; border-bottom: 1px solid var(--rule); }
.stat-item .stat-num { font-family: 'Inter', sans-serif; font-size: 28px; font-weight: 800; color: var(--ink); line-height: 1; }
.stat-item .stat-label { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate-soft); margin-top: 6px; }

/* ── FILTER PILLS / TOOLBAR (investor directory etc.) ── */
.filter-bar { background: var(--tint); border-bottom: 1px solid var(--rule); }
.filter-pill { font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 100px; border: 1px solid var(--rule); background: var(--paper); color: var(--slate); cursor: pointer; transition: all 0.15s; }
.filter-pill.active, .filter-pill:hover { background: var(--blue); border-color: var(--blue); color: white; }

/* ── ABOUT / WHY STRIP ── */
.about-strip { background: var(--tint); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.about-inner { max-width: 1200px; margin: 0 auto; padding: 56px 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.about-text h2 { font-family: 'Inter', sans-serif; font-size: clamp(20px, 2.2vw, 26px); font-weight: 800; letter-spacing: -0.01em; color: var(--ink); line-height: 1.25; margin-bottom: 14px; }
.about-text p { font-size: 14px; color: var(--slate); line-height: 1.65; margin-bottom: 12px; }
.about-text p:last-child { margin-bottom: 0; }
.about-list { display: flex; flex-direction: column; gap: 12px; }
.about-item { background: var(--paper); border: 1px solid var(--rule); border-radius: 10px; padding: 16px 18px; }
.about-item strong { display: block; font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.about-item span { font-size: 13px; color: var(--slate); line-height: 1.55; }

/* ── FOOTER ── */
footer { background: var(--paper); color: var(--slate); padding: 40px 40px 32px; margin-top: auto; border-top: 1px solid var(--rule); }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid var(--rule); margin-bottom: 24px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.footer-tagline { font-size: 13px; max-width: 260px; line-height: 1.6; color: var(--slate); }
.footer-links h4 { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate-soft); margin-bottom: 12px; }
.footer-links a { display: block; font-size: 13px; color: var(--slate); text-decoration: none; margin-bottom: 8px; transition: color 0.15s; }
.footer-links a:hover { color: var(--ink); }
.footer-bottom { max-width: 1200px; margin: 0 auto; font-size: 12px; color: var(--slate-soft); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-bottom a { color: var(--slate-soft); }

@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .hero, .section, .page-hero, .stat-row { padding-left: 20px; padding-right: 20px; }
  .about-inner { grid-template-columns: 1fr; gap: 32px; padding: 40px 20px; }
  footer { padding: 32px 20px; }
  .footer-inner { gap: 28px; }
  .result-card { flex-direction: column; gap: 8px; padding: 20px; }
}
