/* ============================================================
   MedTechInfo — directory listing pages
   (UK / Ireland / Investors / Events)
   Loaded together with styles-redesign.css, which provides the
   shared nav, footer and color tokens.
   ============================================================ */

body { min-height: 100vh; display: block; }

/* ── PAGE HEADER ── */
header {
  background: var(--paper);
  color: var(--ink);
  padding: 48px 40px 40px;
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.header-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
header h1 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.01em;
  max-width: 640px;
  margin: 0 auto 14px;
  color: var(--ink);
}
header h1 em { font-style: normal; color: var(--blue); }
.header-sub {
  font-size: 14px;
  color: var(--slate);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
  margin-bottom: 24px;
}
.header-stats { display: flex; gap: 32px; flex-wrap: wrap; justify-content: center; }
.stat { display: flex; flex-direction: column; gap: 4px; align-items: center; }
.stat-num { font-family: 'Inter', sans-serif; font-size: 26px; font-weight: 800; color: var(--ink); }
.stat-lbl { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate-soft); }

/* ── CONTROLS / FILTER BAR ── */
.controls {
  padding: 16px 40px;
  background: var(--tint);
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  position: sticky;
  top: 64px;
  z-index: 100;
}
.controls-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 700;
  margin-right: 4px;
}
.filter-btn {
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--rule);
  background: var(--paper);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--slate);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.filter-btn:hover, .filter-btn.active { background: var(--blue); border-color: var(--blue); color: white; }
.count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  margin-left: 6px;
  border-radius: 999px;
  background: var(--red);
  color: white;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}
.country-select {
  padding: 5px 30px 5px 12px;
  border-radius: 100px;
  border: 1px solid var(--rule);
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23475569' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 11px center;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--slate);
  cursor: pointer;
  appearance: none;
  transition: border 0.15s;
}
.country-select:focus, .country-select:hover { border-color: var(--blue); outline: none; }
.search-wrap { margin-left: auto; position: relative; }
.search-wrap input {
  padding: 7px 14px 7px 34px;
  border: 1px solid var(--rule);
  border-radius: 100px;
  background: var(--paper);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--ink);
  outline: none;
  width: 200px;
  transition: border 0.15s;
}
.search-wrap input:focus { border-color: var(--blue); }
.search-icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--slate-soft); font-size: 14px; }

.source-note { padding: 12px 40px; background: var(--tint); border-bottom: 1px solid var(--rule); font-size: 12px; color: var(--slate-soft); }
.source-note strong { color: var(--slate); }

/* ── CARD GRID ── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1px; background: var(--rule); margin: 0; padding: 0; }
.card { background: var(--paper); padding: 28px 28px 24px; display: flex; flex-direction: column; gap: 0; cursor: pointer; transition: background 0.15s; position: relative; }
.card:hover { background: var(--tint); }
.card.hidden { display: none; }

.card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; gap: 12px; }
.card-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.icon-teal { background: var(--blue-light); }
.icon-amber { background: var(--amber-light); }
.icon-slate { background: var(--tint-deep); }
.icon-purple { background: var(--purple-light); }
.icon-nhs { background: var(--cyan-light); }
.icon-green { background: var(--green-light); }

.type-badge { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 8px; border-radius: 100px; flex-shrink: 0; }
.badge-accelerator { background: var(--blue-light); color: var(--blue-dark); }
.badge-studio { background: var(--amber-light); color: var(--amber); }
.badge-both { background: var(--purple-light); color: var(--purple); }
.badge-incubator { background: var(--tint-deep); color: var(--slate); }
.badge-ecosystem { background: var(--green-light); color: var(--green); }
.badge-nhs { background: var(--cyan-light); color: var(--cyan); }
.badge-funder { background: var(--amber-light); color: var(--amber); }
.badge-research { background: var(--purple-light); color: var(--purple); }
.badge-vc { background: var(--blue-light); color: var(--blue-dark); }
.badge-angel { background: var(--amber-light); color: var(--amber); }
.badge-cvc { background: var(--amber-light); color: var(--amber); }
.badge-debt { background: var(--tint-deep); color: var(--slate); }
.badge-gov { background: var(--tint-deep); color: var(--slate); }
.badge-inst { background: var(--amber-light); color: var(--amber); }
.badge-pe { background: var(--purple-light); color: var(--purple); }

.card-name { font-family: 'Inter', sans-serif; font-size: 17px; font-weight: 700; line-height: 1.3; color: var(--ink); margin-bottom: 4px; }
.card-parent { font-size: 11px; color: var(--slate-soft); margin-bottom: 12px; }
.card-desc { font-size: 13.5px; line-height: 1.6; color: var(--slate); margin-bottom: 16px; flex: 1; }
.card-meta { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.meta-row { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; }
.meta-icon { color: var(--blue); flex-shrink: 0; margin-top: 1px; }
.meta-val { color: var(--slate); line-height: 1.5; }

.tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 16px; }
.tag { font-size: 11px; padding: 3px 9px; border-radius: 4px; background: var(--tint-deep); color: var(--slate); font-weight: 600; }

.card-footer { border-top: 1px solid var(--rule); padding-top: 14px; display: flex; align-items: center; justify-content: space-between; }
.contact-info { font-size: 12px; color: var(--slate); }
.contact-info a { color: var(--blue); text-decoration: none; font-weight: 600; }
.contact-info a:hover { text-decoration: underline; }
.arrow-btn {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--blue);
  border: none;
  color: white;
  font-size: 14px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}
.arrow-btn:hover { background: var(--blue-dark); transform: translateX(2px); }

.no-results { padding: 80px 40px; text-align: center; color: var(--slate); font-size: 15px; grid-column: 1/-1; display: none; }
.no-results.visible { display: block; }

@media (max-width: 600px) {
  header, .controls, .source-note { padding-left: 20px; padding-right: 20px; }
  .controls { position: relative; top: 0; }
  .search-wrap { margin-left: 0; width: 100%; }
  .search-wrap input { width: 100%; }
  .country-select { width: 100%; }
  .grid { grid-template-columns: 1fr; }
}

/* ── FAQ ── */
.faq { border-top: 1px solid var(--rule); background: var(--paper); padding: 56px 40px 64px; }
.faq-inner { max-width: 760px; margin: 0 auto; }
.faq .header-label { text-align: center; }
.faq h2 { font-family: 'Inter', sans-serif; font-size: clamp(22px, 3vw, 28px); font-weight: 800; letter-spacing: -0.01em; color: var(--ink); text-align: center; margin-bottom: 28px; }
.faq-list { border-top: 1px solid var(--rule); }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 4px; font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.4; transition: color 0.15s; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--blue-light); color: var(--blue); display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 600; transition: transform 0.2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--blue); }
.faq-item summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.faq-answer { padding: 0 46px 20px 4px; }
.faq-answer p { font-size: 14px; line-height: 1.7; color: var(--slate); }
.faq-answer a { color: var(--blue); text-decoration: none; }
.faq-answer a:hover { text-decoration: underline; }
@media (max-width: 600px) {
  .faq { padding: 40px 20px 48px; }
  .faq-answer { padding-right: 4px; }
}
