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

/* ── Tokens — "institutional dossier" ─────────────────────────────────────────
   Navy carries authority, gold is reserved for rules and badges, mono type is
   the data voice. Sharp corners + hairlines instead of shadows. */
:root {
  --blue:    #003B6F;   /* brand navy — masthead, headings, primary actions */
  --navy:    #003B6F;
  --blue-lt: #005A9C;   /* interactive only */
  --gold:    #C8973A;
  --gold-bg: #F7EEDC;
  --gold-bd: #E2CB99;
  --gold-tx: #77551A;
  --gray:    #EFEFEA;   /* panel tint on paper */
  --paper:   #F7F7F3;
  --border:  #D9D9D1;
  --text:    #1A2233;
  --muted:   #5C6470;
  --radius:  3px;
  --serif:   'Source Serif 4', Georgia, serif;
  --sans:    'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:    'IBM Plex Mono', 'SF Mono', Menlo, monospace;
}

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

button, input { font-family: inherit; }

:focus-visible {
  outline: 2px solid var(--blue-lt);
  outline-offset: 2px;
}

/* ── Nav ──────────────────────────────────────────────────────────────────── */
.top-nav {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}
.nav-logo {
  width: 30px;
  height: 30px;
  background: var(--blue);
  color: #fff;
  font-family: var(--serif);
  font-size: .78rem;
  font-weight: 700;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: .02em;
}
.nav-name {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: .01em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-link {
  background: none;
  border: none;
  padding: 6px 12px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  border-radius: var(--radius);
  transition: color .15s;
}
.nav-link:hover { color: var(--blue); }
.nav-link-bold  { font-weight: 700; color: var(--blue); }

/* ── Hero / masthead ──────────────────────────────────────────────────────── */
.hero {
  background: var(--blue);
  color: #fff;
  padding: 60px 32px 56px;
  text-align: left;
  transition: padding .25s ease;
}
/* Compact hero once results are on screen — keep the search bar, drop the pitch */
body.compact-hero .hero { padding: 18px 32px 20px; }
body.compact-hero .hero-label,
body.compact-hero .hero-title,
body.compact-hero .hero-sub,
body.compact-hero .statline,
body.compact-hero .popular-row { display: none; }
.hero-inner { max-width: 1100px; margin: 0 auto; }
.hero-label {
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .18em;
  color: #D9B36A;
  margin-bottom: 18px;
  padding-top: 14px;
  border-top: 2px solid var(--gold);
  display: inline-block;
}
.hero-title {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -.01em;
  max-width: 27ch;
  margin-bottom: 14px;
}
.hero-sub {
  font-size: .93rem;
  color: rgba(255,255,255,.72);
  line-height: 1.6;
  max-width: 54ch;
  margin-bottom: 34px;
}
.hero-search { max-width: 620px; position: relative; }
.search-suggest {
  position: absolute;
  top: 52px;               /* directly under .search-row, above the chips */
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(10,18,34,.16);
  z-index: 30;
  max-height: 330px;
  overflow-y: auto;
  text-align: left;
}
.suggest-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--paper);
}
.suggest-row:last-child { border-bottom: none; }
.suggest-row:hover, .suggest-row.sel { background: var(--paper); }
.suggest-type {
  font-family: var(--mono);
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  width: 86px;
  flex-shrink: 0;
}
.suggest-type-firm       { color: var(--blue); }
.suggest-type-technology { color: #0F766E; }
.suggest-type-person     { color: var(--gold-tx); }
.suggest-type-domain     { color: var(--muted); }
.suggest-label {
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.suggest-sub {
  font-size: .74rem;
  color: var(--muted);
  margin-left: auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 45%;
  flex-shrink: 0;
}
.search-row {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  padding: 0 4px 0 14px;
  gap: 8px;
}
.search-icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  color: var(--muted);
}
.search-row input {
  flex: 1;
  border: none;
  padding: 13px 0;
  font-size: .95rem;
  color: var(--text);
  outline: none;
  background: transparent;
}
.search-row input::placeholder { color: var(--muted); }
.btn-dark {
  background: var(--gold);
  color: #26200F;
  border: none;
  padding: 10px 22px;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .01em;
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  transition: filter .15s;
}
.btn-dark:hover { filter: brightness(1.06); }
.popular-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  justify-content: flex-start;
}
.popular-label {
  font-size: .78rem;
  color: rgba(255,255,255,.6);
}
.chip {
  background: transparent;
  border: 1px solid rgba(255,255,255,.35);
  color: rgba(255,255,255,.9);
  font-size: .78rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.chip:hover { border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.06); }
