/**
 * Zermatt Biotech — Components
 * 按钮 / 卡片 / 标签 / 全局 Nav / 全局 Footer / Form / Pipeline 表
 * 全部 zb- 前缀，scoped 防止跟未来插入的 framework 冲突
 */

/* ─────────────────────────────────────────── BUTTONS ── */

.zb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--zb-radius-btn);
  font-family: var(--zb-font-body);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform var(--zb-dur) var(--zb-ease),
              box-shadow var(--zb-dur) var(--zb-ease),
              background var(--zb-dur) var(--zb-ease);
  white-space: nowrap;
  min-height: 44px;   /* a11y tap target */
}
.zb-btn:focus-visible { outline: none; box-shadow: var(--zb-shadow-focus); }

.zb-btn--primary {
  background: var(--zb-grad-primary);
  color: #fff;
}
.zb-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--zb-shadow-btn-hover);
  color: #fff;
}

.zb-btn--ghost {
  background: transparent;
  color: var(--zb-brand-deep);
  border: 1.5px solid var(--zb-brand-deep);
}
.zb-btn--ghost:hover {
  background: var(--zb-brand-ice);
  color: var(--zb-brand-deep);
}

/* Ghost on dark backgrounds (CTA band) */
.zb-btn--ghost-light {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
}
.zb-btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}

/* Primary on dark backgrounds (white fill) */
.zb-btn--primary-light {
  background: #fff;
  color: var(--zb-brand-deep);
}
.zb-btn--primary-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  color: var(--zb-brand-deep);
}

.zb-btn--text {
  background: transparent;
  color: var(--zb-brand-mid);
  padding: 8px 0;
  min-height: auto;
}
.zb-btn--text:hover {
  color: var(--zb-brand-deep);
  text-decoration: underline;
}

/* Button row */
.zb-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--zb-sp-3);
  margin-top: var(--zb-sp-8);
}

/* ─────────────────────────────────────────── CARDS ── */

.zb-card {
  background: #fff;
  border: 1px solid var(--zb-border-subtle);
  border-radius: var(--zb-radius-card);
  padding: 32px;
  transition: border-color var(--zb-dur) var(--zb-ease),
              box-shadow var(--zb-dur) var(--zb-ease),
              transform var(--zb-dur) var(--zb-ease);
}
.zb-card:hover {
  border-color: var(--zb-brand-sky);
  box-shadow: var(--zb-shadow-card-hover);
}
.zb-card__icon {
  width: 40px; height: 40px;
  margin-bottom: var(--zb-sp-4);
  color: var(--zb-brand-deep);
}
.zb-card__icon svg { width: 100%; height: 100%; stroke: currentColor; }
.zb-card__title {
  margin-bottom: var(--zb-sp-3);
  color: var(--zb-brand-deep);
}
.zb-card__body {
  color: var(--zb-ink-secondary);
  font-size: 15px;
  line-height: 24px;
}
.zb-card__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: var(--zb-sp-5);
  font-weight: 500;
  color: var(--zb-brand-mid);
}
.zb-card__link::after { content: '→'; transition: transform var(--zb-dur) var(--zb-ease); }
.zb-card__link:hover::after { transform: translateX(4px); }

/* ─────────────────────────────────────────── NAV ── */

/* v7: 玻璃镜面 nav — 几乎不 blur，clean reflective look + 微 top-gradient 像玻璃反光 */
.zb-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--zb-nav-height);
  /* 玻璃镜面：minimal blur + light gradient = 反光感 */
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(255, 255, 255, 0.08) 100%
  );
  backdrop-filter: blur(2px) saturate(150%) brightness(1.05);
  -webkit-backdrop-filter: blur(2px) saturate(150%) brightness(1.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  transition: background var(--zb-dur) var(--zb-ease),
              backdrop-filter var(--zb-dur) var(--zb-ease),
              border-color var(--zb-dur) var(--zb-ease),
              box-shadow var(--zb-dur) var(--zb-ease);
}
/* Scroll 时切换：白底实色 */
.zb-nav.is-scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--zb-border-subtle);
  box-shadow: 0 2px 14px rgba(31, 78, 140, 0.06);
}
.zb-nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--zb-sp-6);
}
.zb-nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--zb-brand-deep);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.02em;
}
.zb-nav__brand svg { width: 28px; height: 28px; }

