/* ========================================================================
   IvyBridge Education · Teachers Page styles
   Supplements pages.css — page header, filter bar, KPI row, drawer body
   ======================================================================== */

/* ── Page header ───────────────────────────────────────────────────────── */
.teachers-page-header {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  padding: 64px 0 56px;
}

.teachers-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 48px;
  flex-wrap: wrap;
}

.teachers-header-text .page-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.teachers-header-text h1 {
  margin-top: 18px;
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 1.05;
}

.teachers-header-text .page-lede {
  margin-top: 18px;
  max-width: 560px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
}

/* ── KPI row ───────────────────────────────────────────────────────────── */
.teachers-kpi-row {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.faculty-stat {
  text-align: left;
}

.faculty-stat-num {
  font-family: var(--serif-display);
  font-size: 44px;
  color: var(--ivy);
  font-style: italic;
  line-height: 1;
}

.faculty-stat-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-top: 8px;
}

/* ── Filter bar ────────────────────────────────────────────────────────── */
.teachers-filter-bar {
  position: sticky;
  top: 76px;
  z-index: 40;
  background: rgba(250, 245, 230, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.teachers-filter-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.teachers-filter-left {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  align-items: center;
}

.teachers-filter-right {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  gap: 8px;
  align-items: center;
}

.filter-group-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  margin-right: 4px;
}

/* ── Search input ──────────────────────────────────────────────────────── */
.teacher-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.teacher-search-wrap::before {
  content: '⌕';
  position: absolute;
  left: 12px;
  color: var(--muted);
  font-size: 16px;
  pointer-events: none;
  line-height: 1;
}

#teacher-search {
  padding: 7px 14px 7px 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-family: var(--serif-display);
  font-size: 14px;
  color: var(--ink);
  width: 180px;
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}

#teacher-search::placeholder {
  color: var(--muted);
  font-style: italic;
}

#teacher-search:focus {
  border-color: var(--ivy);
  box-shadow: 0 0 0 3px rgba(14, 90, 60, 0.10);
}

/* ── Grid section ──────────────────────────────────────────────────────── */
.teachers-grid-section {
  padding-top: 56px;
  padding-bottom: 96px;
}

.teachers-result-count {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 32px;
}

.teachers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.teacher-card-btn {
  all: unset;
  cursor: pointer;
  display: block;
  height: 100%;
}

.teacher-card-btn:focus-visible .teacher-card {
  outline: 2px solid var(--ivy);
  outline-offset: 3px;
}

/* ── Empty state ───────────────────────────────────────────────────────── */
.teacher-empty-state {
  padding: 80px 40px;
  text-align: center;
  color: var(--muted);
  font-family: var(--serif-display);
  font-size: 22px;
  font-style: italic;
  grid-column: 1 / -1;
}

/* ── Drawer overrides / additions ──────────────────────────────────────── */
.drawer-dossier-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
}

.drawer-dossier-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
}

/* Teacher avatar in drawer */
.drawer-avatar {
  width: 88px;
  height: 88px;
  border-radius: 4px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 10px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.drawer-avatar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    rgba(168, 124, 52, 0.14) 0 6px,
    transparent 6px 12px
  );
}

.drawer-avatar--ivy {
  background: var(--ivy);
}

.drawer-avatar--ivy .drawer-avatar-init {
  color: var(--gold-soft);
}

.drawer-avatar-init {
  font-family: var(--serif-display);
  font-size: 36px;
  font-style: italic;
  color: var(--ivy);
  position: relative;
  z-index: 1;
  line-height: 1;
}

.drawer-style {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 16px;
  color: var(--ink-2);
  margin-top: 8px;
}

/* drawer stat row inside hero */
.drawer-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.drawer-stat-label {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.drawer-stat-value {
  font-family: var(--serif-display);
  font-size: 16px;
  color: var(--ink);
}

/* KPI grid inside drawer */
.drawer-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .teachers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 880px) {
  .teachers-filter-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .teachers-filter-left,
  .teachers-filter-right {
    gap: 12px;
  }

  .filter-group {
    flex-wrap: wrap;
    gap: 6px;
  }

  .teachers-header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }

  .teachers-kpi-row {
    gap: 28px;
  }

  .drawer-kpi-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .teachers-grid {
    grid-template-columns: 1fr;
  }

  .teachers-kpi-row {
    flex-direction: row;
    gap: 20px;
  }

  .faculty-stat-num {
    font-size: 32px;
  }

  .drawer-hero-stats {
    grid-template-columns: 1fr 1fr !important;
  }

  .drawer-kpi-grid {
    grid-template-columns: 1fr;
  }

  #teacher-search {
    width: 140px;
  }
}
