/* Education (CDE) — /dept/education
 *
 * Theme-token driven below the hero (the one deliberately dark surface),
 * mirroring the program_councils.css conventions with an emerald/education
 * palette. All page classes are edu-* so the surface stays self-contained.
 */

/* ─── Hero ─────────────────────────────────────────────────────────── */
.edu-hero {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  padding: 30px 32px 26px;
  margin-bottom: 20px;
  background:
    radial-gradient(1100px 400px at 12% -30%, rgba(16, 185, 129, 0.26), transparent 60%),
    radial-gradient(800px 340px at 88% 120%, rgba(59, 130, 246, 0.20), transparent 60%),
    linear-gradient(135deg, #0e2420 0%, #0f1c2e 55%, #0d1020 100%);
  border: 1px solid rgba(16, 185, 129, 0.28);
}
.edu-hero-inner { position: relative; z-index: 1; max-width: 1020px; }
.edu-eyebrow {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.32);
  border-radius: 999px;
  padding: 4px 11px;
  margin-bottom: 12px;
}
.edu-hero h1 {
  margin: 0 0 10px;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f0fdf9;
}
.edu-grad {
  background: linear-gradient(90deg, #34d399, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.edu-hero-tag {
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(226, 232, 240, 0.86);
  max-width: 900px;
}
.edu-hero-tag strong { color: #f1f5f9; font-weight: 650; }
.edu-hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}
.edu-fact-num {
  font-size: 22px;
  font-weight: 750;
  color: #f0fdf9;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.edu-fact-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(110, 231, 183, 0.78);
  margin-top: 3px;
}

/* ─── Notes / filters / buttons ────────────────────────────────────── */
.edu-note {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-left: 3px solid #10b981;
  border-radius: 8px;
  padding: 12px 15px;
  margin-bottom: 16px;
}
.edu-note strong { color: var(--text-primary); }
.edu-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
}
.edu-filters select,
.edu-filters input[type="text"],
.edu-filters input[type="number"] {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 7px;
  padding: 7px 10px;
  font-size: 12.5px;
  font-family: inherit;
  min-width: 140px;
}
.edu-filters input[type="text"] { min-width: 220px; flex: 1 1 220px; max-width: 360px; }
.edu-filters select:focus,
.edu-filters input:focus { outline: none; border-color: #10b981; }
.edu-btn {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 7px;
  padding: 7px 13px;
  font-size: 12.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.edu-btn:hover { border-color: #10b981; }
.edu-btn-ghost { background: transparent; }
.edu-btn-primary { background: #10b981; border-color: #10b981; color: #fff; }
.edu-btn-primary:hover { filter: brightness(1.08); }
.edu-btn[disabled] { opacity: .55; cursor: wait; }

/* ─── Tables ───────────────────────────────────────────────────────── */
.edu-scroll { max-height: 68vh; overflow: auto; padding: 0; }
.edu-scroll .dept-table { width: 100%; }
.edu-scroll .dept-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--bg-secondary);
}
.edu-row { cursor: pointer; }
.edu-row:hover { background: var(--bg-tertiary, rgba(148, 163, 184, 0.06)); }
.edu-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.edu-muted { color: var(--text-muted); }
.edu-empty {
  padding: 28px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}
.edu-state-cell { font-weight: 650; color: var(--text-primary); white-space: nowrap; }
.edu-sub { font-size: 11px; color: var(--text-muted); margin-top: 1px; }

/* Score bar: propensity + the market/evidence split underneath */
.edu-score { min-width: 130px; }
.edu-score-num { font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.edu-bar {
  position: relative;
  height: 6px;
  border-radius: 3px;
  background: var(--border-color);
  overflow: hidden;
  min-width: 90px;
  margin-top: 3px;
}
.edu-bar > span {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 3px;
  background: linear-gradient(90deg, #10b981, #3b82f6);
}
.edu-bar.market > span { background: #6366f1; }
.edu-bar.evidence > span { background: #10b981; }

/* ─── Pills ────────────────────────────────────────────────────────── */
.edu-pill {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.02em;
  border-radius: 999px;
  padding: 2px 8px;
  white-space: nowrap;
  border: 1px solid transparent;
}
.edu-pill.t1      { background: rgba(16, 185, 129, 0.14); color: #10b981; border-color: rgba(16, 185, 129, 0.3); }
.edu-pill.t2      { background: rgba(59, 130, 246, 0.14); color: #3b82f6; border-color: rgba(59, 130, 246, 0.3); }
.edu-pill.t3      { background: var(--bg-tertiary, rgba(148,163,184,0.12)); color: var(--text-muted); border-color: var(--border-color); }
.edu-pill.active  { background: rgba(16, 185, 129, 0.14); color: #10b981; border-color: rgba(16, 185, 129, 0.3); }
.edu-pill.lapsed  { background: rgba(245, 158, 11, 0.14); color: #d97706; border-color: rgba(245, 158, 11, 0.3); }
.edu-pill.never   { background: rgba(139, 92, 246, 0.14); color: #8b5cf6; border-color: rgba(139, 92, 246, 0.3); }
.edu-pill.ok      { background: rgba(16, 185, 129, 0.14); color: #10b981; border-color: rgba(16, 185, 129, 0.3); }
.edu-pill.warn    { background: rgba(245, 158, 11, 0.14); color: #d97706; border-color: rgba(245, 158, 11, 0.3); }
.edu-pill.info    { background: rgba(59, 130, 246, 0.14); color: #3b82f6; border-color: rgba(59, 130, 246, 0.3); }
.edu-pill.neutral { background: var(--bg-tertiary, rgba(148,163,184,0.12)); color: var(--text-muted); border-color: var(--border-color); }
.edu-fit { color: #f59e0b; letter-spacing: 1px; font-size: 11px; white-space: nowrap; }

/* ─── Drawer ───────────────────────────────────────────────────────── */
.edu-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.55);
  z-index: 900;
  display: none;
}
.edu-drawer-backdrop.open { display: block; }
.edu-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(780px, 95vw);
  background: var(--bg-primary);
  border-left: 1px solid var(--border-color);
  box-shadow: -18px 0 48px rgba(2, 6, 23, 0.35);
  z-index: 901;
  transform: translateX(102%);
  transition: transform .2s ease;
  display: flex;
  flex-direction: column;
}
.edu-drawer.open { transform: translateX(0); }
.edu-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border-color);
}
.edu-drawer-title { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.edu-drawer-sub { font-size: 12px; color: var(--text-muted); margin-top: 3px; }
.edu-drawer-body { flex: 1; overflow: auto; padding: 18px 20px 30px; }
.edu-sect {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-muted);
  margin: 22px 0 8px;
}
.edu-sect:first-child { margin-top: 0; }
.edu-sect .edu-muted { text-transform: none; letter-spacing: 0; font-weight: 500; }

.edu-stats { display: flex; flex-wrap: wrap; gap: 8px; }
.edu-stat {
  flex: 1 1 96px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
}
.edu-stat-v { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text-primary); }
.edu-stat-l { font-size: 10.5px; color: var(--text-muted); margin-top: 1px; }
.edu-stat-s { font-size: 10.5px; color: var(--text-muted); margin-top: 2px; }

.edu-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 860px) { .edu-split { grid-template-columns: 1fr; } }

.edu-prose {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-secondary);
}
.edu-prose strong { color: var(--text-primary); }

.edu-mini { width: 100%; border-collapse: collapse; }
.edu-mini th {
  text-align: left;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
  padding: 5px 8px;
  border-bottom: 1px solid var(--border-color);
}
.edu-mini td { font-size: 12px; padding: 6px 8px; border-bottom: 1px solid var(--border-color); color: var(--text-secondary); }
.edu-mini td:first-child { color: var(--text-primary); }
.edu-mini a { color: #10b981; }

/* Per-event track record */
.edu-events td.edu-num { white-space: nowrap; }
.edu-events tr.edu-ev-upcoming td { background: rgba(16, 185, 129, .06); }
.edu-good { color: #10b981; }
.edu-warn-txt { color: #f59e0b; }

/* Readiness editor */
.edu-ready-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(90px, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}
@media (max-width: 640px) { .edu-ready-grid { grid-template-columns: repeat(2, 1fr); } }
.edu-ready-field label {
  display: block;
  font-size: 10.5px;
  color: var(--text-muted);
  margin-bottom: 3px;
}
.edu-ready-field input {
  width: 100%;
  box-sizing: border-box;
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 7px;
  padding: 6px 8px;
  font-size: 12.5px;
  font-family: inherit;
}
.edu-ready-wide { margin-bottom: 8px; }
.edu-ready-wide textarea,
.edu-ready-wide input {
  width: 100%;
  box-sizing: border-box;
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 7px;
  padding: 6px 8px;
  font-size: 12.5px;
  font-family: inherit;
  resize: vertical;
}
.edu-ready-meta { font-size: 11px; color: var(--text-muted); margin-top: 6px; }
.edu-save-status { font-size: 12px; margin-left: 10px; }
.edu-save-status.ok { color: #10b981; }
.edu-save-status.err { color: #f43f5e; }

/* Feasibility */
.edu-feas-verdict {
  border: 1px solid var(--border-color);
  border-left: 3px solid #10b981;
  background: var(--bg-secondary);
  border-radius: 8px;
  padding: 12px 15px;
  margin-top: 10px;
}
.edu-feas-verdict h4 { margin: 0 0 6px; font-size: 13.5px; color: var(--text-primary); }
.edu-feas-verdict ul { margin: 6px 0 0 18px; padding: 0; }
.edu-feas-verdict li { font-size: 12.5px; color: var(--text-secondary); margin-bottom: 3px; }

/* Playbook cards */
.edu-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 14px;
}
.edu-card {
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  border-radius: 10px;
  padding: 16px 17px;
}
.edu-card:hover { border-color: #10b981; }
.edu-card-title { font-size: 14px; font-weight: 700; color: var(--text-primary); line-height: 1.3; }
.edu-card-sub { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin-top: 3px; }
.edu-card-body { font-size: 12.5px; line-height: 1.55; color: var(--text-secondary); margin-top: 10px; }
.edu-card-body strong { color: var(--text-primary); }
.edu-card-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