.zb-nav__links {
  display: flex;
  align-items: center;
  gap: var(--zb-sp-8);
  list-style: none;
  margin: 0;
  padding: 0;
}
.zb-nav__link {
  color: #000000;            /* v7: 黑色加粗 — 玻璃镜面下高对比 */
  font-size: 14.5px;
  font-weight: 700;          /* v7: bold */
  padding: 8px 0;
  position: relative;
  letter-spacing: 0.01em;
  transition: color var(--zb-dur-fast) var(--zb-ease);
}
.zb-nav__link:hover { color: var(--zb-brand-deep); }
.zb-nav__link--active { color: var(--zb-brand-deep); }
.zb-nav__link--active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--zb-grad-primary);
  border-radius: 2px;
}

.zb-nav__right {
  display: flex;
  align-items: center;
  gap: var(--zb-sp-5);
}
.zb-nav__login {
  font-size: 14.5px;
  font-weight: 700;          /* v7: bold black */
  color: #000000;
  display: inline-flex;
  align-items: center;
}
.zb-nav__login:hover { color: var(--zb-brand-deep); }
.zb-nav__logo {
  height: 36px;
  width: auto;
}

.zb-nav__hamburger {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: transparent; border: none; cursor: pointer;
  color: var(--zb-ink-primary);
}

/* Mobile nav */
@media (max-width: 1023px) {
  .zb-nav__links { display: none; }
  .zb-nav__login { display: none; }
  .zb-nav__hamburger { display: inline-flex; }
}
.zb-nav__mobile {
  display: none;
  position: fixed;
  top: var(--zb-nav-height);
  left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid var(--zb-border-subtle);
  padding: var(--zb-sp-6);
}
.zb-nav__mobile.is-open { display: block; }
.zb-nav__mobile ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--zb-sp-4); }
.zb-nav__mobile a {
  display: block;
  padding: 12px 0;
  color: var(--zb-ink-primary);
  font-size: 17px;
  font-weight: 500;
  border-bottom: 1px solid var(--zb-border-subtle);
}

/* ─────────────────────────────────────────── FOOTER (dark navy) ── */
/* v3: 改深色 anchor — ink-primary 比 Powered by Science 深蓝更深一档
   紧凑 padding 减 ~30% 高度
   微妙顶部 brand gradient 线分割上面 banner 区 */

.zb-footer {
  background: var(--zb-ink-primary);  /* #0F1B2D — navy-black */
  color: rgba(255, 255, 255, 0.72);
  position: relative;
}
.zb-footer::before {
  /* 顶部 brand-gradient 细线 — 跟上面 Powered by Science banner 视觉分隔 */
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(127, 208, 232, 0.40) 30%,
    rgba(127, 208, 232, 0.60) 50%,
    rgba(127, 208, 232, 0.40) 70%,
    transparent 100%
  );
}
.zb-footer__top {
  padding: 48px 0 32px;  /* 从 72/48 → 48/32，紧 ~30% */
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
  gap: var(--zb-sp-10);  /* 40px from 48px */
}
.zb-footer__brand {
  display: flex; flex-direction: column;
  gap: 10px;
  align-items: flex-start;  /* 强制左对齐 — logo + tagline 视觉锚同一垂直线 */
}
.zb-footer__brand img,
.zb-footer__brand svg {
  height: 36px;
  width: auto;
  display: block;  /* 消除 inline-img 底部 baseline 空隙 */
}
.zb-footer__tagline {
  color: rgba(255, 255, 255, 0.55);
  font-size: 13.5px; line-height: 20px;
  max-width: 260px;
  margin-top: 4px;  /* 微调跟 logo 视觉距离 */
}