.statline {
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-top: 30px;
}

/* ── Page body ────────────────────────────────────────────────────────────── */
.page-body { min-height: 60vh; }

.catalog-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 32px;
}

.catalog-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.catalog-header h2 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
}
.view-all-link {
  background: none;
  border: none;
  color: var(--blue-lt);
  font-size: .84rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
}
.view-all-link:hover { text-decoration: underline; }

/* ── Domain catalog header (click-through view) ───────────────────────────── */
.domain-catalog-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 24px;
}
.domain-catalog-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.domain-catalog-icon svg { width: 24px; height: 24px; stroke: currentColor; }
.domain-catalog-name  { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; }
.domain-catalog-count { font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; color: var(--muted); margin-top: 3px; }
.domain-catalog-header .view-all-link { margin-left: auto; }

/* ── Saved briefs grid ────────────────────────────────────────────────────── */
.vc-brief-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}
.vc-brief-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.vc-brief-name   { font-family: var(--serif); font-size: 1.02rem; font-weight: 600; }
.vc-brief-focus  { font-size: .83rem; color: var(--muted); line-height: 1.5; }
.vc-brief-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 12px; flex-wrap: wrap; }

/* ── Domain cards ─────────────────────────────────────────────────────────── */
.domain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 14px;
}
.domain-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px 18px;
  cursor: pointer;
  transition: border-color .15s;
}
.domain-card:hover { border-color: var(--blue); }
.catalog-count { font-family: var(--mono); font-weight: 500; color: var(--muted); font-size: .8rem; letter-spacing: .04em; }
.domain-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.domain-icon {
  width: 40px;
  height: 40px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.domain-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}
