/*
 * BIU Alumni Portal — Design System v3.0
 * Visual direction: Official BIU Brand Guidelines
 *
 * Palette (BIU Brand Book)
 * ─────────────────────────────────────────────────────
 *  --bap-green      BIU Primary Green   #004128   (ירוק בר-אילן)
 *  --bap-green-dk   BIU Dark Green      #00280F   (ירוק כהה)
 *  --bap-green-md   BIU Medium Green    #006937   (ירוק בינוני)
 *  --bap-mint       BIU Light Mint      #F5FAF0   (לבן מנטה)
 *  --bap-blue       BIU Blue            #78CDE6   (תכלת)
 *  --bap-green-lt   BIU Bright Green    #87CD7D   (ירוק בהיר)
 *  --bap-gold       BIU Gold/Ocher      #EAB941   (אוקר)
 *  --bap-brown      BIU Brown           #887029   (חום)
 *  --bap-cream      BIU Cream           #E5DC8D   (קרם)
 *
 * Typography
 * ─────────────────────────────────────────────────────
 *  Display / Headings : Cormorant Garamond (elegant serif)
 *  UI / Body          : DM Sans (clean, modern)
 */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,400&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

/* ─── Custom Properties ─────────────────────────────── */
:root {
  /* ── BIU Brand Colors ──────────────────────────────── */
  --bap-ink:        #1a2e1a;               /* Near-black (green tint) */
  --bap-navy:       #00280F;               /* BIU Dark Green (header) */
  --bap-navy-mid:   #004128;               /* BIU Primary Green */
  --bap-blue:       #006937;               /* BIU Medium Green (primary action) */
  --bap-blue-dark:  #004128;               /* BIU Primary Green (pressed) */
  --bap-blue-lt:    #F5FAF0;               /* BIU Light Mint */
  --bap-gold:       #EAB941;               /* BIU Gold/Ocher */
  --bap-gold-dark:  #887029;               /* BIU Brown (dark gold) */
  --bap-gold-lt:    #fdf8e8;               /* Light gold wash */
  --bap-white:      #FFFFFF;
  --bap-off:        #F5FAF0;               /* BIU Light Mint (page bg) */
  --bap-surface:    #FFFFFF;
  --bap-border:     #d4e8d4;               /* Green-tinted border */
  --bap-border-mid: #b8d4b8;
  --bap-muted:      #5a7a5a;               /* Green-tinted muted */
  --bap-muted-lt:   #8aaa8a;
  --bap-ink-mid:    #2d4a2d;
  --bap-success:    #006937;               /* BIU Medium Green */
  --bap-success-lt: #F5FAF0;               /* BIU Light Mint */
  --bap-warn:       #887029;               /* BIU Brown */
  --bap-warn-lt:    #fdf8e8;
  --bap-error:      #b91c1c;
  --bap-error-lt:   #FEF2F2;
  --bap-info:       #006937;               /* BIU Medium Green */
  --bap-info-lt:    #F5FAF0;

  /* ── BIU Extended Palette ──────────────────────────── */
  --biu-green:      #004128;               /* Primary BIU Green */
  --biu-green-dk:   #00280F;               /* Dark BIU Green */
  --biu-green-md:   #006937;               /* Medium BIU Green */
  --biu-green-lt:   #87CD7D;               /* Bright Green (digital) */
  --biu-mint:       #F5FAF0;               /* Light Mint */
  --biu-blue:       #78CDE6;               /* BIU Blue/Turquoise */
  --biu-gold:       #EAB941;               /* Gold/Ocher */
  --biu-brown:      #887029;               /* Brown (dark gold) */
  --biu-cream:      #E5DC8D;               /* Cream/Light Gold */

  --bap-r-sm:   4px;
  --bap-r:      8px;
  --bap-r-lg:   12px;
  --bap-r-xl:   20px;
  --bap-r-pill: 999px;

  --bap-sh-sm: 0 1px 3px rgba(0,65,40,.08), 0 1px 2px rgba(0,65,40,.05);
  --bap-sh:    0 4px 12px rgba(0,65,40,.10), 0 2px 4px rgba(0,65,40,.06);
  --bap-sh-lg: 0 12px 32px rgba(0,65,40,.12), 0 4px 8px rgba(0,65,40,.07);
  --bap-sh-xl: 0 24px 48px rgba(0,65,40,.16), 0 8px 16px rgba(0,65,40,.09);

  --bap-header-h: 76px;
  --bap-max-w:    1200px;
  --bap-content:  960px;
  --bap-font:     'DM Sans', system-ui, -apple-system, sans-serif;
  --bap-font-disp: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --bap-mono:     'SF Mono', 'Fira Code', monospace;
  --bap-ease:     cubic-bezier(0.4, 0, 0.2, 1);
  --bap-t:        0.18s var(--bap-ease);
}

/* ─── Reset (scoped) ────────────────────────────────── */
.bap-portal *, .bap-portal *::before, .bap-portal *::after {
  box-sizing: border-box; margin: 0; padding: 0;
}
.bap-portal {
  font-family: var(--bap-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--bap-ink);
  background: var(--bap-off);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
.bap-portal a { color: var(--biu-green); text-decoration: none; transition: color var(--bap-t); }
.bap-portal a:hover { color: var(--bap-blue-dark); }
.bap-portal img { max-width: 100%; height: auto; display: block; }

/* ─── Theme neutralisation ──────────────────────────── */
body:has(.bap-portal) .entry-title,
body:has(.bap-portal) .page-title,
body:has(.bap-portal) h1.entry-title,
body:has(.bap-portal) .site-header,
body:has(.bap-portal) #site-header,
body:has(.bap-portal) .main-navigation,
body:has(.bap-portal) #main-navigation { display: none !important; }

body:has(.bap-portal) .entry-content,
body:has(.bap-portal) .site-content,
body:has(.bap-portal) article.page,
body:has(.bap-portal) .content-area {
  padding: 0 !important; margin: 0 !important;
  max-width: 100% !important; width: 100% !important;
}
body:has(.bap-portal) { background: var(--bap-off) !important; }

.bap-portal {
  width: 100%;
}

/* ─── HEADER ────────────────────────────────────────── */
.bap-header {
  position: sticky; top: 0; z-index: 200;
  height: 68px;
  background: #fff;
  display: flex; align-items: center;
  padding: 0 28px; gap: 0;
  border-bottom: 1px solid #E9EAEC;
  box-shadow: 0 1px 0 #E9EAEC, 0 4px 16px rgba(0,0,0,.06);
}

.bap-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  padding-right: 16px;
  margin-right: 16px;
  border-right: 1px solid rgba(234,185,65,0.25);
}
.bap-logo-img {
  display: block !important;
  height: 46px !important;
  width: auto !important;
  max-width: none !important;
  max-height: 46px !important;
  background: #ffffff;
  border-radius: 5px;
  padding: 3px 7px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.18);
  object-fit: contain;
  flex-shrink: 0;
}
/* Hide old emblem/text elements if they exist */
.bap-logo-emblem, .bap-logo-mark, .bap-logo-text,
.bap-logo-primary, .bap-logo-secondary, .bap-logo-divider { display: none !important; }

.bap-nav {
  display: flex; align-items: center; gap: 1px;
  flex: 1; overflow-x: auto; overflow-y: visible;
  scrollbar-width: none;
}
.bap-nav::-webkit-scrollbar { display: none; }

.bap-nav-link {
  color: #4B5563;
  font-size: .8rem; font-weight: 500;
  padding: 6px 10px; border-radius: 7px;
  transition: background var(--bap-t), color var(--bap-t);
  white-space: nowrap; flex-shrink: 0; text-decoration: none;
}
.bap-nav-link:hover { background: #F3F4F6; color: #111827; }
.bap-nav-link.active { color: var(--biu-gold); font-weight: 600; background: rgba(234,185,65,.12); border-bottom: 2px solid var(--biu-gold); }

.bap-header-user {
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0; margin-left: 12px;
  padding-left: 12px; border-left: 1px solid #E9EAEC;
}
.bap-user-pill { display: flex; align-items: center; gap: 8px; }
.bap-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--biu-green); color: var(--biu-gold);
  font-size: .72rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: .04em; flex-shrink: 0;
  border: 2px solid rgba(234,185,65,.4);
}
.bap-user-name {
  font-size: .82rem; color: #374151; font-weight: 500;
  max-width: 120px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.bap-signout-btn {
  width: 32px; height: 32px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  color: #9CA3AF; border: 1px solid #E5E7EB;
  background: #fff; transition: all var(--bap-t); text-decoration: none;
}
.bap-signout-btn:hover { color: #DC2626; border-color: #FCA5A5; background: #FEF2F2; }

@media (max-width: 1100px) {
  .bap-header { padding: 0 20px; }
  .bap-user-name { display: none; }
  .bap-logo { padding-right: 16px; margin-right: 16px; border-right: none; }
  .bap-logo-img { height: 42px; padding: 4px 8px; }
}
@media (max-width: 768px) {
  .bap-logo-text { display: none; }
  .bap-logo { border-right: none; }
}

/* ─── BUTTONS ───────────────────────────────────────── */
.bap-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--bap-font); font-weight: 600;
  font-size: .875rem; border: none; border-radius: var(--bap-r);
  cursor: pointer; padding: 10px 20px;
  transition: all var(--bap-t);
  text-decoration: none; white-space: nowrap;
  letter-spacing: .01em;
}
.bap-btn-primary {
  background: var(--biu-green); color: #fff !important;
  box-shadow: 0 1px 3px rgba(26,86,219,.3);
}
.bap-btn-primary:hover {
  background: var(--biu-green-dk); color: #fff !important;
  box-shadow: 0 4px 12px rgba(26,86,219,.4);
  transform: translateY(-1px);
}
.bap-btn-ghost {
  background: rgba(255,255,255,.08);
  color: #fff !important;
  border: 1.5px solid rgba(255,255,255,.55);
  text-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.bap-btn-ghost:hover { background: rgba(255,255,255,.18); color: #fff !important; border-color: rgba(255,255,255,.85); }
.bap-btn-outline {
  background: transparent; color: var(--bap-ink) !important;
  border: 1.5px solid var(--bap-border-mid);
}
.bap-btn-outline:hover { border-color: var(--biu-green); color: var(--biu-green) !important; background: var(--biu-mint); }
.bap-btn-gold { background: var(--bap-gold); color: #00280F !important; font-weight: 700; }
.bap-btn-gold:hover { background: #d4a82a; color: #00280F !important; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(234,185,65,.45); }
.bap-btn-sm  { padding: 7px 14px; font-size: .8rem; }
.bap-btn-lg  { padding: 14px 32px; font-size: 1rem; }
.bap-btn-xl  { padding: 18px 40px; font-size: 1.05rem; letter-spacing: .02em; }

/* ─── MAIN & FOOTER ─────────────────────────────────── */
.bap-main {
  flex: 1; width: 100%;
  max-width: var(--bap-max-w);
  margin: 0 auto;
  padding: 48px 48px 80px;
}
.bap-footer {
  background: var(--bap-navy);
  color: rgba(255,255,255,.3);
  font-size: .78rem; text-align: center;
  padding: 24px 48px; letter-spacing: .04em;
}

/* ─── PAGE HEADER ───────────────────────────────────── */
.bap-page-header {
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--bap-border);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
}
.bap-page-title { font-family: var(--bap-font-disp);
  font-size: 2rem; font-weight: 800;
  color: var(--bap-ink); line-height: 1.15;
  letter-spacing: -.03em;
}
.bap-page-sub {
  font-size: .95rem; color: var(--bap-muted);
  margin-top: 6px; line-height: 1.5;
}
.bap-page-header-left { flex: 1; }

/* ─── SECTION ───────────────────────────────────────── */
.bap-section { margin-top: 52px; }
.bap-section-title {
  font-size: 1.2rem; font-weight: 700;
  color: var(--bap-ink); margin-bottom: 24px;
  letter-spacing: -.02em;
}

/* ─── CARDS ─────────────────────────────────────────── */
.bap-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.bap-card {
  background: var(--bap-surface);
  border: 1px solid var(--bap-border);
  border-radius: var(--bap-r-xl);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow var(--bap-t), transform var(--bap-t), border-color var(--bap-t);
}
.bap-card:hover {
  box-shadow: var(--bap-sh-lg);
  transform: translateY(-3px);
  border-color: var(--bap-border-mid);
}

/* Card image / thumb */
.bap-card-thumb {
  width: 100%; height: 200px; overflow: hidden;
  background: linear-gradient(135deg, var(--biu-green-dk) 0%, var(--biu-green) 60%, #005a2e 100%);
  position: relative;
}
.bap-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bap-card-thumb::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(13,27,42,.4) 100%);
}

/* Card body */
.bap-card-body {
  padding: 22px 24px 20px;
  flex: 1; display: flex; flex-direction: column; gap: 10px;
}
.bap-card-eyebrow {
  font-size: .7rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--biu-gold);
}
.bap-card-title {
  font-size: 1.05rem; font-weight: 700;
  color: var(--bap-ink); line-height: 1.3;
  letter-spacing: -.01em;
}
.bap-card-excerpt {
  font-size: .875rem; color: var(--bap-muted);
  line-height: 1.65; flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bap-card-meta { font-size: .78rem; color: var(--bap-muted-lt); font-style: italic; }
.bap-card-footer {
  padding-top: 14px;
  border-top: 1px solid var(--bap-border);
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between;
}

/* No-image card: decorative gradient band */
.bap-card--no-img .bap-card-body { padding-top: 24px; }
.bap-card--technology:not(:has(.bap-card-thumb img)) .bap-card-body::before {
  content: '';
  display: block;
  width: 40px; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--biu-gold), var(--biu-cream));
  margin-bottom: 4px;
}