/* Column title — used to be <h5>, now <summary class="zb-footer__col-h"> for accordion */
.zb-footer__col-h {
  margin: 0 0 14px;
  font-size: 13px; font-weight: 600; color: #FFFFFF;
  letter-spacing: 0.04em;
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.zb-footer__col-h::-webkit-details-marker { display: none; }
.zb-footer__col-h::marker { content: ''; }
.zb-footer__col-chev {
  width: 16px; height: 16px;
  color: rgba(255, 255, 255, 0.65);
  transition: transform var(--zb-dur-fast) var(--zb-ease);
  flex-shrink: 0;
  display: none;  /* hidden on desktop, shown on mobile via @media */
}

.zb-footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.zb-footer__col a {
  color: rgba(255, 255, 255, 0.65); font-size: 13.5px;
  transition: color var(--zb-dur-fast) var(--zb-ease);
}
.zb-footer__col a:hover { color: #FFFFFF; }

/* DESKTOP (≥768px): <details> always shows children regardless of `open` */
@media (min-width: 768px) {
  details.zb-footer__col > :not(summary) {
    display: block !important;
  }
  details.zb-footer__col > ul {
    display: flex !important;  /* preserve the original ul flex-column gap */
  }
  details.zb-footer__col {
    /* prevent toggle on desktop click */
    pointer-events: auto;
  }
  .zb-footer__col-h {
    cursor: default;
    pointer-events: none;
  }
}

/* Contact column with detailed info — 紧凑布局 */
.zb-footer__contact-row {
  display: flex; flex-direction: column; gap: 2px;
  margin-bottom: 10px;
  font-size: 13.5px; color: rgba(255, 255, 255, 0.65); line-height: 20px;
}
.zb-footer__contact-row strong {
  color: rgba(255, 255, 255, 0.92); font-weight: 600; font-size: 12px;
  letter-spacing: 0.02em;
}
.zb-footer__contact-row a {
  color: rgba(255, 255, 255, 0.65);
}
.zb-footer__contact-row a:hover { color: #FFFFFF; }

.zb-footer__social {
  display: flex; gap: 10px;
  margin-top: 14px;
}
.zb-footer__social a {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
  transition: all var(--zb-dur-fast) var(--zb-ease);
}
.zb-footer__social a:hover {
  background: var(--zb-brand-sky);
  color: var(--zb-ink-primary);
  transform: translateY(-1px);
}
.zb-footer__social svg { width: 14px; height: 14px; }

.zb-footer__bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.45);
  gap: 24px;
  flex-wrap: wrap;
}
.zb-footer__bottom-links {
  display: flex; gap: 20px;
}
.zb-footer__bottom a { color: rgba(255, 255, 255, 0.55); }
.zb-footer__bottom a:hover { color: #FFFFFF; }

@media (max-width: 1023px) {
  .zb-footer__top {
    grid-template-columns: 1fr 1fr;
    gap: var(--zb-sp-8);
    padding: 40px 0 28px;
  }
}
@media (max-width: 559px) {
  .zb-footer__top { grid-template-columns: 1fr; gap: var(--zb-sp-6); }
  .zb-footer__bottom { flex-direction: column; gap: 8px; align-items: flex-start; }
}

@media (max-width: 1023px) {
  .zb-footer__top { grid-template-columns: 1fr 1fr; gap: var(--zb-sp-8); }
}
@media (max-width: 559px) {
  .zb-footer__top { grid-template-columns: 1fr; }
  .zb-footer__bottom { flex-direction: column; gap: 12px; }
}

/* ─────────────────────────────────────────── HERO SHARED ── */

.zb-hero {
  position: relative;
  padding: 100px 0 60px;
  overflow: hidden;
}
.zb-hero--glow::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 40%,
    rgba(127, 208, 232, 0.22) 0%,
    rgba(127, 208, 232, 0.08) 35%,
    transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.zb-hero > .zb-container { position: relative; z-index: 1; }
.zb-hero__subhead {
  margin-top: var(--zb-sp-6);
  color: var(--zb-ink-secondary);
  font-size: 20px;
  line-height: 30px;
  font-weight: 400;
  max-width: 560px;
}

/* ─────────────────────────────────────────── FORM ── */

.zb-form {
  display: flex; flex-direction: column;
  gap: var(--zb-sp-4);
}
.zb-form__group { display: flex; flex-direction: column; gap: 6px; }
.zb-form__label {
  font-size: 14px; font-weight: 500;
  color: var(--zb-ink-primary);
}
.zb-form__label .req { color: var(--zb-brand-mid); }
.zb-form__input,
.zb-form__textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--zb-font-body);
  font-size: 15px;
  color: var(--zb-ink-primary);
  background: #fff;
  border: 1px solid var(--zb-border-subtle);
  border-radius: var(--zb-radius-btn);
  transition: border-color var(--zb-dur) var(--zb-ease),
              box-shadow var(--zb-dur) var(--zb-ease);
  min-height: 44px;
}
.zb-form__textarea { min-height: 110px; resize: vertical; }
.zb-form__input:focus,
.zb-form__textarea:focus {
  outline: none;
  border-color: var(--zb-brand-mid);
  box-shadow: 0 0 0 3px rgba(46, 134, 193, 0.18);
}
.zb-form__help {
  font-size: 13px; color: var(--zb-ink-secondary);
  text-align: center;
  margin-top: var(--zb-sp-3);
}

