/* ============================================================
   The Blue — Event Hub styles
   Palette: Navy (#0A1628) / Gold (#C9A84C) / White (#FFFFFF)
   ============================================================ */

:root {
  --tbeh-navy:    #0A1628;
  --tbeh-gold:    #C9A84C;
  --tbeh-gold-lt: #EDD588;
  --tbeh-white:   #FFFFFF;
  --tbeh-gray:    #F4F5F7;
  --tbeh-muted:   #6B7280;
  --tbeh-border:  #E5E7EB;
  --tbeh-radius:  10px;
  --tbeh-shadow:  0 2px 12px rgba(10,22,40,.08);
  --tbeh-font:    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ── Wrap ──────────────────────────────────────────────────── */
.tbeh-wrap {
  font-family: var(--tbeh-font);
  color: var(--tbeh-navy);
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

/* ── Header ───────────────────────────────────────────────── */
.tbeh-header { margin-bottom: 40px; }
.tbeh-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--tbeh-navy);
}
.tbeh-subtitle {
  font-size: 1rem;
  color: var(--tbeh-muted);
  margin: 0;
}

/* ── Auth notice ──────────────────────────────────────────── */
.tbeh-auth-notice {
  background: var(--tbeh-gray);
  border-radius: var(--tbeh-radius);
  padding: 20px 24px;
  margin-bottom: 32px;
}

/* ── Onboarding card ─────────────────────────────────────── */
.tbeh-onboarding { margin-bottom: 40px; }
.tbeh-onboarding__card {
  background: linear-gradient(135deg, var(--tbeh-navy) 0%, #1a3050 100%);
  color: var(--tbeh-white);
  border-radius: var(--tbeh-radius);
  padding: 32px 36px;
}
.tbeh-onboarding__card h2 { margin: 0 0 10px; font-size: 1.3rem; }
.tbeh-onboarding__card p  { margin: 0 0 20px; opacity: .85; }

/* ── Section ──────────────────────────────────────────────── */
.tbeh-section { margin-bottom: 48px; }
.tbeh-section__header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.tbeh-section__header h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
  flex: 1;
}

/* ── Filters ─────────────────────────────────────────────── */
.tbeh-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: 2;
}
.tbeh-select, .tbeh-input {
  border: 1px solid var(--tbeh-border);
  border-radius: 6px;
  padding: 7px 12px;
  font-size: .9rem;
  color: var(--tbeh-navy);
  background: #fff;
  outline: none;
  transition: border-color .2s;
}
.tbeh-select:focus, .tbeh-input:focus {
  border-color: var(--tbeh-gold);
}
.tbeh-input { min-width: 180px; }

/* ── Cards grid ───────────────────────────────────────────── */
.tbeh-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

