/* academic.css — overview header for the desktop academic shell */

/* ── Overview header ─────────────────────────────────────────── */
.academic-overview {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 14px;
  flex-shrink: 0;
}

.academic-overview-title-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.academic-overview-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
}

.academic-mastered {
  font-size: 13px;
  color: var(--text-dim);
}

.academic-course-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.academic-course-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.academic-course-label {
  width: 130px;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.academic-bar {
  flex: 1;
  height: 6px;
  background: var(--bg3);
  border-radius: 3px;
  overflow: hidden;
}

.academic-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s;
}

.academic-frac {
  width: 52px;
  text-align: right;
  font-size: 12px;
  color: var(--text-dim);
  flex-shrink: 0;
}

.academic-jump-btn {
  padding: 7px 18px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s;
}

.academic-jump-btn:hover {
  border-color: var(--accent);
}

/* ── Desktop academic shell fills remaining height ───────────── */
#academic-shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* The #app (views container) must fill remaining space */
#academic-shell #app {
  flex: 1;
  min-height: 0;
}

/* Views section takes full height when shown */
#academic-views-section {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

#academic-views-section #app {
  height: 100%;
}

/* ── Mobile: hide academic shell by default (app.js controls) ── */
@media (max-width: 899px) {
  #academic-shell:not([style]) {
    display: none;
  }
}