/* ─────────────────────────────────────────── PIPELINE GRID v2 (Absci-style) ── */
/* 每程序一行 + 跨 4 阶段的横向进度条
   - Header: 阶段名作为列标题
   - Body: 程序信息 + 进度条 + 当前阶段圆点 marker
   - 动画：scroll-in 时 fill 从 0 → 当前阶段平滑填充 */

.zb-pipeline-grid {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--zb-border-subtle);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(31, 78, 140, 0.06);
}

.zb-pipeline-grid__head {
  display: grid;
  grid-template-columns: 16% 22% 1fr;
  align-items: center;
  padding: 16px 24px;
  background: var(--zb-brand-deep);
  color: #fff;
}
.zb-pipeline-grid__head-cell {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.96);
}
.zb-pipeline-grid__head-stages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
}
.zb-pipeline-grid__head-stages span {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.96);
  border-left: 1px solid rgba(127, 208, 232, 0.30);
  padding: 0 12px;
}
.zb-pipeline-grid__head-stages span:first-child { border-left: none; }

.zb-pipeline-grid__row {
  display: grid;
  grid-template-columns: 16% 22% 1fr;
  align-items: center;
  padding: 22px 24px;
  border-bottom: 1px solid var(--zb-border-subtle);
  transition: background var(--zb-dur-fast) var(--zb-ease);
}
.zb-pipeline-grid__row:last-child { border-bottom: none; }
.zb-pipeline-grid__row:hover { background: #FAFCFE; }

.zb-pipeline-grid__col-program strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--zb-brand-deep);
  letter-spacing: -0.01em;
}
.zb-pipeline-grid__col-program span {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--zb-ink-secondary);
}
.zb-pipeline-grid__col-target {
  font-size: 14px;
  color: var(--zb-ink-secondary);
  line-height: 20px;
}

/* === The progress bar === */
.zb-pipeline-bar {
  position: relative;
  height: 42px;
  width: 100%;
}
/* Track: background with vertical dotted lines at stage boundaries (25/50/75%) */
.zb-pipeline-bar__track {
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  height: 16px;
  transform: translateY(-50%);
  background: var(--zb-brand-ice);
  border-radius: 8px;
  overflow: hidden;
}
.zb-pipeline-bar__track::before {
  /* Vertical stage divider lines */
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right,
      transparent 0%, transparent calc(25% - 1px),
      rgba(255, 255, 255, 0.85) calc(25% - 1px), rgba(255, 255, 255, 0.85) 25%,
      transparent 25%, transparent calc(50% - 1px),
      rgba(255, 255, 255, 0.85) calc(50% - 1px), rgba(255, 255, 255, 0.85) 50%,
      transparent 50%, transparent calc(75% - 1px),
      rgba(255, 255, 255, 0.85) calc(75% - 1px), rgba(255, 255, 255, 0.85) 75%,
      transparent 75%, transparent 100%
    );
}
/* Fill: gradient blue, width set by --stage-pct CSS variable */
.zb-pipeline-bar__fill {
  position: absolute;
  top: 50%;
  left: 0;
  height: 16px;
  transform: translateY(-50%);
  background: linear-gradient(to right, var(--zb-brand-mid) 0%, var(--zb-brand-deep) 100%);
  border-radius: 8px;
  width: 0;  /* starts at 0, JS / data-stage drives final width via stage class */
  transition: width 1.6s cubic-bezier(.22, 1, .36, 1);
  box-shadow: 0 0 14px rgba(46, 134, 193, 0.45);
}