/* Researcher avatar */
.bap-card--researcher .bap-card-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  overflow: hidden; margin: 24px auto 0;
  border: 3px solid rgba(234,185,65,.4);
  background: var(--bap-off);
}
.bap-card--researcher .bap-card-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ─── TAGS ──────────────────────────────────────────── */
.bap-tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.bap-tag {
  display: inline-block;
  background: var(--bap-off);
  color: var(--bap-ink-mid);
  border: 1px solid var(--bap-border);
  font-size: .7rem; font-weight: 600;
  padding: 3px 10px; border-radius: var(--bap-r-pill);
  letter-spacing: .03em; text-transform: uppercase;
  white-space: nowrap;
}
.bap-tag--match {
  background: var(--biu-mint);
  color: var(--biu-gold);
  border-color: rgba(26,86,219,.2);
}
.bap-tag--domain {
  background: var(--bap-gold-lt);
  color: var(--bap-gold-dark);
  border-color: rgba(201,148,58,.25);
}
.bap-match-reason {
  font-size: .78rem; color: var(--bap-muted);
  display: flex; flex-wrap: wrap; align-items: center; gap: 5px;
}
.bap-match-label { font-weight: 700; color: var(--bap-ink-mid); }

/* ─── FILTER BAR ────────────────────────────────────── */
.bap-filter-bar {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 32px;
}
.bap-filter-pill {
  font-size: .8rem; font-weight: 600;
  padding: 6px 16px; border-radius: var(--bap-r-pill);
  border: 1.5px solid var(--bap-border-mid);
  color: var(--bap-muted); background: var(--bap-white);
  cursor: pointer; transition: all var(--bap-t); text-decoration: none;
  letter-spacing: .02em;
}
.bap-filter-pill:hover { border-color: var(--biu-green); color: var(--biu-green); }
.bap-filter-pill.active {
  background: var(--bap-blue); color: #fff;
  border-color: var(--biu-green);
  box-shadow: 0 2px 8px rgba(26,86,219,.25);
}

/* ─── STAT CARDS ────────────────────────────────────── */
.bap-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-bottom: 52px;
}
.bap-stat-card {
  background: var(--bap-white);
  border: 1px solid var(--bap-border);
  border-radius: var(--bap-r-xl);
  padding: 28px 24px 24px;
  text-align: left;
  text-decoration: none;
  display: flex; flex-direction: column; gap: 4px;
  transition: box-shadow var(--bap-t), transform var(--bap-t);
  position: relative; overflow: hidden;
}
.bap-stat-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--biu-gold), var(--biu-cream));
}
.bap-stat-card:hover { box-shadow: var(--bap-sh); transform: translateY(-2px); }
.bap-stat-number {
  font-size: 2.8rem; font-weight: 800;
  color: var(--bap-ink); line-height: 1;
  letter-spacing: -.04em;
}
.bap-stat-label {
  font-size: .72rem; color: var(--bap-muted);
  font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  margin-top: 4px;
}
.bap-stat-arrow {
  position: absolute; right: 20px; top: 50%;
  transform: translateY(-50%);
  color: var(--bap-border-mid); font-size: 1.2rem;
}

/* ─── NOTICES ───────────────────────────────────────── */
.bap-notice {
  border-radius: var(--bap-r-lg);
  padding: 14px 18px;
  font-size: .875rem; line-height: 1.6;
  margin-bottom: 24px;
  border: 1px solid;
  display: flex; gap: 12px; align-items: flex-start;
}
.bap-notice-icon { flex-shrink: 0; margin-top: 1px; }
.bap-notice a { text-decoration: underline; }
.bap-notice--info    { background: var(--bap-info-lt);    border-color: rgba(37,99,235,.2);  color: #1e40af; }
.bap-notice--warning { background: var(--bap-warn-lt);    border-color: rgba(217,119,6,.2);  color: #92400e; }
.bap-notice--success { background: var(--bap-success-lt); border-color: rgba(5,150,105,.2);  color: #065f46; }
.bap-notice--error   { background: var(--bap-error-lt);   border-color: rgba(220,38,38,.2);  color: #991b1b; }

/* ─── ACCESS NOTICES ────────────────────────────────── */
.bap-access-notice {
  max-width: 480px; margin: 100px auto; text-align: center;
  padding: 56px 48px;
  background: var(--bap-white);
  border: 1px solid var(--bap-border);
  border-radius: var(--bap-r-xl);
  box-shadow: var(--bap-sh);
}
.bap-access-icon { font-size: 2.8rem; margin-bottom: 20px; }
.bap-access-notice h2 {
  font-size: 1.5rem; font-weight: 800;
  color: var(--bap-ink); margin-bottom: 12px; letter-spacing: -.02em;
}
.bap-access-notice p { color: var(--bap-muted); font-size: .95rem; line-height: 1.65; }

/* ─── ROLE BADGE ────────────────────────────────────── */
.bap-role-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .7rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 10px; border-radius: var(--bap-r-pill);
  border: 1px solid;
}
.bap-role-portal_pending  { background: var(--bap-warn-lt);    color: var(--bap-warn);    border-color: rgba(217,119,6,.2); }
.bap-role-portal_investor { background: var(--bap-gold-lt);    color: var(--bap-gold-dark); border-color: rgba(201,148,58,.25); }
.bap-role-portal_mentor   { background: var(--biu-mint);    color: var(--biu-green);    border-color: rgba(26,86,219,.2); }
.bap-role-portal_admin    { background: #F3F0FF;               color: #5B21B6;            border-color: rgba(91,33,182,.2); }
.bap-role-administrator   { background: #F3F0FF;               color: #5B21B6;            border-color: rgba(91,33,182,.2); }

/* ─── INTRO REQUESTS ────────────────────────────────── */
.bap-requests-list { display: flex; flex-direction: column; gap: 12px; }
.bap-request-row {
  background: var(--bap-white);
  border: 1px solid var(--bap-border);
  border-radius: var(--bap-r-lg);
  padding: 20px 24px;
  display: flex; align-items: center;
  justify-content: space-between; gap: 20px;
  transition: box-shadow var(--bap-t);
}
.bap-request-row:hover { box-shadow: var(--bap-sh-sm); }
.bap-request-title { font-size: .95rem; font-weight: 700; color: var(--bap-ink); margin-bottom: 3px; }
.bap-request-target { font-size: .82rem; color: var(--bap-muted); }
.bap-request-date { font-size: .75rem; color: var(--bap-muted-lt); margin-top: 6px; }
.bap-status-badge {
  flex-shrink: 0; font-size: .68rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 12px; border-radius: var(--bap-r-pill);
  border: 1px solid;
}
.status-submitted { background: var(--bap-success-lt); color: var(--bap-success); border-color: rgba(5,150,105,.2); }
.status-review    { background: var(--bap-warn-lt);    color: var(--bap-warn);    border-color: rgba(217,119,6,.2); }
.status-progress  { background: var(--biu-mint);    color: var(--biu-green);    border-color: rgba(26,86,219,.2); }
.status-draft     { background: var(--bap-off);        color: var(--bap-muted);   border-color: var(--bap-border); }
.status-closed    { background: var(--bap-off);        color: var(--bap-muted-lt);border-color: var(--bap-border); }

/* ─── PROFILE ───────────────────────────────────────── */
.bap-profile-card {
  display: flex; align-items: center; gap: 24px;
  background: var(--bap-white);
  border: 1px solid var(--bap-border);
  border-radius: var(--bap-r-xl);
  padding: 28px 32px; margin-bottom: 36px;
  box-shadow: var(--bap-sh-sm);
}
.bap-avatar-img {
  width: 80px; height: 80px; border-radius: 50%;
  object-fit: cover; border: 3px solid rgba(234,185,65,.4);
}
.bap-profile-name { font-size: 1.4rem; font-weight: 800; color: var(--bap-ink); letter-spacing: -.02em; }
.bap-profile-email { font-size: .875rem; color: var(--bap-muted); margin-top: 3px; }
.bap-acf-form .acf-field-label { color: var(--bap-ink-mid); font-weight: 600; font-size: .875rem; }
.bap-acf-form .acf-input input,
.bap-acf-form .acf-input select,
.bap-acf-form .acf-input textarea {
  border-radius: var(--bap-r); border: 1.5px solid var(--bap-border-mid);
  padding: 9px 12px; font-size: .9rem; font-family: var(--bap-font);
  transition: border-color var(--bap-t);
}
.bap-acf-form .acf-input input:focus,
.bap-acf-form .acf-input textarea:focus {
  border-color: var(--biu-green); outline: none;
  box-shadow: 0 0 0 3px rgba(26,86,219,.1);
}
#acf-form-submit, .acf-form-submit input[type="submit"] {
  background: var(--bap-blue) !important; color: #fff !important;
  border: none !important; border-radius: var(--bap-r) !important;
  padding: 10px 24px !important; font-size: .9rem !important;
  font-weight: 600 !important; font-family: var(--bap-font) !important;
  cursor: pointer !important; transition: background var(--bap-t) !important;
}
#acf-form-submit:hover, .acf-form-submit input:hover {
  background: var(--bap-blue-dark) !important;
}

/* ─── WELCOME PAGE ──────────────────────────────────── */
.bap-page-welcome .bap-main {
  padding: 0 !important; max-width: 100% !important;
}

/* Hero */
.bap-hero {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: center;
  background: var(--bap-navy);
  overflow: hidden;
}
.bap-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 65% 40%, rgba(26,86,219,.22) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(201,148,58,.12) 0%, transparent 50%),
    linear-gradient(160deg, #162d45 0%, #1a3a5c 40%, #162d45 100%);
}
/* Subtle grid overlay */
.bap-hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.bap-hero-inner {
  position: relative; z-index: 2;
  max-width: var(--bap-max-w);
  margin: 0 auto;
  padding: 100px 80px;
  width: 100%;
}
.bap-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--bap-gold);
  background: rgba(201,148,58,.12);
  border: 1px solid rgba(201,148,58,.2);
  padding: 6px 14px; border-radius: var(--bap-r-pill);
  margin-bottom: 28px;
}
.bap-hero-title { font-family: var(--bap-font-disp);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 800; line-height: 1.06;
  color: #fff; letter-spacing: -.04em;
  max-width: 780px; margin-bottom: 24px;
}
.bap-hero-title em {
  font-style: normal;
  background: linear-gradient(90deg, var(--bap-gold), #E8B86D);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.bap-hero-sub {
  font-size: 1.15rem; line-height: 1.75;
  color: rgba(255,255,255,.78);
  max-width: 560px; margin-bottom: 44px;
}
.bap-hero-cta {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.bap-hero-note {
  font-size: .82rem; color: rgba(255,255,255,.5);
  margin-top: 20px; letter-spacing: .02em;
}
.bap-hero-note strong { color: rgba(255,255,255,.75); }

/* Hero stats strip */
.bap-hero-stats {
  display: flex; gap: 48px; margin-top: 72px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.bap-hero-stat-num {
  font-size: 2rem; font-weight: 800; color: #fff; letter-spacing: -.04em;
}
.bap-hero-stat-label {
  font-size: .75rem; color: rgba(255,255,255,.4);
  font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  margin-top: 2px;
}

/* How it works */
.bap-how {
  /* Continuous dark section — no white break between paths and steps */
  background: var(--bap-navy);
  padding: 0 80px 100px; /* no top padding — flows from .bap-paths */
  border-top: 1px solid rgba(255,255,255,.06);
}
.bap-how-inner { max-width: var(--bap-max-w); margin: 0 auto; }
.bap-how-header {
  text-align: center;
  padding: 72px 0 56px;
}
.bap-how-label {
  font-size: .72rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--bap-gold); margin-bottom: 12px;
}
.bap-how-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800;
  color: #fff; letter-spacing: -.03em;
  line-height: 1.2; margin: 0 auto;
}
.bap-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px; position: relative;
}
.bap-step {
  padding: 36px 30px 36px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--bap-r-xl);
  position: relative; z-index: 1;
  transition: background var(--bap-t), border-color var(--bap-t);
}
.bap-step:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.15);
}
.bap-step-num {
  font-size: 2rem; font-weight: 800;
  letter-spacing: -.04em;
  background: linear-gradient(90deg, var(--bap-gold), #93b4f7);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block; margin-bottom: 20px; line-height: 1;
}
.bap-step-icon {
  width: 44px; height: 44px; border-radius: var(--bap-r);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; margin-bottom: 18px;
}
.bap-step h3 {
  font-size: 1rem; font-weight: 700;
  color: #fff; margin-bottom: 10px; letter-spacing: -.01em;
}
.bap-step p { font-size: .858rem; color: rgba(255,255,255,.55); line-height: 1.7; }

/* Value props */
.bap-value {
  background: var(--bap-off);
  padding: 100px 80px;
}
.bap-value-inner {
  max-width: var(--bap-max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.bap-value-label {
  font-size: .72rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--bap-gold); margin-bottom: 12px;
}
.bap-value-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800;
  color: var(--bap-ink); letter-spacing: -.03em;
  line-height: 1.15; margin-bottom: 24px;
}
.bap-value-body { font-size: .95rem; color: var(--bap-muted); line-height: 1.75; margin-bottom: 32px; }
.bap-value-list { display: flex; flex-direction: column; gap: 14px; }
.bap-value-item {
  display: flex; align-items: flex-start; gap: 12px;
}
.bap-value-check {
  width: 22px; height: 22px; border-radius: var(--bap-r);
  background: var(--biu-mint); color: var(--biu-green);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: .8rem; font-weight: 700; margin-top: 1px;
}
.bap-value-item-text { font-size: .9rem; color: var(--bap-ink-mid); line-height: 1.5; }

/* CTA banner */
.bap-cta-banner {
  background: var(--bap-navy);
  padding: 80px;
  text-align: center; position: relative; overflow: hidden;
}
.bap-cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(26,86,219,.2) 0%, transparent 70%);
}
.bap-cta-banner-inner { position: relative; z-index: 1; }
.bap-cta-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800;
  color: #fff; letter-spacing: -.03em;
  margin-bottom: 16px; line-height: 1.15;
}
.bap-cta-sub {
  font-size: 1rem; color: rgba(255,255,255,.55);
  margin-bottom: 36px;
}