/* ── Event card ───────────────────────────────────────────── */
.tbeh-card {
  background: var(--tbeh-white);
  border: 1px solid var(--tbeh-border);
  border-radius: var(--tbeh-radius);
  padding: 20px;
  box-shadow: var(--tbeh-shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow .2s, transform .2s;
}
.tbeh-card:hover {
  box-shadow: 0 6px 24px rgba(10,22,40,.12);
  transform: translateY(-2px);
}
.tbeh-card--matched {
  border-color: var(--tbeh-gold);
  border-width: 2px;
}

.tbeh-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tbeh-card__title  { font-size: 1rem; font-weight: 700; margin: 0; }
.tbeh-card__organizer { font-size: .85rem; color: var(--tbeh-muted); margin: 0; }
.tbeh-card__desc   { font-size: .85rem; color: var(--tbeh-muted); margin: 0; line-height: 1.5; }
.tbeh-card__reason {
  font-size: .85rem;
  color: var(--tbeh-navy);
  background: rgba(201,168,76,.1);
  border-left: 3px solid var(--tbeh-gold);
  padding: 6px 10px;
  border-radius: 0 4px 4px 0;
  margin: 0;
}

.tbeh-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: .8rem;
  color: var(--tbeh-muted);
  margin-top: 4px;
}
.tbeh-card__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* ── Badge ────────────────────────────────────────────────── */
.tbeh-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.tbeh-badge--demo  { background: #DBEAFE; color: #1E40AF; }
.tbeh-badge--pitch { background: #FEF3C7; color: #92400E; }
.tbeh-badge--accel { background: #D1FAE5; color: #065F46; }
.tbeh-badge--conf  { background: #EDE9FE; color: #5B21B6; }
.tbeh-badge--grant { background: #FCE7F3; color: #9D174D; }
.tbeh-badge--other { background: var(--tbeh-gray); color: var(--tbeh-muted); }

/* ── Score ────────────────────────────────────────────────── */
.tbeh-score {
  font-size: .8rem;
  font-weight: 700;
  color: var(--tbeh-gold);
  background: rgba(201,168,76,.12);
  border-radius: 4px;
  padding: 2px 6px;
}

/* ── Buttons ─────────────────────────────────────────────── */
.tbeh-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--tbeh-font);
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, opacity .2s;
  padding: 10px 18px;
  font-size: .95rem;
}
.tbeh-btn--primary {
  background: var(--tbeh-gold);
  color: var(--tbeh-navy);
}
.tbeh-btn--primary:hover { background: var(--tbeh-gold-lt); }
.tbeh-btn--ghost {
  background: transparent;
  border: 1px solid var(--tbeh-border);
  color: var(--tbeh-navy);
}
.tbeh-btn--ghost:hover { background: var(--tbeh-gray); }
.tbeh-btn--sm { padding: 6px 12px; font-size: .85rem; }

.tbeh-apply-btn--done {
  opacity: .65;
  cursor: default;
  pointer-events: none;
}

/* ── States ───────────────────────────────────────────────── */
.tbeh-loading { color: var(--tbeh-muted); font-size: .9rem; padding: 24px 0; }
.tbeh-empty   { color: var(--tbeh-muted); font-size: .9rem; }
.tbeh-error   { color: #DC2626; font-size: .9rem; }

/* ── Modal ────────────────────────────────────────────────── */
.tbeh-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tbeh-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10,22,40,.6);
}
.tbeh-modal__box {
  position: relative;
  background: var(--tbeh-white);
  border-radius: 12px;
  padding: 36px 40px;
  max-width: 560px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  z-index: 1;
  box-shadow: 0 20px 60px rgba(10,22,40,.25);
}
.tbeh-modal__box h2 { margin: 0 0 6px; font-size: 1.3rem; }
.tbeh-modal__hint  { margin: 0 0 24px; color: var(--tbeh-muted); font-size: .9rem; }
.tbeh-modal__close {
  position: absolute;
  top: 16px; right: 20px;
  background: none; border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--tbeh-muted);
  line-height: 1;
}
.tbeh-modal__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}
.tbeh-save-status { font-size: .9rem; color: var(--tbeh-muted); }

/* ── Form fields ─────────────────────────────────────────── */
.tbeh-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.tbeh-field label { font-weight: 600; font-size: .9rem; }
.tbeh-field input[type="text"],
.tbeh-field input[type="url"],
.tbeh-field textarea,
.tbeh-field select {
  border: 1px solid var(--tbeh-border);
  border-radius: 6px;
  padding: 9px 12px;
  font-size: .9rem;
  font-family: var(--tbeh-font);
  color: var(--tbeh-navy);
  outline: none;
  transition: border-color .2s;
}
.tbeh-field input:focus,
.tbeh-field textarea:focus,
.tbeh-field select:focus {
  border-color: var(--tbeh-gold);
}

.tbeh-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tbeh-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
  cursor: pointer;
  background: var(--tbeh-gray);
  padding: 5px 10px;
  border-radius: 20px;
  border: 1px solid transparent;
  transition: border-color .2s;
}
.tbeh-checkbox:has(input:checked) {
  border-color: var(--tbeh-gold);
  background: rgba(201,168,76,.1);
}
.tbeh-checkbox input { display: none; }

/* ── Pricing block ────────────────────────────────────────── */
.tbeh-card__pricing {
  border-top: 1px solid var(--tbeh-border);
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 4px;
}
.tbeh-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .82rem;
}
.tbeh-price-label {
  color: var(--tbeh-muted);
  font-weight: 500;
}
.tbeh-price-value {
  font-weight: 600;
  color: var(--tbeh-navy);
  text-align: right;
  max-width: 60%;
}
.tbeh-price-value--free {
  color: #065F46;
  background: #D1FAE5;
  padding: 2px 7px;
  border-radius: 4px;
}
.tbeh-price-value--sponsor {
  color: #92400E;
  background: #FEF3C7;
  padding: 2px 7px;
  border-radius: 4px;
}

/* ── Sponsorship packages accordion ──────────────────────── */
.tbeh-packages-toggle {
  background: none;
  border: 1px dashed var(--tbeh-gold);
  border-radius: 6px;
  color: var(--tbeh-navy);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 5px 10px;
  width: 100%;
  text-align: left;
  margin-top: 6px;
  transition: background .2s;
}
.tbeh-packages-toggle:hover { background: rgba(201,168,76,.08); }