/* Stage markers (4 circles on top of track) */
.zb-pipeline-bar__markers {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.zb-pipeline-bar__mark {
  position: absolute;
  top: 50%;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid rgba(46, 134, 193, 0.42);
  transform: translate(-50%, -50%);
  transition: all 0.4s ease 1s;  /* delay so it pops in AFTER bar fills */
}
.zb-pipeline-bar__mark[data-pos="1"] { left: 25%; }
.zb-pipeline-bar__mark[data-pos="2"] { left: 50%; }
.zb-pipeline-bar__mark[data-pos="3"] { left: 75%; }
.zb-pipeline-bar__mark[data-pos="4"] { left: 100%; }

/* Current-stage marker (larger + filled) */
.zb-pipeline-bar__mark--current {
  width: 26px; height: 26px;
  background: linear-gradient(135deg, var(--zb-brand-mid) 0%, var(--zb-brand-deep) 100%);
  border-color: #fff;
  border-width: 3.5px;
  box-shadow:
    0 0 0 5px rgba(46, 134, 193, 0.16),
    0 5px 16px rgba(46, 134, 193, 0.45);
  z-index: 2;
  animation: zb-marker-pulse 2.2s ease-in-out infinite;
}
@keyframes zb-marker-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(46, 134, 193, 0.15), 0 4px 14px rgba(46, 134, 193, 0.40); }
  50%      { box-shadow: 0 0 0 9px rgba(46, 134, 193, 0.08), 0 4px 18px rgba(46, 134, 193, 0.50); }
}

/* Stage values: data-stage="1/2/3/4" sets fill width when row is .is-active */
[data-zb-pipeline-row].is-active .zb-pipeline-bar__fill {
  /* fill width = stage * 25% */
}
[data-zb-pipeline-row][data-stage="1"].is-active .zb-pipeline-bar__fill { width: 25%; }
[data-zb-pipeline-row][data-stage="2"].is-active .zb-pipeline-bar__fill { width: 50%; }
[data-zb-pipeline-row][data-stage="3"].is-active .zb-pipeline-bar__fill { width: 75%; }
[data-zb-pipeline-row][data-stage="4"].is-active .zb-pipeline-bar__fill { width: 100%; }

/* Mobile: stack program / target / bar vertically */
@media (max-width: 899px) {
  /* 头部不再 display:none — 改用紧凑的 stage 标签行（让用户能对应到 marker） */
  .zb-pipeline-grid__head {
    grid-template-columns: 1fr !important;
    padding: 10px 18px;
    background: var(--zb-brand-deep);
  }
  .zb-pipeline-grid__head .zb-pipeline-grid__head-cell {
    display: none;   /* 隐藏 Program / Target 列头，只保留 Stages 行 */
  }
  .zb-pipeline-grid__head-stages {
    padding: 0 4px;
  }
  .zb-pipeline-grid__head-stages span {
    font-size: 9.5px !important;
    letter-spacing: 0.04em;
    padding: 0 4px;
  }
  .zb-pipeline-grid__row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 18px 20px;
  }
  .zb-pipeline-grid__col-bar {
    margin-top: 8px;
  }
  /* mobile bar 稍小一点点，避免占太多空间 */
  .zb-pipeline-bar { height: 36px; }
  .zb-pipeline-bar__track,
  .zb-pipeline-bar__fill {
    height: 13px;
    border-radius: 7px;
  }
  .zb-pipeline-bar__mark {
    width: 14px; height: 14px;
  }
  .zb-pipeline-bar__mark--current {
    width: 20px; height: 20px;
  }
}