/* ─── EMPTY STATES ──────────────────────────────────── */
.bap-empty-state {
  text-align: center; padding: 80px 40px;
  background: var(--bap-white);
  border: 1px dashed var(--bap-border-mid);
  border-radius: var(--bap-r-xl);
}
.bap-empty-icon { font-size: 2.5rem; margin-bottom: 16px; opacity: .5; }
.bap-empty-title { font-size: 1rem; font-weight: 700; color: var(--bap-ink); margin-bottom: 8px; }
.bap-empty-text { font-size: .875rem; color: var(--bap-muted); }
.bap-empty { color: var(--bap-muted); font-size: .9rem; font-style: italic; padding: 32px 0; }

/* ─── DASHBOARD GREETING ────────────────────────────── */
.bap-greeting-bar {
  background: linear-gradient(135deg, var(--bap-navy) 0%, #1a3652 100%);
  border-radius: var(--bap-r-xl);
  padding: 32px 36px;
  margin-bottom: 36px;
  display: flex; align-items: center; justify-content: space-between;
  position: relative; overflow: hidden;
}
.bap-greeting-bar::before {
  content: '';
  position: absolute; right: -40px; top: -40px;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(201,148,58,.06);
}
.bap-greeting-bar::after {
  content: '';
  position: absolute; right: 60px; bottom: -60px;
  width: 160px; height: 160px; border-radius: 50%;
  background: rgba(26,86,219,.08);
}
.bap-greeting-title {
  font-size: 1.5rem; font-weight: 800;
  color: #fff; letter-spacing: -.02em;
}
.bap-greeting-sub { font-size: .875rem; color: rgba(255,255,255,.5); margin-top: 5px; }

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .bap-main       { padding: 36px 32px 64px; }
  .bap-hero-inner { padding: 80px 40px; }
  .bap-how, .bap-value, .bap-cta-banner { padding: 72px 40px; }
  .bap-value-inner { grid-template-columns: 1fr; gap: 48px; }
  .bap-steps { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 768px) {
  .bap-header { padding: 0 20px; gap: 12px; }
  .bap-logo-name { display: none; }
  .bap-user-name { display: none; }
  .bap-main { padding: 24px 20px 48px; }
  .bap-hero-inner { padding: 60px 24px; }
  .bap-hero-stats { flex-wrap: wrap; gap: 28px; }
  .bap-how, .bap-value, .bap-cta-banner { padding: 56px 24px; }
  .bap-stat-grid { grid-template-columns: 1fr 1fr; }
  .bap-card-grid { grid-template-columns: 1fr; }
  .bap-page-header { flex-direction: column; align-items: flex-start; }
  .bap-greeting-bar { flex-direction: column; align-items: flex-start; gap: 16px; }
}
@media (max-width: 480px) {
  .bap-stat-grid { grid-template-columns: 1fr; }
  .bap-hero-cta  { flex-direction: column; align-items: flex-start; }
  .bap-request-row { flex-direction: column; align-items: flex-start; }
}

@media print {
  .bap-header, .bap-footer, .bap-filter-bar, .bap-btn { display: none !important; }
  .bap-card { box-shadow: none; border: 1px solid #ccc; }
}

/* ── TWO PATHS SECTION ─────────────────────────────── */
.bap-paths {
  background: var(--bap-navy);
  padding: 100px 80px;
}
.bap-paths-inner {
  max-width: var(--bap-max-w);
  margin: 0 auto;
}
.bap-paths-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; color: #fff;
  text-align: center; letter-spacing: -.03em;
  line-height: 1.1; margin-bottom: 16px;
}
.bap-paths-title em {
  font-style: normal;
  background: linear-gradient(90deg, var(--bap-gold), #E8B86D);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.bap-paths-sub {
  text-align: center; font-size: 1rem;
  color: rgba(255,255,255,.5); max-width: 560px;
  margin: 0 auto 60px; line-height: 1.7;
}
.bap-paths-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.bap-path {
  border-radius: var(--bap-r-xl);
  padding: 44px 40px;
  position: relative; overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  transition: transform var(--bap-t), box-shadow var(--bap-t);
}
.bap-path:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(0,0,0,.3);
}
.bap-path--investor {
  background: linear-gradient(135deg, #0f2a4a 0%, #1a3a5c 100%);
}
.bap-path--mentor {
  background: linear-gradient(135deg, #1a2a1a 0%, #1e3d20 100%);
}
/* Decorative glow */
.bap-path--investor::before {
  content: ''; position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(26,86,219,.25) 0%, transparent 70%);
}
.bap-path--mentor::before {
  content: ''; position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(5,150,105,.2) 0%, transparent 70%);
}
.bap-path-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 14px; border-radius: var(--bap-r-pill);
  margin-bottom: 24px;
}
.bap-path--investor .bap-path-badge {
  background: rgba(26,86,219,.2);
  color: #93b4f7;
  border: 1px solid rgba(26,86,219,.3);
}
.bap-path--mentor .bap-path-badge {
  background: rgba(5,150,105,.2);
  color: #6ee7c0;
  border: 1px solid rgba(5,150,105,.3);
}
.bap-path-title {
  font-size: 1.6rem; font-weight: 800;
  color: #fff; letter-spacing: -.03em;
  line-height: 1.15; margin-bottom: 18px;
}
.bap-path-body {
  font-size: .9rem; color: rgba(255,255,255,.6);
  line-height: 1.75; margin-bottom: 28px;
}
.bap-path-list {
  list-style: none; display: flex; flex-direction: column; gap: 10px;
  padding: 0; margin: 0;
}
.bap-path-list li {
  font-size: .875rem; color: rgba(255,255,255,.75);
  padding-left: 20px; position: relative; line-height: 1.5;
}
.bap-path-list li::before {
  content: '→'; position: absolute; left: 0;
  font-size: .8rem; line-height: 1.5;
}
.bap-path--investor .bap-path-list li::before { color: #93b4f7; }
.bap-path--mentor   .bap-path-list li::before { color: #6ee7c0; }

@media (max-width: 768px) {
  .bap-paths { padding: 60px 24px; }
  .bap-paths-grid { grid-template-columns: 1fr; }
  .bap-path { padding: 32px 28px; }
}

/* ── PATHS NOTE ─────────────────────────────────────── */
.bap-paths-note {
  margin-top: 32px;
  text-align: center;
  font-size: .82rem;
  color: rgba(255,255,255,.35);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.07);
  line-height: 1.6;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ─── Zoho sync badge ───────────────────────────────────── */
.bap-sync-badge {
  display: inline-block;
  font-size: .72rem; color: var(--bap-muted);
  background: var(--bap-off); border: 1px solid var(--bap-border);
  border-radius: 999px; padding: 2px 10px; margin-left: 8px;
  vertical-align: middle; font-weight: 400;
}

/* ─── Biz-Dev notice banner ─────────────────────────────── */
.bap-bizdev-notice {
  display: flex; align-items: flex-start; gap: 14px;
  background: linear-gradient(135deg, #fffbeb 0%, #fef9ec 100%);
  border: 1px solid #fcd34d;
  border-left: 4px solid var(--bap-gold);
  border-radius: var(--bap-r-lg);
  padding: 16px 20px; margin-bottom: 28px;
}
.bap-bizdev-notice-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 1px; }
.bap-bizdev-notice-body { font-size: .875rem; color: #374151; line-height: 1.6; }
.bap-bizdev-notice-body strong { color: #92400e; }

/* ═══════════════════════════════════════════════════════════════════════════
/* ═══════════════════════════════════════════════════════════════════════════
   TECHNOLOGIES PAGE — full redesign v2
   ═══════════════════════════════════════════════════════════════════════════ */

/* Page header */
.bap-page-technologies .bap-page-title { font-family: var(--bap-font-disp); font-size: 1.75rem; font-weight: 800; color: var(--bap-ink); margin-bottom: .25rem; }
.bap-page-technologies .bap-page-sub   { font-size: .925rem; color: var(--bap-muted); line-height: 1.6; }
.bap-page-technologies .bap-sync-badge {
  display: inline-flex; align-items: center; gap: .3rem;
  background: #f0fdf4; color: #15803d; font-size: .72rem; font-weight: 600;
  padding: .2rem .6rem; border-radius: 999px; margin-left: .5rem;
}

/* Search row */
.bap-tech-search-row { margin: 1.25rem 0 1.75rem; }
.bap-tech-search-form { display: flex; gap: .75rem; align-items: stretch; }
.bap-tech-search-wrap { position: relative; flex: 1; min-width: 0; }
.bap-search-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: #94a3b8; pointer-events: none; width: 16px; height: 16px;
}
.bap-tech-search-input {
  width: 100%; height: 42px;
  padding: 0 36px 0 38px;
  border: 1.5px solid var(--bap-border); border-radius: 8px;
  font-size: .9rem; font-family: var(--bap-font);
  background: #fff; color: var(--bap-ink);
  transition: border-color .15s, box-shadow .15s;
}
.bap-tech-search-input:focus {
  outline: none; border-color: var(--biu-green);
  box-shadow: 0 0 0 3px rgba(26,86,219,.1);
}
.bap-search-clear {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  color: #94a3b8; text-decoration: none; font-size: .8rem;
  padding: 2px 5px; border-radius: 4px; line-height: 1;
}
.bap-search-clear:hover { background: #f1f5f9; color: #475569; }
.bap-tech-search-form .bap-btn {
  height: 42px; white-space: nowrap;
  background: var(--bap-blue) !important;
  color: #ffffff !important;
  border: none; border-radius: 8px;
  font-weight: 600; font-size: .875rem;
  padding: 0 20px; cursor: pointer;
  transition: background .15s;
  text-decoration: none;
  display: inline-flex; align-items: center;
}
.bap-tech-search-form .bap-btn:hover { background: var(--bap-blue-dark) !important; color: #fff !important; }

/* Layout: sidebar + main */
.bap-tech-layout {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 1.75rem;
  align-items: start;
}

/* ── Sidebar ─────────────────────────────────────────── */
.bap-tech-sidebar { position: sticky; top: 76px; }
.bap-sidebar-section {
  background: #fff; border: 1px solid var(--bap-border);
  border-radius: 12px; padding: 1.1rem 1rem; margin-bottom: .875rem;
}
.bap-sidebar-title {
  font-size: .68rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: #94a3b8; margin-bottom: .75rem;
}
.bap-domain-list { list-style: none; }
.bap-domain-list li { margin: 0; }
.bap-domain-link {
  display: flex; align-items: center; gap: .5rem;
  padding: .4rem .45rem; border-radius: 7px;
  font-size: .82rem; color: #475569; text-decoration: none;
  transition: background .12s, color .12s;
}
.bap-domain-link:hover { background: #f8fafc; color: #1e293b; }
.bap-domain-link.active { background: #eff6ff; color: #1d4ed8; font-weight: 600; }
.bap-domain-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.bap-domain-count {
  margin-left: auto; font-size: .7rem; color: #94a3b8;
  background: #f1f5f9; padding: 1px 6px; border-radius: 999px;
  flex-shrink: 0;
}
.bap-domain-link.active .bap-domain-count { background: #dbeafe; color: #1d4ed8; }

/* Sidebar notice */
.bap-bizdev-notice--sidebar {
  border-radius: 10px; padding: .875rem;
  background: #fffbeb; border: 1px solid #fcd34d;
  display: flex; gap: .6rem; align-items: flex-start;
}
.bap-bizdev-notice--sidebar .bap-bizdev-notice-icon { font-size: .95rem; flex-shrink: 0; line-height: 1.5; }
.bap-bizdev-notice--sidebar .bap-bizdev-notice-body {
  font-size: .78rem; line-height: 1.55; color: #78350f;
}
.bap-bizdev-notice--sidebar strong { display: block; margin-bottom: .15rem; font-size: .8rem; }

/* ── Active filters ──────────────────────────────────── */
.bap-tech-active-filters {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: .45rem; margin-bottom: 1.1rem;
}
.bap-active-filter {
  display: inline-flex; align-items: center; gap: .4rem;
  background: #eff6ff; color: #1d4ed8;
  font-size: .78rem; font-weight: 500;
  padding: .28rem .65rem; border-radius: 999px;
}
.bap-active-filter a {
  color: #93c5fd; text-decoration: none; font-size: .72rem; line-height: 1;
}
.bap-active-filter a:hover { color: #1d4ed8; }
.bap-result-count { margin-left: auto; font-size: .78rem; color: #94a3b8; }

/* ── Cards grid ──────────────────────────────────────── */
.bap-tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.1rem;
}

/* ── Individual card ─────────────────────────────────── */
.bap-tech-card {
  background: #fff;
  border: 1.5px solid #e8ecf0;
  border-radius: 14px;
  display: flex; flex-direction: column;
  transition: border-color .16s, box-shadow .16s, transform .16s;
  overflow: hidden;
}
.bap-tech-card:hover {
  border-color: #bfdbfe;
  box-shadow: 0 6px 24px rgba(26,86,219,.1), 0 2px 6px rgba(0,0,0,.05);
  transform: translateY(-2px);
}
.bap-tech-card-body {
  padding: 1.1rem 1.1rem .7rem;
  flex: 1; display: flex; flex-direction: column; gap: .5rem;
}
.bap-tech-card-id {
  font-size: .68rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: #94a3b8;
}
.bap-tech-card-title {
  font-size: .935rem; font-weight: 700;
  color: #0f172a; line-height: 1.42; margin: 0;
}
.bap-tech-card-researcher {
  display: flex; align-items: center; gap: .35rem;
  font-size: .79rem; color: #64748b; margin: 0;
}
.bap-tech-card-researcher svg { flex-shrink: 0; color: #94a3b8; }
.bap-tech-card-excerpt {
  font-size: .82rem; color: #64748b; line-height: 1.6; margin: 0; flex: 1;
}
.bap-tech-card-excerpt--empty { color: #cbd5e1; font-style: italic; }

/* Domain pills */
.bap-tech-card-domains {
  display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .3rem;
}
.bap-tech-domain-pill {
  font-size: .69rem; font-weight: 600;
  padding: .2rem .55rem; border-radius: 999px;
  white-space: nowrap; line-height: 1.5;
}
.bap-tech-domain-pill--more {
  background: #f1f5f9 !important; color: #94a3b8 !important;
}

/* Card footer */
.bap-tech-card-footer {
  padding: .75rem 1.1rem;
  border-top: 1px solid #f1f5f9;
  display: flex; align-items: center;
  justify-content: space-between; gap: .5rem;
  flex-wrap: wrap; min-height: 52px;
}

/* Status badges */
.bap-tech-status-badge {
  font-size: .67rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: .22rem .6rem;
  border-radius: 999px; white-space: nowrap;
}
.bap-tech-status-new              { background: #dcfce7; color: #15803d; }
.bap-tech-status-patent-granted   { background: #ede9fe; color: #6d28d9; }
.bap-tech-status-patent-pending   { background: #dbeafe; color: #1d4ed8; }
.bap-tech-status-filed            { background: #fef3c7; color: #b45309; }
.bap-tech-status-in-progress      { background: #fef3c7; color: #b45309; }
.bap-tech-status-licensed         { background: #f0fdf4; color: #166534; }

/* "Request Introduction" button — scoped to card footer */
.bap-tech-card-footer .bap-btn {
  background: var(--bap-blue) !important;
  color: #ffffff !important;
  border: none !important;
  font-size: .78rem !important;
  padding: 6px 14px !important;
  border-radius: 7px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: background .13s !important;
}
.bap-tech-card-footer .bap-btn:hover {
  background: var(--bap-blue-dark) !important;
  color: #fff !important;
  transform: none !important;
  box-shadow: none !important;
}

/* ── Pagination ──────────────────────────────────────── */
.bap-tech-pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; margin-top: 2rem; padding-top: 1.5rem;
  border-top: 1px solid var(--bap-border);
}
.bap-page-btn {
  padding: .5rem 1.25rem; background: #fff;
  border: 1.5px solid var(--bap-border);
  border-radius: 8px; font-size: .85rem; font-weight: 600;
  color: #374151; text-decoration: none; transition: all .13s;
}
.bap-page-btn:hover {
  border-color: #bfdbfe; background: #eff6ff; color: #1d4ed8;
}
.bap-page-info { font-size: .82rem; color: #94a3b8; }

/* ── Empty state ─────────────────────────────────────── */
.bap-tech-empty {
  text-align: center; padding: 4rem 2rem; color: #94a3b8;
  grid-column: 1 / -1;
}
.bap-tech-empty-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.bap-tech-empty p { font-size: .95rem; margin-bottom: 1rem; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 860px) {
  .bap-tech-layout { grid-template-columns: 1fr; }
  .bap-tech-sidebar { position: static; }
}
@media (max-width: 600px) {
  .bap-tech-search-form { flex-direction: column; }
  .bap-tech-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESEARCHERS PAGE — Semantic search UI
   ═══════════════════════════════════════════════════════════════════════════ */

/* Search row */
.bap-res-search-row {
  display: flex; align-items: stretch; gap: .75rem;
  margin: 1.25rem 0 1rem;
}
.bap-res-search-row .bap-tech-search-wrap { flex: 1; }

/* Auto-tags strip */
.bap-res-auto-tags {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: .4rem; margin-bottom: 1.5rem;
}
.bap-res-auto-label {
  font-size: .75rem; font-weight: 600; color: #94a3b8;
  text-transform: uppercase; letter-spacing: .08em; margin-right: .25rem;
}
.bap-tag--domain {
  background: #eff6ff; color: #1d4ed8;
  font-size: .75rem; font-weight: 600;
  padding: .22rem .65rem; border-radius: 999px;
}

/* Status bar */
.bap-res-status {
  padding: .75rem 1rem; border-radius: 8px;
  font-size: .875rem; margin-bottom: 1.25rem;
}
.bap-res-status--info { background: #eff6ff; color: #1d4ed8; }
.bap-res-status--warn { background: #fffbeb; color: #b45309; }
.bap-res-status--err  { background: #fef2f2; color: #dc2626; }

/* Results grid */
.bap-res-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.1rem;
}

/* Researcher card */
.bap-res-card {
  background: #fff;
  border: 1.5px solid #e8ecf0;
  border-radius: 14px;
  padding: 1.25rem;
  display: flex; flex-direction: column; gap: .75rem;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.bap-res-card:hover {
  border-color: #bfdbfe;
  box-shadow: 0 6px 24px rgba(26,86,219,.1);
  transform: translateY(-2px);
}

/* Card header */
.bap-res-card-header {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: .5rem;
}
.bap-res-card-name {
  font-size: 1rem; font-weight: 700; color: #0f172a; line-height: 1.3;
}
.bap-res-card-stars {
  display: flex; align-items: center; gap: .3rem;
  flex-shrink: 0;
}
.bap-res-stars     { font-size: 1rem; letter-spacing: .05em; }
.bap-res-stars--4  { color: #f59e0b; }
.bap-res-stars--3  { color: #f59e0b; }
.bap-res-stars--2  { color: #94a3b8; }
.bap-res-stars--1  { color: #94a3b8; }
.bap-res-top {
  font-size: .68rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: #f59e0b;
  background: #fffbeb; padding: .15rem .5rem; border-radius: 999px;
}

/* Summary */
.bap-res-card-summary {
  font-size: .83rem; color: #64748b; line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 4;
  -webkit-box-orient: vertical; overflow: hidden;
}

/* Tags */
.bap-res-tag-row { display: flex; flex-wrap: wrap; gap: .3rem; }
.bap-res-tag {
  font-size: .7rem; font-weight: 500;
  background: #f1f5f9; color: #475569;
  padding: .2rem .55rem; border-radius: 999px;
}

/* Footer: profile button */
.bap-res-card-footer { margin-top: auto; padding-top: .5rem; }
.bap-res-profile-btn {
  font-size: .78rem !important;
  color: var(--bap-blue) !important;
  border-color: var(--bap-blue) !important;
  text-decoration: none !important;
}
.bap-res-profile-btn:hover {
  background: var(--bap-blue) !important;
  color: #fff !important;
}

/* Responsive */
@media (max-width: 600px) {
  .bap-res-search-row { flex-direction: column; }
  .bap-res-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ONBOARDING — Profile form, NDA, progress steps, admin checklist
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Progress steps ──────────────────────────────────────────────────────── */
.bap-onboard-steps {
  display: flex; align-items: flex-start; gap: 0;
  margin: 0 0 2rem; padding: 1.5rem 2rem;
  background: #fff; border: 1px solid var(--bap-border);
  border-radius: 14px;
}
.bap-onboard-step {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; text-align: center;
  position: relative;
}
.bap-onboard-step + .bap-onboard-step::before {
  content: ''; position: absolute; left: calc(-50%);
  top: 18px; width: 100%; height: 2px;
  background: var(--bap-border); z-index: 0;
}
.bap-onboard-step.done + .bap-onboard-step::before { background: #22c55e; }
.bap-onboard-step-circle {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .875rem; font-weight: 700;
  background: #f1f5f9; color: #94a3b8;
  border: 2px solid var(--bap-border);
  position: relative; z-index: 1;
  transition: all .2s;
}
.bap-onboard-step.done .bap-onboard-step-circle {
  background: #22c55e; color: #fff; border-color: #22c55e;
}
.bap-onboard-step.current .bap-onboard-step-circle {
  background: var(--bap-blue); color: #fff; border-color: var(--biu-green);
  box-shadow: 0 0 0 4px rgba(26,86,219,.15);
}
.bap-onboard-step-label {
  margin-top: .5rem; font-size: .75rem; font-weight: 600;
  color: #94a3b8; text-transform: uppercase; letter-spacing: .06em;
}
.bap-onboard-step.done .bap-onboard-step-label    { color: #15803d; }
.bap-onboard-step.current .bap-onboard-step-label { color: var(--biu-green); }

/* ── Profile form sections ───────────────────────────────────────────────── */
.bap-profile-form { display: flex; flex-direction: column; gap: 1.5rem; }
.bap-form-section {
  background: #fff; border: 1px solid var(--bap-border);
  border-radius: 14px; padding: 1.75rem 2rem;
}
.bap-form-section-title {
  font-size: 1.05rem; font-weight: 700; color: var(--bap-ink);
  margin-bottom: .25rem;
}
.bap-form-section-sub {
  font-size: .85rem; color: var(--bap-muted); margin-bottom: 1.25rem;
}
.bap-form-row { display: flex; gap: 1rem; }
.bap-form-row--2 > * { flex: 1; min-width: 0; }
.bap-form-group { display: flex; flex-direction: column; gap: .35rem; margin-bottom: .875rem; }
.bap-form-label {
  font-size: .82rem; font-weight: 600; color: #374151;
  display: flex; flex-direction: column; gap: .15rem;
}
.bap-form-label .req { color: var(--bap-error); }
.bap-form-hint { font-size: .75rem; font-weight: 400; color: var(--bap-muted); }
.bap-form-input {
  padding: .6rem .85rem; border: 1.5px solid var(--bap-border);
  border-radius: 8px; font-size: .9rem; font-family: var(--bap-font);
  color: var(--bap-ink); background: #fff;
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
}
.bap-form-input:focus {
  outline: none; border-color: var(--biu-green);
  box-shadow: 0 0 0 3px rgba(26,86,219,.1);
}
.bap-form-textarea { resize: vertical; min-height: 100px; }

/* ── Role preference cards ───────────────────────────────────────────────── */
.bap-role-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.bap-role-card {
  border: 2px solid var(--bap-border); border-radius: 12px;
  padding: 1.25rem 1rem; cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
  display: flex; flex-direction: column; gap: .4rem;
  position: relative;
}
.bap-role-card input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.bap-role-card:hover { border-color: #bfdbfe; }
.bap-role-card.selected {
  border-color: var(--biu-green);
  background: #eff6ff;
  box-shadow: 0 0 0 3px rgba(26,86,219,.1);
}
.bap-role-card-icon { font-size: 1.6rem; }
.bap-role-card-title { font-weight: 700; font-size: .95rem; color: var(--bap-ink); }
.bap-role-card-desc  { font-size: .8rem; color: var(--bap-muted); line-height: 1.5; }

/* ── Domain interest grid ────────────────────────────────────────────────── */
.bap-domain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .6rem;
}
.bap-domain-check {
  display: flex; align-items: center; gap: .6rem;
  padding: .65rem .875rem; border-radius: 9px;
  border: 1.5px solid var(--bap-border); cursor: pointer;
  font-size: .84rem; color: #374151;
  transition: border-color .13s, background .13s;
  position: relative;
}
.bap-domain-check input[type="checkbox"] { position: absolute; opacity: 0; pointer-events: none; }
.bap-domain-check-mark {
  width: 18px; height: 18px; border-radius: 5px;
  border: 1.5px solid var(--bap-border); background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; color: transparent; flex-shrink: 0;
  transition: all .13s;
}
.bap-domain-check:hover { border-color: #bfdbfe; background: #f8faff; }
.bap-domain-check.checked {
  border-color: var(--biu-green); background: #eff6ff;
}
.bap-domain-check.checked .bap-domain-check-mark {
  background: var(--bap-blue); border-color: var(--biu-green); color: #fff;
}

/* ── NDA box ─────────────────────────────────────────────────────────────── */
.bap-form-section--nda { border-color: #fcd34d; background: #fffbeb; }
.bap-nda-box {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
  padding: 1.5rem; margin-bottom: 1.25rem;
  font-size: .85rem; line-height: 1.75; color: #374151;
  max-height: 300px; overflow-y: auto;
}
.bap-nda-box h3 {
  font-size: .95rem; font-weight: 700; margin-bottom: 1rem; color: var(--bap-ink);
}
.bap-nda-box ol { padding-left: 1.4rem; }
.bap-nda-box li { margin-bottom: .6rem; }
.bap-nda-footer {
  margin-top: 1rem; font-size: .78rem; color: var(--bap-muted);
  border-top: 1px solid var(--bap-border); padding-top: .75rem;
}
.bap-nda-accept {
  display: flex; align-items: flex-start; gap: .875rem;
  padding: 1rem 1.25rem; border-radius: 10px;
  background: #fff; border: 1.5px solid #fcd34d;
  cursor: pointer; font-size: .875rem; color: #374151; line-height: 1.5;
}
.bap-nda-accept input[type="checkbox"] { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; accent-color: var(--biu-green); }

/* ── Form actions ────────────────────────────────────────────────────────── */
.bap-form-actions { display: flex; flex-direction: column; gap: .75rem; align-items: flex-start; }
.bap-form-actions-hint { font-size: .82rem; color: var(--bap-muted); margin: 0; }

/* ── Dashboard checklist (pending users) ─────────────────────────────────── */
.bap-checklist {
  display: flex; flex-direction: column; gap: .6rem;
  margin-top: 1rem; padding: 1.25rem 1.5rem;
  background: #fff; border: 1px solid var(--bap-border);
  border-radius: 12px;
}
.bap-checklist-item {
  display: flex; align-items: center; gap: .75rem;
  font-size: .9rem; color: #374151; padding: .35rem 0;
}
.bap-checklist-item.done { color: #15803d; }
.bap-checklist-item a { color: var(--biu-green); font-weight: 600; }
.bap-checklist-item.done a { color: #15803d; }

/* ── Notices ─────────────────────────────────────────────────────────────── */
.bap-notice--success {
  background: var(--bap-success-lt); border-color: #86efac;
  color: #14532d;
}
.bap-notice--error {
  background: var(--bap-error-lt); border-color: #fca5a5;
  color: #7f1d1d;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 700px) {
  .bap-form-row--2   { flex-direction: column; }
  .bap-role-cards    { grid-template-columns: 1fr; }
  .bap-domain-grid   { grid-template-columns: 1fr 1fr; }
  .bap-form-section  { padding: 1.25rem 1rem; }
  .bap-onboard-steps { padding: 1.25rem .75rem; }
}
@media (max-width: 420px) {
  .bap-domain-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PORTAL ADMIN DASHBOARD  (badm- prefix)
   ═══════════════════════════════════════════════════════════════════════════ */

.bap-page-admin { max-width: 1300px; }

/* ── Header ──────────────────────────────────────────────────────────────── */
.badm-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  margin-bottom: 1.5rem;
}
.badm-title    { font-size: 1.5rem; font-weight: 800; color: var(--bap-ink); margin: 0; }
.badm-subtitle { font-size: .875rem; color: var(--bap-muted); margin: .2rem 0 0; }
.badm-header-stats {
  display: flex; gap: 1.5rem; align-items: center;
  background: #f8fafc; border: 1px solid var(--bap-border);
  border-radius: 10px; padding: .6rem 1.25rem;
}
.badm-stat { font-size: .82rem; color: var(--bap-muted); }
.badm-stat strong { display: block; font-size: 1.1rem; color: var(--bap-ink); font-weight: 700; }

/* ── Tab bar ─────────────────────────────────────────────────────────────── */
.badm-tabs {
  display: flex; gap: .35rem; border-bottom: 2px solid var(--bap-border);
  margin-bottom: 1.5rem; flex-wrap: wrap;
}
.badm-tab {
  padding: .65rem 1.35rem; font-size: .875rem; font-weight: 600;
  background: none; border: none; border-bottom: 2px solid transparent;
  cursor: pointer; color: var(--bap-muted); margin-bottom: -2px;
  border-radius: 6px 6px 0 0; transition: color .15s, border-color .15s;
  display: flex; align-items: center; gap: .5rem;
}
.badm-tab:hover { color: var(--bap-ink); }
.badm-tab.active { color: var(--biu-green); border-bottom-color: var(--biu-green); background: #eff6ff; }
.badm-badge {
  background: #dc2626; color: #fff;
  font-size: .68rem; font-weight: 700; padding: .1rem .4rem;
  border-radius: 999px; min-width: 18px; text-align: center;
}

/* ── Notice bar ──────────────────────────────────────────────────────────── */
.badm-notice {
  padding: .75rem 1rem; border-radius: 8px; margin-bottom: 1rem;
  font-size: .875rem; font-weight: 500;
}
.badm-notice--success { background: #f0fdf4; color: #15803d; border: 1px solid #86efac; }
.badm-notice--error   { background: #fef2f2; color: #dc2626; border: 1px solid #fca5a5; }

/* ── Panels ──────────────────────────────────────────────────────────────── */
.badm-panel { display: none; }
.badm-panel.active { display: block; animation: fadeInTab .2s; }

/* ── Toolbar ─────────────────────────────────────────────────────────────── */
.badm-toolbar {
  display: flex; gap: .6rem; align-items: center;
  flex-wrap: wrap; margin-bottom: 1rem;
}
.badm-search {
  flex: 1; min-width: 180px; padding: .55rem .875rem;
  border: 1.5px solid var(--bap-border); border-radius: 8px;
  font-size: .875rem; font-family: var(--bap-font);
}
.badm-search:focus { outline: none; border-color: var(--biu-green); box-shadow: 0 0 0 3px rgba(26,86,219,.1); }
.badm-select {
  padding: .55rem .75rem; border: 1.5px solid var(--bap-border);
  border-radius: 8px; font-size: .875rem; font-family: var(--bap-font);
  background: #fff; cursor: pointer;
}
.badm-select-sm {
  padding: .3rem .5rem; border: 1px solid var(--bap-border);
  border-radius: 6px; font-size: .78rem; font-family: var(--bap-font);
  background: #fff; cursor: pointer;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.badm-btn {
  padding: .55rem 1.1rem; border-radius: 8px; border: none;
  font-size: .875rem; font-weight: 600; cursor: pointer;
  transition: background .15s, opacity .15s;
  display: inline-flex; align-items: center; gap: .4rem;
}
.badm-btn-primary { background: var(--bap-blue); color: #fff; }
.badm-btn-primary:hover { background: #1557b0; }
.badm-btn-primary:disabled { opacity: .5; cursor: not-allowed; }
.badm-btn-ghost { background: #f1f5f9; color: var(--bap-ink); border: 1px solid var(--bap-border); }
.badm-btn-ghost:hover { background: #e2e8f0; }
.badm-btn-danger { background: #fef2f2; color: #dc2626; border: 1px solid #fca5a5; }
.badm-btn-danger:hover { background: #fee2e2; }
.badm-btn-sm { padding: .3rem .75rem; font-size: .8rem; }
.badm-btn-lg { padding: .75rem 1.5rem; font-size: .95rem; }
.badm-link {
  background: none; border: none; padding: 0; font-size: inherit;
  color: var(--biu-green); cursor: pointer; font-weight: 600;
  text-decoration: underline; text-underline-offset: 2px;
}

/* ── Table ───────────────────────────────────────────────────────────────── */
.badm-table-wrap { overflow-x: auto; border-radius: 10px; border: 1px solid var(--bap-border); }
.badm-table {
  width: 100%; border-collapse: collapse; font-size: .84rem;
}
.badm-table thead { background: #f8fafc; }
.badm-table th {
  padding: .75rem 1rem; text-align: left; font-size: .72rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  color: var(--bap-muted); border-bottom: 1px solid var(--bap-border); white-space: nowrap;
}
.badm-table td {
  padding: .75rem 1rem; border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}
.badm-table tbody tr:last-child td { border-bottom: none; }
.badm-table tbody tr:hover td { background: #f8fafc; }
.badm-actions { display: flex; gap: .4rem; align-items: center; }
.badm-meta { color: var(--bap-muted); font-size: .8rem; }
.badm-empty, .badm-loading, .badm-error {
  text-align: center; padding: 3rem 1rem;
  color: var(--bap-muted); font-size: .9rem;
}
.badm-error { color: #dc2626; }

/* ── Inline edit ─────────────────────────────────────────────────────────── */
.badm-inline-input {
  padding: .3rem .6rem; border: 1.5px solid var(--bap-blue);
  border-radius: 6px; font-size: .84rem; margin-right: .4rem;
  font-family: var(--bap-font); width: 280px;
}

/* ── Role badges ─────────────────────────────────────────────────────────── */
.badm-role-badge {
  padding: .2rem .65rem; border-radius: 999px; font-size: .72rem;
  font-weight: 700; white-space: nowrap;
}
.badm-role-pending  { background: #fef3c7; color: #b45309; }
.badm-role-investor { background: #dbeafe; color: #1d4ed8; }
.badm-role-mentor   { background: #ede9fe; color: #7c3aed; }
.badm-role-admin    { background: #f0fdf4; color: #15803d; }

/* ── Tags ────────────────────────────────────────────────────────────────── */
.badm-tag {
  display: inline-block; background: #f1f5f9; color: #475569;
  padding: .18rem .6rem; border-radius: 999px; font-size: .72rem;
  font-weight: 500;
}
.badm-tag-green { background: #dcfce7; color: #15803d; }

/* ── Pagination ──────────────────────────────────────────────────────────── */
.badm-pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; padding: 1rem; border-top: 1px solid var(--bap-border);
}

/* ── Sync tab ────────────────────────────────────────────────────────────── */
.badm-sync-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.badm-card {
  background: #fff; border: 1px solid var(--bap-border);
  border-radius: 14px; padding: 1.75rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.badm-card-title { font-size: 1rem; font-weight: 700; color: var(--bap-ink); margin: 0; }
.badm-card-desc  { font-size: .85rem; color: var(--bap-muted); line-height: 1.6; margin: 0; }
.badm-sync-progress {
  display: flex; align-items: center; gap: .75rem;
  font-size: .875rem; color: var(--bap-muted);
}
.badm-spinner {
  width: 18px; height: 18px; border: 2px solid #e2e8f0;
  border-top-color: var(--biu-green); border-radius: 50%;
  animation: badm-spin .7s linear infinite;
}
@keyframes badm-spin { to { transform: rotate(360deg); } }
.badm-sync-row {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .75rem 0; border-bottom: 1px solid #f1f5f9;
}
.badm-sync-row:last-child { border-bottom: none; }
.badm-sync-icon { font-size: 1rem; margin-top: .1rem; }
.badm-sync-date { font-size: .82rem; font-weight: 600; color: var(--bap-ink); }
.badm-sync-meta { font-size: .78rem; color: var(--bap-muted); }
.badm-sync-err  { font-size: .78rem; color: #dc2626; }

/* ── Settings tab ────────────────────────────────────────────────────────── */
.badm-settings-form { display: flex; flex-direction: column; gap: 1.25rem; }
.badm-settings-section {
  background: #fff; border: 1px solid var(--bap-border);
  border-radius: 14px; padding: 1.5rem 1.75rem;
}
.badm-settings-title {
  font-size: .95rem; font-weight: 700; color: var(--bap-ink);
  margin-bottom: 1rem;
}
.badm-form-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: .875rem;
}
.badm-label {
  display: flex; flex-direction: column; gap: .35rem;
  font-size: .82rem; font-weight: 600; color: #374151;
}
.badm-input {
  padding: .55rem .875rem; border: 1.5px solid var(--bap-border);
  border-radius: 8px; font-size: .875rem; font-family: var(--bap-font);
  color: var(--bap-ink); background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.badm-input:focus { outline: none; border-color: var(--biu-green); box-shadow: 0 0 0 3px rgba(26,86,219,.1); }

/* ── User detail drawer ──────────────────────────────────────────────────── */
.badm-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.4);
  z-index: 998; opacity: 0; pointer-events: none; transition: opacity .25s;
}
.badm-overlay.open { opacity: 1; pointer-events: all; }
.badm-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 480px; max-width: 100vw;
  z-index: 999; transform: translateX(100%); transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.badm-drawer.open { transform: translateX(0); }
.badm-drawer-panel {
  height: 100%; background: #fff; box-shadow: -8px 0 40px rgba(0,0,0,.12);
  display: flex; flex-direction: column;
}
.badm-drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--bap-border);
  flex-shrink: 0;
}
.badm-drawer-title { font-size: 1.1rem; font-weight: 700; color: var(--bap-ink); margin: 0; }
.badm-drawer-close {
  background: none; border: none; font-size: 1.2rem; cursor: pointer;
  color: var(--bap-muted); padding: .25rem .5rem; border-radius: 6px;
}
.badm-drawer-close:hover { background: #f1f5f9; }
.badm-drawer-body { flex: 1; overflow-y: auto; padding: 1.5rem; }

/* Detail inside drawer */
.badm-detail { display: flex; flex-direction: column; gap: 1.25rem; }
.badm-detail-section {
  background: #f8fafc; border-radius: 10px; padding: 1rem 1.25rem;
  display: flex; flex-direction: column; gap: .75rem; font-size: .875rem;
}
.badm-detail-grid { display: flex; flex-direction: column; gap: .5rem; }
.badm-detail-row { display: flex; gap: .75rem; }
.badm-detail-label { width: 90px; flex-shrink: 0; color: var(--bap-muted); font-weight: 600; font-size: .78rem; padding-top: .1rem; }
.badm-detail-value { color: var(--bap-ink); word-break: break-word; }
.badm-detail-bio { font-size: .85rem; }
.badm-detail-bio p { margin: .4rem 0 0; color: #374151; line-height: 1.6; }
.badm-detail-domains { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .4rem; }
.badm-detail-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .25rem; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .badm-sync-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .badm-header { flex-direction: column; }
  .badm-tabs { gap: .2rem; }
  .badm-tab { padding: .5rem .75rem; font-size: .8rem; }
  .badm-drawer { width: 100vw; }
  .badm-table { font-size: .78rem; }
  .badm-table th, .badm-table td { padding: .6rem .6rem; }
}

/* ── Both-role badge ─────────────────────────────────────────────────────── */
.badm-role-both { background: #e0e7ff; color: #3730a3; }

/* ── Drawer editable fields grid ─────────────────────────────────────────── */
.badm-detail-edit-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: .75rem;
}

/* ── Inline confirm box (replaces browser confirm/prompt dialogs) ─────────── */
.badm-inline-confirm {
  background: #fff8ed; border: 1.5px solid #fbbf24;
  border-radius: 10px; padding: 1rem 1.25rem;
  margin-bottom: 1rem; display: flex;
  flex-direction: column; gap: .75rem;
}
.badm-inline-confirm p {
  margin: 0; font-size: .9rem; color: var(--bap-ink); line-height: 1.5;
}
.badm-inline-confirm .badm-btn { align-self: flex-start; }

/* ── NDA Signature Block ─────────────────────────────────────────────────── */

/* ── BIU Typography — display font for all major headings ─────────────── */
.bap-portal h1, .bap-portal h2, .bap-portal h3 {
  font-family: var(--bap-font-disp);
}
.bap-form-section-title,
.bap-onboard-step-label,
.bap-hero-eyebrow,
.bap-card-title,
.bap-section-heading {
  font-family: var(--bap-font-disp);
}
/* Nav links — DM Sans for UI clarity */
.bap-nav-link, .bap-btn, .bap-form-label, .bap-form-input {
  font-family: var(--bap-font);
}
/* Hero eyebrow gold color */
.bap-hero-eyebrow {
  color: var(--biu-gold) !important;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  font-family: var(--bap-font);
}
/* Gold accent on section titles */
.bap-form-section-title {
  color: var(--biu-green) !important;
  border-bottom: 2px solid var(--biu-gold);
  padding-bottom: 0.4em;
  margin-bottom: 1rem;
}
/* NDA box brand styling */
.bap-nda-box {
  border: 1px solid var(--biu-green) !important;
  border-left: 4px solid var(--biu-gold) !important;
  border-radius: 0 8px 8px 0 !important;
}
/* Status badges: green-based */
.badm-role-badge { font-family: var(--bap-font); }
/* Tag styling: BIU blue tint */
.bap-tag { 
  background: rgba(120,205,230,0.15) !important; 
  color: var(--biu-green-dk) !important;
  border: 1px solid rgba(120,205,230,0.3) !important;
}
/* Domain check selected: gold accent */
.bap-domain-check.checked {
  border-color: var(--biu-gold) !important;
  background: var(--biu-mint) !important;
}
/* Onboarding steps: BIU green */
.bap-onboard-step.done .bap-onboard-step-circle {
  background: var(--biu-green) !important;
  border-color: var(--biu-green) !important;
  color: var(--biu-gold) !important;
}
.bap-onboard-step.current .bap-onboard-step-circle {
  background: var(--biu-gold) !important;
  border-color: var(--biu-gold) !important;
  color: var(--biu-green-dk) !important;
}
/* Notice success: BIU green */
.bap-notice--success {
  border-left-color: var(--biu-green) !important;
  background: var(--biu-mint) !important;
}
/* Role card selected state */
.bap-role-card.selected {
  border-color: var(--biu-gold) !important;
  background: var(--biu-mint) !important;
}

.bap-nda-signature-block {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
}
.bap-nda-sig-fields {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
    margin-top: 1.25rem;
}
@media (max-width: 600px) {
    .bap-nda-sig-fields { grid-template-columns: 1fr; }
}
.bap-sig-input {
    font-style: italic;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
    border-bottom: 2px solid #059669 !important;
    border-radius: 0 !important;
    background: transparent !important;
}
.bap-sig-input:focus {
    border-bottom-color: #047857 !important;
    outline: none;
    box-shadow: none !important;
}

/* ═══════════════════════════════════════════════════════════════
   BRANDED LOGIN PAGE  —  bap-page-login
   ═══════════════════════════════════════════════════════════════ */

.bap-page-login .bap-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 72px - 56px);   /* viewport - header - footer */
  padding: 48px 24px;
  background: linear-gradient(160deg, #162d45 0%, #1a3a5c 40%, #162d45 100%);
}

/* ── Card ── */
.bap-login-wrap {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}

.bap-login-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0,0,0,.30), 0 8px 24px rgba(0,0,0,.18);
  overflow: hidden;
}

/* ── Card header (dark green) ── */
.bap-login-card-header {
  background: linear-gradient(135deg, #00280F 0%, #004128 60%, #005a36 100%);
  padding: 36px 40px 32px;
  text-align: center;
  border-bottom: 3px solid #EAB941;
}

.bap-login-eyebrow {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #EAB941;
  background: rgba(234,185,65,.12);
  border: 1px solid rgba(234,185,65,.25);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 20px;
}

.bap-login-title {
  font-family: var(--bap-font-disp);
  font-size: 1.9rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
  letter-spacing: -.02em;
  line-height: 1.1;
}

.bap-login-sub {
  font-size: .88rem;
  color: rgba(255,255,255,.65);
  margin: 0;
  letter-spacing: .01em;
}

/* ── Card body ── */
.bap-login-card-body {
  padding: 36px 40px 28px;
}

/* ── Error box ── */
.bap-login-error {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-left: 4px solid #ef4444;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: .875rem;
  color: #b91c1c;
  margin-bottom: 24px;
}

/* ── Fields ── */
.bap-login-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.bap-login-field {
  margin-bottom: 20px;
}

.bap-login-field label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  font-weight: 600;
  color: #374151;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.bap-login-forgot {
  font-size: .78rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: #004128;
  text-decoration: none;
}
.bap-login-forgot:hover { color: #EAB941; text-decoration: underline; }

.bap-login-field input[type="text"],
.bap-login-field input[type="password"] {
  display: block;
  width: 100%;
  padding: 13px 16px;
  font-size: .975rem;
  font-family: var(--bap-font);
  color: #111827;
  background: #f9fafb;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
  box-sizing: border-box;
}

.bap-login-field input[type="text"]:focus,
.bap-login-field input[type="password"]:focus {
  border-color: #004128;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0,65,40,.1);
}

.bap-login-field input::placeholder { color: #9ca3af; }

/* ── Remember me ── */
.bap-login-remember {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .845rem;
  color: #6b7280;
  cursor: pointer;
  margin-bottom: 28px;
  user-select: none;
}
.bap-login-remember input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: #004128;
  cursor: pointer;
  flex-shrink: 0;
}

/* ── Submit button ── */
.bap-login-submit {
  display: block;
  width: 100%;
  padding: 15px 24px;
  font-family: var(--bap-font);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: #00280F !important;
  background: linear-gradient(135deg, #EAB941 0%, #d4a82a 100%);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s, background .18s;
  box-shadow: 0 2px 8px rgba(234,185,65,.35);
}
.bap-login-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(234,185,65,.50);
  background: linear-gradient(135deg, #f2c84e 0%, #e0b530 100%);
}
.bap-login-submit:active { transform: translateY(0); }

/* ── Card footer ── */
.bap-login-card-footer {
  padding: 20px 40px 24px;
  text-align: center;
  border-top: 1px solid #f3f4f6;
  background: #fafafa;
}
.bap-login-card-footer p {
  margin: 0 0 4px;
  font-size: .75rem;
  color: #9ca3af;
  line-height: 1.6;
}
.bap-login-card-footer p:last-child { margin-bottom: 0; }
.bap-login-card-footer a {
  color: #004128;
  text-decoration: none;
  font-weight: 600;
}
.bap-login-card-footer a:hover { color: #EAB941; }

/* ── Responsive ── */
@media (max-width: 520px) {
  .bap-page-login .bap-main { padding: 24px 16px; }
  .bap-login-card-header { padding: 28px 24px 24px; }
  .bap-login-card-body   { padding: 28px 24px 22px; }
  .bap-login-card-footer { padding: 18px 24px 20px; }
  .bap-login-title { font-size: 1.6rem; }
}

/* ── Login success message ── */
.bap-login-success {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-left: 4px solid #22c55e;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: .875rem;
  color: #15803d;
  margin-bottom: 24px;
}

/* ═══════════════════════════════════════════════════════════════
   RESEARCH & INNOVATION CENTERS — bap-page-labs
   ═══════════════════════════════════════════════════════════════ */

/* ── Page Header ── */
.bap-page-labs .bap-main {
  padding: 48px 48px 80px;
  background: var(--bap-surface, #F7F8FA);
}

.bap-rc-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding: 0 0 48px;
  border-bottom: 2px solid #E9EAEC;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.bap-rc-eyebrow {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--biu-gold, #EAB941);
  margin-bottom: 12px;
}

.bap-rc-title {
  font-family: var(--bap-font-disp);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: #111827;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin: 0 0 14px;
}

.bap-rc-subtitle {
  font-size: .975rem;
  color: #6B7280;
  line-height: 1.7;
  max-width: 560px;
  margin: 0;
}

.bap-rc-header-stats {
  display: flex;
  gap: 32px;
  flex-shrink: 0;
}

.bap-rc-hstat {
  text-align: center;
  padding: 16px 24px;
  background: #fff;
  border: 1px solid #E9EAEC;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  min-width: 80px;
}

.bap-rc-hstat-n {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--biu-green, #004128);
  letter-spacing: -.04em;
  line-height: 1;
}

.bap-rc-hstat-l {
  display: block;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #9CA3AF;
  margin-top: 5px;
}

/* ── Cards Grid ── */
.bap-rc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

/* ── Individual Card ── */
.bap-rc-card {
  background: #fff;
  border: 1px solid #E9EAEC;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  transition: box-shadow .2s, transform .2s;
}

.bap-rc-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,.1);
  transform: translateY(-2px);
}

/* Left accent bar by tier */
.bap-rc-card--crown    { border-left: 4px solid #EAB941; }
.bap-rc-card--flagship { border-left: 4px solid #004128; }
.bap-rc-card--new      { border-left: 4px solid #3b82f6; }
.bap-rc-card--growth   { border-left: 4px solid #8b5cf6; }
.bap-rc-card--strategic{ border-left: 4px solid #ef4444; }
.bap-rc-card--eu       { border-left: 4px solid #06b6d4; }
.bap-rc-card--industry { border-left: 4px solid #f97316; }
.bap-rc-card--cutting  { border-left: 4px solid #14b8a6; }

/* ── Card Top ── */
.bap-rc-card-top {
  display: flex;
  gap: 16px;
  padding: 24px 24px 20px;
  border-bottom: 1px solid #F3F4F6;
  background: linear-gradient(to bottom, #FAFAFA, #fff);
}

.bap-rc-card-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.bap-rc-num {
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .12em;
  color: #D1D5DB;
  font-family: var(--bap-font-disp);
}

.bap-rc-icon {
  font-size: 2rem;
  line-height: 1;
  filter: saturate(0.9);
}

.bap-rc-card-right {
  flex: 1;
  min-width: 0;
}

/* Tier badge */
.bap-rc-tier {
  display: inline-block;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 8px;
}

.bap-rc-tier--crown    { background: #fefce8; color: #854d0e; border: 1px solid #fef08a; }
.bap-rc-tier--flagship { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.bap-rc-tier--new      { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.bap-rc-tier--growth   { background: #fdf4ff; color: #7e22ce; border: 1px solid #e9d5ff; }
.bap-rc-tier--strategic{ background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.bap-rc-tier--eu       { background: #ecfeff; color: #155e75; border: 1px solid #a5f3fc; }
.bap-rc-tier--industry { background: #fff7ed; color: #9a3412; border: 1px solid #fed7aa; }
.bap-rc-tier--cutting  { background: #f0fdfa; color: #134e4a; border: 1px solid #99f6e4; }

.bap-rc-name {
  font-family: var(--bap-font-disp);
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
  letter-spacing: -.02em;
  line-height: 1.25;
  margin: 0 0 6px;
}

.bap-rc-tagline {
  font-size: .82rem;
  color: #6B7280;
  line-height: 1.5;
  margin: 0;
  font-style: italic;
}

/* ── Stats strip ── */
.bap-rc-stats {
  display: flex;
  border-bottom: 1px solid #F3F4F6;
  background: #FAFAFA;
}

.bap-rc-stat {
  flex: 1;
  text-align: center;
  padding: 12px 8px;
  border-right: 1px solid #F3F4F6;
}

.bap-rc-stat:last-child { border-right: none; }

.bap-rc-stat-n {
  display: block;
  font-size: .95rem;
  font-weight: 800;
  color: var(--biu-green, #004128);
  letter-spacing: -.02em;
  line-height: 1.1;
}

.bap-rc-stat-l {
  display: block;
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #9CA3AF;
  margin-top: 3px;
}

/* ── Card Body ── */
.bap-rc-body {
  padding: 20px 24px;
  flex: 1;
}

.bap-rc-desc {
  font-size: .875rem;
  color: #374151;
  line-height: 1.75;
  margin: 0 0 16px;
}

/* Domain tags */
.bap-rc-domains {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.bap-rc-domain-tag {
  display: inline-block;
  background: #EFF6FF;
  color: #1E40AF;
  font-size: .67rem;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid #BFDBFE;
}

/* Partners */
.bap-rc-partners {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.bap-rc-partners-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #9CA3AF;
}

.bap-rc-partner {
  display: inline-block;
  background: #F9FAFB;
  color: #374151;
  font-size: .72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid #E5E7EB;
}

/* ── Card Footer ── */
.bap-rc-card-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid #F3F4F6;
  background: #FAFAFA;
  flex-wrap: wrap;
}

.bap-rc-visit-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .03em;
  color: #fff !important;
  background: var(--biu-green, #004128);
  padding: 8px 16px;
  border-radius: 7px;
  text-decoration: none;
  transition: background .18s, transform .15s;
  flex-shrink: 0;
}

.bap-rc-visit-btn:hover {
  background: #005236;
  transform: translateY(-1px);
}

.bap-rc-tech-btn {
  font-size: .8rem;
  font-weight: 600;
  color: var(--biu-green, #004128) !important;
  text-decoration: none;
  letter-spacing: .01em;
}

.bap-rc-tech-btn:hover {
  color: var(--biu-gold, #EAB941) !important;
  text-decoration: underline;
}

/* ── Bottom CTA strip ── */
.bap-rc-cta-strip {
  background: linear-gradient(135deg, #00280F 0%, #004128 60%, #005a36 100%);
  border-radius: 16px;
  padding: 36px 40px;
  margin-top: 12px;
  border: 1px solid rgba(234,185,65,.2);
}

.bap-rc-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.bap-rc-cta-title {
  font-family: var(--bap-font-disp);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
  letter-spacing: -.02em;
}

.bap-rc-cta-sub {
  font-size: .9rem;
  color: rgba(255,255,255,.65);
  margin: 0;
  line-height: 1.6;
  max-width: 520px;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .bap-rc-grid { grid-template-columns: 1fr; }
  .bap-rc-header { flex-direction: column; align-items: flex-start; }
  .bap-rc-header-stats { width: 100%; justify-content: flex-start; }
}

@media (max-width: 768px) {
  .bap-page-labs .bap-main { padding: 28px 20px 56px; }
  .bap-rc-cta-inner { flex-direction: column; align-items: flex-start; }
  .bap-rc-cta-strip { padding: 28px 24px; }
  .bap-rc-header-stats { gap: 12px; }
  .bap-rc-hstat { padding: 12px 16px; min-width: 64px; }
}

/* ── CDA 2026 — updated NDA styles ── */
.bap-nda-header {
  border-bottom: 2px solid #E9EAEC;
  padding-bottom: 20px;
  margin-bottom: 20px;
  text-align: center;
}
.bap-nda-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: .12em;
  color: #111827;
  margin: 0 0 12px;
  text-transform: uppercase;
}
.bap-nda-parties {
  font-size: .88rem;
  color: #374151;
  line-height: 1.6;
  margin: 0 0 8px;
}
.bap-nda-effective {
  font-size: .83rem;
  color: #6B7280;
  margin: 0;
}
.bap-nda-section {
  margin-bottom: 14px;
}
.bap-nda-section p {
  font-size: .855rem;
  line-height: 1.75;
  color: #374151;
  margin: 0;
  text-align: justify;
}
/* Recipient sig fields 2-column grid */
.bap-nda-recipient-fields {
  background: #F9FAFB;
  border: 1px solid #E9EAEC;
  border-radius: 10px;
  padding: 20px 24px 16px;
  margin-bottom: 20px;
}
.bap-nda-sig-heading {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #6B7280;
  margin: 0 0 16px;
}
.bap-nda-sig-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 20px;
}
@media (max-width: 640px) {
  .bap-nda-sig-grid { grid-template-columns: 1fr; }
}

/* ── New User Login (bap_newlogin) ── */
.bap-newlogin-steps {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  background: rgba(0,65,40,.07);
  border: 1px solid rgba(0,65,40,.15);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 1.4rem;
}
.bap-newlogin-step {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-size: .92rem;
  color: #374151;
}
.bap-newlogin-step-num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: #004128;
  color: #EAB941;
  border-radius: 50%;
  font-size: .75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Introduction Request Confirmation Form ──────────────────────────────── */
.bap-intro-confirm-card {
  background: #fff;
  border: 1px solid var(--bap-border);
  border-radius: 12px;
  padding: 1.4rem 1.6rem;
  margin-bottom: 1.6rem;
  box-shadow: var(--bap-sh-sm);
}
.bap-intro-tech-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--bap-green-dk);
  margin: 0 0 .5rem;
}
.bap-intro-tech-excerpt {
  font-size: .93rem;
  color: #4b5563;
  margin: 0;
  line-height: 1.55;
}
.bap-intro-form {
  background: #fff;
  border: 1px solid var(--bap-border);
  border-radius: 12px;
  padding: 1.6rem;
  box-shadow: var(--bap-sh-sm);
}
.bap-form-group { margin-bottom: 1.2rem; }
.bap-form-label {
  display: block;
  font-weight: 600;
  font-size: .93rem;
  color: #374151;
  margin-bottom: .45rem;
}
.bap-form-optional {
  font-weight: 400;
  color: #9ca3af;
  font-size: .85em;
}
.bap-form-textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: .7rem 1rem;
  font-size: .96rem;
  font-family: inherit;
  color: #1f2937;
  resize: vertical;
  transition: border-color .18s;
  box-sizing: border-box;
}
.bap-form-textarea:focus {
  outline: none;
  border-color: var(--bap-green-dk);
  box-shadow: 0 0 0 3px rgba(0,65,40,.1);
}
.bap-intro-form-actions {
  display: flex;
  gap: .8rem;
  align-items: center;
  flex-wrap: wrap;
}
.bap-form-hint {
  font-size: .8rem;
  color: #9ca3af;
  margin: .3rem 0 0;
}
.bap-input-error {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220,38,38,.1) !important;
}

/* ── Request row actions ─────────────────────────────────────────────────── */
.bap-request-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .5rem;
  flex-shrink: 0;
}
.bap-cancel-btn {
  font-size: .82rem;
  color: #6b7280;
  background: #fff;
  border: 1.5px solid #d1d5db;
  padding: .35em 1em;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: color .15s, border-color .15s, background .15s;
  white-space: nowrap;
}
.bap-cancel-btn:hover {
  color: #b91c1c;
  border-color: #fca5a5;
  background: #fff1f1;
}

/* ── Admin dashboard: settings tab ──────────────────────────────────────── */
.badm-settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 900px) { .badm-settings-grid { grid-template-columns: 1fr; } }
.badm-form-group { margin-bottom: 1rem; }
.badm-textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: .6rem .85rem;
  font-size: .9rem;
  font-family: inherit;
  color: #1f2937;
  resize: vertical;
  box-sizing: border-box;
  transition: border-color .18s;
}
.badm-textarea:focus {
  outline: none;
  border-color: #004128;
  box-shadow: 0 0 0 3px rgba(0,65,40,.1);
}
.badm-hint {
  font-size: .78rem;
  color: #9ca3af;
  margin: .3rem 0 0;
}

/* ── Portal Events: frontend (bap_events shortcode) ─────────────────────── */
.bap-events-section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #004128;
  margin: 2rem 0 1rem;
  padding-bottom: .4rem;
  border-bottom: 2px solid #EAB941;
}
.bap-events-section-title--past { color: #6b7280; border-color: #e5e7eb; }

.bap-events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.bap-event-card {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  padding: 1.25rem 1.4rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.bap-event-card--upcoming { border-left: 4px solid #EAB941; }
.bap-event-card--past     { opacity: .75; }

.bap-event-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .8rem;
  color: #6b7280;
}
.bap-event-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}
.bap-event-body {
  font-size: .9rem;
  color: #374151;
  line-height: 1.6;
}
.bap-event-footer { margin-top: auto; padding-top: .5rem; }
.bap-empty-state { text-align: center; padding: 3rem 1rem; color: #6b7280; }

/* ── Admin dashboard: Events tab ─────────────────────────────────────────── */
.badm-events-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 960px) { .badm-events-layout { grid-template-columns: 1fr; } }

.badm-events-compose { position: sticky; top: 1rem; }

.badm-ev-progress {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-top: .75rem;
  font-size: .875rem;
  color: #374151;
}
.badm-ev-progress-bar-wrap {
  height: 8px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}
.badm-ev-progress-bar {
  height: 100%;
  background: #004128;
  border-radius: 999px;
  transition: width .3s ease;
}

/* Events list (right column) */
.badm-ev-list { display: flex; flex-direction: column; gap: .6rem; }
.badm-ev-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .75rem;
  padding: .85rem 1rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}
.badm-ev-row-title { font-weight: 600; font-size: .9rem; color: #1f2937; margin-bottom: .2rem; }
.badm-ev-row-meta  { font-size: .78rem; color: #6b7280; }
.badm-ev-sent-label { display: block; font-size: .75rem; color: #059669; margin-top: .2rem; }
.badm-ev-row-actions { display: flex; gap: .4rem; flex-shrink: 0; }

.badm-ev-badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  padding: .15em .5em;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: .3rem;
}
.badm-ev-badge--sent  { background: #d1fae5; color: #065f46; }
.badm-ev-badge--draft { background: #fef3c7; color: #92400e; }