.tbeh-packages-body {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tbeh-pkg-row {
  display: flex;
  gap: 8px;
  font-size: .82rem;
  align-items: baseline;
  padding: 5px 8px;
  background: var(--tbeh-gray);
  border-radius: 6px;
}
.tbeh-pkg-tier {
  font-weight: 700;
  color: var(--tbeh-navy);
  white-space: nowrap;
  min-width: 90px;
}
.tbeh-pkg-desc { color: var(--tbeh-muted); line-height: 1.4; }

.tbeh-sponsor-cta { margin-top: 8px; width: 100%; justify-content: center; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 640px) {
  .tbeh-cards { grid-template-columns: 1fr; }
  .tbeh-filters { flex-direction: column; }
  .tbeh-modal__box { padding: 24px 20px; margin: 0 16px; }
  .tbeh-section__header { flex-direction: column; align-items: flex-start; }
}


/* === Sector Landscape === */
.tbsl-wrap {
  font-family: var(--tbeh-font);
  color: var(--tbeh-navy);
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

/* ── Hero ─────────────────────────────────────────────────── */
.tbsl-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}
.tbsl-hero__title {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--tbeh-navy);
}
.tbsl-hero__subtitle {
  font-size: 1rem;
  color: var(--tbeh-muted);
  margin: 0;
  max-width: 560px;
  line-height: 1.6;
}
.tbsl-hero__stat {
  text-align: right;
  flex-shrink: 0;
}
.tbsl-hero__count {
  display: block;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--tbeh-gold);
  line-height: 1;
}
.tbsl-hero__count-label {
  font-size: .8rem;
  color: var(--tbeh-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ── Controls ─────────────────────────────────────────────── */
.tbsl-controls {
  background: var(--tbeh-gray);
  border-radius: var(--tbeh-radius);
  padding: 20px 24px;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tbsl-filter-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.tbsl-filter-label {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--tbeh-muted);
  min-width: 52px;
  flex-shrink: 0;
}
.tbsl-filter-row--search { gap: 12px; }

/* ── Pills ────────────────────────────────────────────────── */
.tbsl-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tbsl-pill {
  border: 1px solid var(--tbeh-border);
  border-radius: 20px;
  background: #fff;
  color: var(--tbeh-navy);
  font-size: .82rem;
  font-weight: 600;
  padding: 5px 14px;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  font-family: var(--tbeh-font);
}
.tbsl-pill:hover {
  border-color: var(--tbeh-gold);
  background: rgba(201,168,76,.08);
}
.tbsl-pill--active {
  background: var(--tbeh-navy);
  border-color: var(--tbeh-navy);
  color: #fff;
}
.tbsl-pill--active:hover {
  background: #1a3050;
  border-color: #1a3050;
}
.tbsl-pill--link {
  background: none;
  border: none;
  color: var(--tbeh-gold);
  padding: 0;
  font-size: inherit;
  text-decoration: underline;
}

/* ── Search + sort ────────────────────────────────────────── */
.tbsl-search {
  border: 1px solid var(--tbeh-border);
  border-radius: 6px;
  padding: 8px 14px;
  font-size: .9rem;
  color: var(--tbeh-navy);
  background: #fff;
  outline: none;
  flex: 1;
  min-width: 200px;
  max-width: 400px;
  transition: border-color .2s;
  font-family: var(--tbeh-font);
}
.tbsl-search:focus { border-color: var(--tbeh-gold); }

.tbsl-sort {
  border: 1px solid var(--tbeh-border);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: .85rem;
  color: var(--tbeh-navy);
  background: #fff;
  outline: none;
  cursor: pointer;
  font-family: var(--tbeh-font);
}
.tbsl-sort:focus { border-color: var(--tbeh-gold); }

/* ── Grid ─────────────────────────────────────────────────── */
.tbsl-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1100px) { .tbsl-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 780px)  { .tbsl-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .tbsl-grid { grid-template-columns: 1fr; } }

/* ── Player card ──────────────────────────────────────────── */
.tbsl-card {
  background: #fff;
  border: 1px solid var(--tbeh-border);
  border-radius: var(--tbeh-radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--tbeh-shadow);
  transition: box-shadow .2s, transform .2s;
}
.tbsl-card:hover {
  box-shadow: 0 6px 28px rgba(10,22,40,.13);
  transform: translateY(-4px);
}

/* Type accent stripe on left border */
.tbsl-card--startup { border-left: 3px solid #3B82F6; }
.tbsl-card--fund    { border-left: 3px solid var(--tbeh-gold); }
.tbsl-card--accel   { border-left: 3px solid #10B981; }
.tbsl-card--lab     { border-left: 3px solid #8B5CF6; }

.tbsl-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

/* Logo */
.tbsl-card__logo-wrap {
  flex-shrink: 0;
  position: relative;
  width: 60px;
  height: 60px;
}
.tbsl-card__logo {
  position: absolute;
  top: 0; left: 0;
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid var(--tbeh-border);
  background: #fff;
  padding: 7px;
  box-shadow: 0 1px 4px rgba(10,22,40,.08);
  z-index: 1;
}
.tbsl-card__initials {
  position: absolute;
  top: 0; left: 0;
  width: 60px;
  height: 60px;
  border-radius: 10px;
  background: var(--tbeh-navy);
  color: var(--tbeh-gold);
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: .02em;
}

/* Badges */
.tbsl-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
  flex: 1;
}
.tbsl-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  white-space: nowrap;
}
.tbsl-badge--type.tbsl-badge--startup { background: #DBEAFE; color: #1E40AF; }
.tbsl-badge--type.tbsl-badge--fund    { background: #FEF3C7; color: #92400E; }
.tbsl-badge--type.tbsl-badge--accel   { background: #D1FAE5; color: #065F46; }
.tbsl-badge--type.tbsl-badge--lab     { background: #EDE9FE; color: #5B21B6; }
.tbsl-badge--type.tbsl-badge--other   { background: var(--tbeh-gray); color: var(--tbeh-muted); }
.tbsl-badge--sector {
  background: rgba(201,168,76,.12);
  color: #7A5C1A;
}

/* Body */
.tbsl-card__body { flex: 1; }
.tbsl-card__name {
  font-size: .98rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--tbeh-navy);
  line-height: 1.3;
}
.tbsl-card__desc {
  font-size: .82rem;
  color: var(--tbeh-muted);
  margin: 0 0 6px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tbsl-card__notable {
  font-size: .8rem;
  color: var(--tbeh-navy);
  background: rgba(201,168,76,.08);
  border-left: 2px solid var(--tbeh-gold);
  padding: 4px 8px;
  border-radius: 0 4px 4px 0;
  margin: 0 0 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tbsl-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.tbsl-card__meta span {
  font-size: .75rem;
  color: var(--tbeh-muted);
  background: var(--tbeh-gray);
  padding: 2px 7px;
  border-radius: 4px;
}

/* Footer links */
.tbsl-card__footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 8px;
  border-top: 1px solid var(--tbeh-border);
  margin-top: auto;
}
.tbsl-card__links { display: flex; gap: 8px; align-items: center; }
.tbsl-card__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid var(--tbeh-border);
  color: var(--tbeh-navy);
  font-size: .85rem;
  text-decoration: none;
  transition: background .15s, border-color .15s;
  line-height: 1;
}
.tbsl-card__link:hover {
  background: var(--tbeh-gray);
  border-color: var(--tbeh-navy);
}
.tbsl-card__link--li {
  font-weight: 700;
  font-size: .8rem;
  background: #0A66C2;
  color: #fff;
  border-color: #0A66C2;
}
.tbsl-card__link--li:hover { background: #004182; border-color: #004182; color: #fff; }

/* ── States ───────────────────────────────────────────────── */
.tbsl-loading { color: var(--tbeh-muted); font-size: .9rem; padding: 24px 0; }
.tbsl-empty   { color: var(--tbeh-muted); font-size: .9rem; margin-top: 24px; }
.tbsl-error   { color: #DC2626; font-size: .9rem; }

/* ── Footer note ──────────────────────────────────────────── */
.tbsl-footer-note {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--tbeh-border);
  text-align: center;
}
.tbsl-footer-note p {
  font-size: .85rem;
  color: var(--tbeh-muted);
  margin: 0;
}
.tbsl-footer-note a { color: var(--tbeh-gold); text-decoration: none; }
.tbsl-footer-note a:hover { text-decoration: underline; }

/* ── Sector Landscape responsive ─────────────────────────── */
@media (max-width: 640px) {
  .tbsl-hero { flex-direction: column; align-items: flex-start; }
  .tbsl-hero__stat { align-self: flex-start; text-align: left; }
  .tbsl-controls { padding: 16px; }
  .tbsl-filter-label { min-width: 44px; }
  .tbsl-search { max-width: 100%; }
}