.domain-name  { font-family: var(--serif); font-size: 1.02rem; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.domain-dot   { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.domain-count { font-family: var(--mono); font-size: .68rem; letter-spacing: .06em; color: var(--muted); margin-top: 3px; }
.domain-techs { display: flex; flex-direction: column; gap: 4px; }
.domain-tech-link {
  font-size: .87rem;
  color: var(--blue-lt);
  cursor: pointer;
  width: fit-content;
}
.domain-tech-link:hover { text-decoration: underline; }
.domain-tech-more { font-size: .8rem; color: var(--muted); margin-top: 2px; }

/* ── Shared buttons ───────────────────────────────────────────────────────── */
.btn {
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius);
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .01em;
  cursor: pointer;
  transition: filter .15s, background .15s;
}
.btn:hover { filter: brightness(1.08); }
.btn-primary   { background: var(--blue); color: #fff; }
.btn-gold      { background: var(--gold); color: #26200F; }
.btn-secondary { background: #fff; color: var(--blue); border: 1px solid var(--blue); }
.btn-secondary:hover { background: var(--paper); filter: none; }
.btn-sm        { padding: 6px 14px; font-size: .8rem; font-weight: 600; }
.btn:disabled  { opacity: .4; cursor: not-allowed; }

/* ── VC result header ─────────────────────────────────────────────────────── */
.vc-header {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.vc-header h2  { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
.vc-meta       { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.vc-actions    { display: flex; gap: 10px; flex-wrap: wrap; }

.pill {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 2px;
  font-family: var(--mono);
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  background: var(--paper);
  border: 1px solid var(--border);
  color: var(--muted);
}
.pill .pill-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: 1px;
}

.section-label {
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  margin-bottom: 14px;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 2px;
  background: var(--gold);
  margin-right: 10px;
  vertical-align: 3px;
}

/* ── Tech grid ────────────────────────────────────────────────────────────── */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.tech-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tech-card h3    { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; line-height: 1.3; }
.tech-card .pi   { font-size: .78rem; color: var(--muted); }
.tech-card .match-reason { font-family: var(--serif); font-size: .82rem; color: var(--blue); font-style: italic; border-left: 2px solid var(--gold); padding-left: 9px; line-height: 1.45; }
.tech-card .desc { font-size: .84rem; color: #40485A; line-height: 1.5; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.tech-card .tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tech-card .actions { margin-top: auto; padding-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }

/* ── JHU Connections ─────────────────────────────────────────────────────── */
.jhu-connections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.jhu-connection-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.jhu-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.jhu-card-name {
  font-family: var(--serif);
  font-size: .98rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.jhu-entity-pill {
  font-family: var(--mono);
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: var(--paper);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 2px;
  padding: 2px 7px;
  white-space: nowrap;
  flex-shrink: 0;
}
.jhu-card-role {
  font-size: .82rem;
  color: var(--blue-lt);
  font-weight: 500;
}
.jhu-card-firm {
  font-size: .75rem;
  color: var(--muted);
  font-style: italic;
}
.jhu-card-connection {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  margin-top: 2px;
  font-size: .8rem;
  color: var(--muted);
  line-height: 1.45;
}
.jhu-badge {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: .62rem;
  font-weight: 600;
  background: var(--gold);
  color: #26200F;
  border-radius: 2px;
  padding: 2px 5px;
  margin-top: 1px;
  letter-spacing: .06em;
}
.jhu-no-connections {
  font-size: .85rem;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 24px;
}

/* ── Tech Funding Profile ── */
.tech-card-title {
  cursor: pointer;
}
.tech-card-title:hover {
  color: var(--blue-lt);
  text-decoration: underline;
}
.tech-profile-desc {
  font-size: .92rem;
  color: #40485A;
  line-height: 1.6;
  max-width: 720px;
  margin-bottom: 26px;
}
.vc-fit-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}
.vc-fit-row {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 16px;
}
.vc-fit-main {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.vc-fit-name {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  font-size: 1.02rem;
}
.vc-fit-name:hover { text-decoration: underline; color: var(--blue-lt); }
.vc-fit-detail {
  font-size: .8rem;
  color: var(--muted);
  margin-top: 5px;
}
.fit-badge-curated {
  background: var(--gold-bg);
  border-color: var(--gold-bd);
  color: var(--gold-tx);
}
.rel-badge {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
/* JHTV backer (revealed co-investment) — soft blue tint (the brand's interactive
   blue), matching the app's other pills; distinct from the soft-gold "In VC brief"
   and solid-navy relationship badges. */
.backer-badge {
  background: #EAF1F8;
  border-color: #C2D5E8;
  color: var(--blue-lt);
}
.backer-detail {
  font-size: .82rem;
  color: var(--muted);
  margin-top: 4px;
}
.backer-pill {
  background: #EAF1F8;
  border-color: #C2D5E8;
  color: var(--blue-lt);
}
.backer-row {
  padding: 10px 0;
  border-bottom: 1px solid var(--line, #E2E8F0);
}
.tech-score { font-size: .8rem; color: var(--muted); font-weight: 600; }
.tech-score.tied { color: #0E9F6E; }
.tied-group { font-size: .8rem; color: var(--muted); font-style: italic; margin: 4px 0 8px; }
.score-note { font-size: .72rem; color: var(--muted); font-weight: 400; font-style: italic; }
.paused-badge {
  font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em;
  color: var(--muted); background: var(--paper); border: 1px solid var(--border);
  border-radius: 999px; padding: 1px 8px; vertical-align: middle;
}
.tech-card.paused { opacity: .6; }
.tech-card.paused .tech-card-title { color: var(--muted); }

/* Curation page (#/curate) */
.curate-strip { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 4px; }
.curate-bucket-chip { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: .82rem;
  padding: 4px 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--paper); cursor: pointer; }
.curate-bucket-chip.paused { opacity: .55; text-decoration: line-through; }
.curate-bucket-chip.mixed { border-style: dashed; }
.curate-chip-state { color: var(--muted); font-size: .72rem; text-transform: uppercase; }
.curate-bucket { margin: 0 0 18px; }
.curate-bucket-head { display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 6px; margin-bottom: 8px; border-bottom: 1px solid var(--border); }
.curate-bucket-title { display: inline-flex; align-items: center; gap: 9px; }
.curate-bucket-icon { display: inline-flex; }
.curate-bucket-icon svg { width: 18px; height: 18px; stroke: currentColor; }
.curate-bucket-name { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; color: var(--ink, #1a1a1a); }
.curate-count { font-family: var(--mono); font-size: .68rem; letter-spacing: .06em; color: var(--muted);
  border: 1px solid var(--border); border-radius: 999px; padding: 1px 7px; }
.curate-selall { font-size: .78rem; color: var(--muted); font-weight: 400; display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.curate-toolbar { display: flex; align-items: center; gap: 14px; margin: 8px 0 14px; }
.curate-search { flex: 1; max-width: 420px; padding: 9px 14px; font: inherit; font-size: .95rem;
  border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.curate-search:focus { outline: none; border-color: var(--blue-lt); }
.curate-paused-count { font: inherit; font-family: var(--mono); font-size: .72rem; letter-spacing: .06em;
  color: var(--muted); background: var(--paper); border: 1px solid var(--border); border-radius: 999px;
  padding: 5px 12px; cursor: pointer; white-space: nowrap; }
.curate-paused-count:hover { border-color: var(--blue-lt); color: var(--blue-lt); }
.curate-paused-count.active { background: var(--blue); border-color: var(--blue); color: #fff; }
/* Compact tech tiles — fixed thin width, left-packed (don't stretch to fill the row). */
.curate-grid { display: grid; grid-template-columns: repeat(auto-fill, 188px); gap: 12px; justify-content: start; }
.curate-card { padding: 12px 13px; }
.curate-card-head { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.curate-check { accent-color: var(--blue); width: 16px; height: 16px; flex-shrink: 0; margin: 0; }
.curate-card .tech-card-title { font-size: .98rem; margin: 0; cursor: pointer; }
.curate-card .pi { font-size: .78rem; margin: 5px 0 0; }
.curate-card .tags { margin-top: 8px; }
.curate-paused-tag { margin-left: auto; font-size: .6rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .04em; color: var(--muted); background: var(--paper); border: 1px solid var(--border);
  border-radius: 999px; padding: 1px 6px; }
.curate-savebar { position: sticky; bottom: 0; padding: 14px 0; margin-top: 8px;
  background: linear-gradient(transparent, #fff 45%); display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.curate-note { font-size: .82rem; color: var(--muted); }
.rel-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.rel-note {
  font-size: .78rem;
  color: var(--muted);
}
.rel-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  color: var(--muted);
  padding: 2px 2px 4px;
}
.rel-chip {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3px 10px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--blue);
  cursor: pointer;
  transition: border-color .15s;
}
.rel-chip:hover { border-color: var(--blue); }
.fit-tier-strong   { background: #EBF3EC; border-color: #BFD8C4; color: #1E5B31; }
.fit-tier-good     { background: #EBF1F7; border-color: #BFD2E2; color: var(--blue); }
.fit-tier-possible { background: var(--paper); border-color: var(--border); color: var(--muted); }
.fit-prelim        { background: transparent; border: 1px dashed var(--border); color: var(--muted); font-weight: 500; font-size: 0.72rem; letter-spacing: .02em; }
#moreVcFits {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#moreVcFitsBtn { align-self: flex-start; }
.profile-section {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-top: 28px;
}
.vc-fit-row .jhu-count-pill { margin-left: auto; }
.jhu-count-pill {
  font-family: var(--mono);
  font-size: .64rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: var(--gold-bg);
  border: 1px solid var(--gold-bd);
  color: var(--gold-tx);
  border-radius: 2px;
  padding: 2px 8px;
}
.jhu-count-pill.none {
  background: var(--paper);
  border-color: var(--border);
  color: var(--muted);
}
.grant-disclaimer {
  font-size: .8rem;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 12px;
}
.grant-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.grant-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 14px;
}
.grant-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.grant-status.eligible    { background: #2E7D42; }
.grant-status.conditional { background: #B97E14; }
.grant-row-main { flex: 1; min-width: 0; }
.grant-row-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: .95rem;
  color: var(--navy);
  text-decoration: none;
}
.grant-row-title:hover { text-decoration: underline; color: var(--blue-lt); }
.grant-row-meta {
  font-size: .76rem;
  color: var(--muted);
  margin-top: 2px;
}
.grant-pill-eligible    { background: #EBF3EC; border-color: #BFD8C4; color: #1E5B31; }
.grant-pill-conditional { background: var(--gold-bg); border-color: var(--gold-bd); color: var(--gold-tx); }

/* ── States ───────────────────────────────────────────────────────────────── */
.not-found {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  text-align: center;
}
.not-found h2 { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; }
.not-found p  { color: var(--muted); font-size: .9rem; margin-bottom: 20px; line-height: 1.6; }
.not-found code { background: var(--gray); padding: 1px 5px; border-radius: 2px; font-size: .82rem; }

.did-you-mean {
  background: var(--gold-bg);
  border: 1px solid var(--gold-bd);
  border-radius: var(--radius);
  padding: 10px 16px;
  font-size: .88rem;
  color: var(--text);
  margin-bottom: 16px;
}
.did-you-mean strong { color: var(--blue); }

.provisional-banner {
  background: var(--gold-bg);
  border: 1px solid var(--gold-bd);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 10px 16px;
  font-size: .85rem;
  color: var(--gold-tx);
  margin-bottom: 14px;
}

.research-cmd-box {
  margin-top: 16px;
  text-align: left;
}
.research-cmd-label { font-size: .85rem; color: var(--muted); margin-bottom: 8px; }
.research-cmd-code {
  background: var(--text);
  color: #E8ECF4;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: .8rem;
  overflow-x: auto;
  white-space: pre;
  margin-bottom: 10px;
}
.research-cmd-note { font-size: .8rem; color: var(--muted); line-height: 1.6; }

/* ── Preview modal ────────────────────────────────────────────────────────── */
#previewModal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,18,34,.62);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
#previewModal.open { display: flex; }
#previewBox {
  background: #fff;
  border-radius: var(--radius);
  width: 100%;
  max-width: 960px;
  height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,.28);
}
#previewHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  gap: 12px;
}
#previewTitle {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#previewHeaderActions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
#previewClose {
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--muted);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background .15s, color .15s;
}
#previewClose:hover { background: var(--gray); color: var(--text); }
#previewBody {
  flex: 1;
  overflow: hidden;
  position: relative;
  background: var(--gray);
}
#previewFrame {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
#previewFallback {
  display: none;
  position: absolute;
  inset: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--gray);
}
#previewFallback p { font-size: .9rem; color: var(--muted); }

/* ── Small screens ───────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .hero { padding: 40px 20px 40px; }
  .hero-title { font-size: 1.85rem; }
  .catalog-section { padding: 28px 20px; }
  .nav-inner { padding: 0 20px; }
}

/* Grant checker questionnaire */
.grant-form { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:14px 20px; margin:14px 0 18px; }
.gf-field label { display:block; font:600 12px/1.4 var(--sans); color:var(--text); margin-bottom:5px; }
.gf-hint { font-weight:400; color:var(--muted); }
.gf-field select, .gf-field input[type=number] { width:100%; padding:7px 9px; border:1px solid var(--border); border-radius:3px; font:14px var(--sans); background:#fff; }
.gf-radios { display:flex; gap:14px; flex-wrap:wrap; }
.gf-radio { font:13px var(--sans); color:var(--text); display:flex; align-items:center; gap:5px; }

/* Recent activity block */
.recent-activity { margin: 12px 0; font-size: 0.85rem; }
.recent-activity > summary { color: #003B6F; font-weight: 600; cursor: pointer; }
.recent-activity table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.recent-activity th { text-align: left; color: #005A9C; font-weight: 600; border-bottom: 2px solid #C8973A; padding: 4px 8px; }
.recent-activity td { padding: 4px 8px; border-bottom: 1px solid #eee; color: #444; }
.recent-activity .ra-caveat { color: #888; font-style: italic; margin-top: 6px; }
.gf-empty { color:var(--muted); font:13px var(--sans); margin:10px 0; }