/* ─────────────────────────────────────────── PIPELINE — ARROW BAR (old, kept for /science page) ── */
/* Reference: client-preferred site — large chevron stages + status pills */

.zb-stage-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: var(--zb-sp-8);
}
@media (max-width: 720px) {
  .zb-stage-bar { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .zb-stage-bar { grid-template-columns: 1fr; gap: 8px; }
}

.zb-stage {
  position: relative;
  padding: 16px 20px 16px 28px;
  background: var(--zb-surface-soft);
  color: var(--zb-ink-secondary);
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  letter-spacing: 0.02em;
  /* Right-pointing chevron via clip-path */
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%, 16px 50%);
  transition: background var(--zb-dur) var(--zb-ease), color var(--zb-dur) var(--zb-ease);
}
.zb-stage:first-child { clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%); }
.zb-stage:last-child  { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 16px 50%); }
@media (max-width: 720px) {
  .zb-stage, .zb-stage:first-child, .zb-stage:last-child {
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%, 16px 50%);
  }
}
@media (max-width: 420px) {
  .zb-stage, .zb-stage:first-child, .zb-stage:last-child { clip-path: none; padding: 14px 16px; }
}
.zb-stage--active {
  background: var(--zb-grad-primary);
  color: #fff;
}
.zb-stage--done {
  background: var(--zb-brand-sky);
  color: var(--zb-brand-deep);
}

/* Program table */
.zb-program-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 15px;
}
.zb-program-table thead th {
  text-align: left;
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--zb-ink-secondary);
  padding: 12px 16px;
  border-bottom: 1px solid var(--zb-border-subtle);
}
.zb-program-table tbody td {
  padding: 18px 16px;
  border-bottom: 1px solid var(--zb-border-subtle);
  color: var(--zb-ink-primary);
}
.zb-program-table tbody tr:last-child td { border-bottom: none; }
.zb-program-table tbody td:first-child { font-weight: 600; color: var(--zb-brand-deep); }

.zb-status-pill {
  display: inline-block;
  padding: 5px 14px;
  border-radius: var(--zb-radius-pill);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.zb-status-pill--discovery  { background: var(--zb-brand-ice); color: var(--zb-brand-deep); }
.zb-status-pill--preclinical{ background: var(--zb-brand-sky); color: var(--zb-brand-deep); }
.zb-status-pill--phase1     { background: var(--zb-grad-primary); color: #fff; }
.zb-status-pill--phase2     { background: var(--zb-brand-deep); color: #fff; }

/* ── Legacy small pipeline (kept for Science page detailed view) ── */
.zb-pipeline {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  background: #fff;
  border: 1px solid var(--zb-border-subtle);
  border-radius: var(--zb-radius-card);
  overflow: hidden;
}
.zb-pipeline thead th {
  background: var(--zb-brand-deep);
  color: #fff;
  text-align: left;
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 16px;
}
.zb-pipeline tbody td {
  padding: 18px 16px;
  border-bottom: 1px solid var(--zb-border-subtle);
  vertical-align: middle;
}
.zb-pipeline tbody tr:last-child td { border-bottom: none; }
.zb-pipeline tbody tr:nth-child(even) td { background: #FAFCFE; }
.zb-pipeline__bar {
  display: inline-flex; gap: 4px;
  align-items: center;
}
.zb-pipeline__sq {
  width: 16px; height: 16px;
  border-radius: 3px;
  background: var(--zb-border-subtle);
}
.zb-pipeline__sq--on { background: var(--zb-brand-mid); }

/* ─────────────────────────────────────────── ICON ── */

.zb-icon {
  width: 32px; height: 32px;
  color: var(--zb-brand-deep);
  flex-shrink: 0;
}
.zb-icon svg { width: 100%; height: 100%; }
