/* British Council – One Calendar concept
   The student space (my-course.html). Extends css/styles.css and
   css/journey.css — every colour comes from the :root tokens defined there.

   The brochure grammar the rest of the site follows (hard-edged rectangles,
   flat violet blocks, red as a label colour only) is a marketing language: it
   is designed to be looked at once. This page is looked at every week, so it
   reads as a working surface rather than a poster — the violet block survives
   in the header, the red tab survives as a status label, and everything below
   is quiet, so that the one thing a student came for (what is due, and when)
   is the loudest thing on the screen. */

:root {
  --stu-violet: #5b16b5;
  --stu-violet-2: #3d0b80;
}

/* ===== header ===== */

.stu-head {
  background: var(--stu-violet);
  color: var(--white);
  padding: 26px 28px 24px;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}
.stu-head::before {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  inset-block-start: -190px;
  inset-inline-end: -120px;
  pointer-events: none;
}
.stu-head > * { position: relative; }

.stu-head-main {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.stu-avatar {
  flex: none;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: var(--cyan-bright);
  color: var(--ink);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.5px;
}
.stu-who { min-width: 0; }
.stu-eyebrow {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 3px 9px;
  margin-bottom: 6px;
}
.stu-who h1 { font-size: 27px; margin: 0 0 4px; color: var(--white); line-height: 1.15; }
.stu-course {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.86);
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.stu-course .msym { font-size: 19px; }
.stu-dot { opacity: 0.5; }

.stu-switch {
  margin-inline-start: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
}
.stu-switch select {
  font: inherit;
  font-size: 13px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.18);
  color: var(--white);
}

/* Four facts, and the column count is stepped rather than auto-fit so a row is
   never left half full: the 1px gaps are the container background showing
   through, so an empty track reads as a missing cell rather than as space. */
.stu-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 22px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.stu-fact {
  background: var(--stu-violet);
  padding: 12px 14px;
  margin: 0;
}
.stu-fact dt {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 5px;
}
.stu-fact dd { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.3; }
.stu-fact small {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.66);
  line-height: 1.4;
}
.stu-fact-next { background: var(--stu-violet-2); }
.stu-fact .band-chip { background: var(--cyan-bright); color: var(--ink); }

.stu-progress { margin-top: 20px; }
.stu-rank { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; }
.stu-rank-icon { font-size: 30px; color: var(--cyan-bright); }
.stu-rank-label {
  display: block;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.62);
}
.stu-rank strong { font-size: 17px; }
.stu-points { margin-inline-start: auto; font-size: 13px; color: rgba(255, 255, 255, 0.8); }
.stu-points strong { font-size: 20px; color: var(--white); }

.stu-bar {
  height: 9px;
  background: rgba(0, 0, 0, 0.28);
  margin-top: 10px;
  overflow: hidden;
}
.stu-bar > span {
  display: block;
  height: 100%;
  background: var(--cyan-bright);
  transition: width 0.4s ease;
}
.stu-bar-quiet > span { background: rgba(255, 255, 255, 0.55); }
.stu-bar-note { margin: 7px 0 0; font-size: 12.5px; color: rgba(255, 255, 255, 0.78); }

.stu-term {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.stu-term-label,
.stu-term-count {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.7);
}
.stu-term-count { display: block; margin-top: 6px; }

/* ===== tabs ===== */

/* Six tabs is a lot to fit on one line. They scroll rather than wrap — a
   wrapped tab strip stops reading as one control — and the padding tightens
   before that becomes necessary, so the scrollbar is a fallback for genuinely
   narrow screens rather than the normal state. */
.stu-tabs {
  display: flex;
  gap: 2px;
  margin-bottom: 18px;
  overflow-x: auto;
  scrollbar-width: thin;
  border-bottom: 2px solid var(--grey-200);
}
.stu-tabs button {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 13px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--grey-600);
  cursor: pointer;
  white-space: nowrap;
}
.stu-tabs button:hover { color: var(--ink); }
.stu-tabs button.active { color: var(--ink); border-bottom-color: var(--stu-violet); }
.stu-tabs button .msym { font-size: 20px; }
.stu-tabs .count-pill { background: var(--red); color: var(--white); }

/* ===== shared panel furniture ===== */

.stu-panel .card { margin-bottom: 16px; }
.stu-intro h2 { margin-top: 0; }
.stu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 16px;
  align-items: start;
}
.stu-grid .card { margin-bottom: 0; height: 100%; }
.stu-sub { font-size: 14px; margin: 18px 0 8px; }
.stu-note { margin-top: 10px; }

.stu-alert {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--white);
  margin-bottom: 16px;
}
.stu-alert .msym { color: var(--cyan-bright); }
.stu-alert .btn { margin-inline-start: auto; }

.stu-notice {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  background: #edf8ec;
  border-inline-start: 4px solid var(--green);
  margin-bottom: 16px;
}
.stu-notice.is-routed { background: var(--grey-50); border-inline-start-color: var(--orange); }
.stu-notice .msym { color: var(--green); font-size: 22px; }
.stu-notice.is-routed .msym { color: var(--orange); }
.stu-notice p { margin: 3px 0 0; font-size: 13.5px; color: var(--grey-800); line-height: 1.55; }

.stu-mini-list { list-style: none; margin: 0; padding: 0; }
.stu-mini-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 0;
  border-bottom: 1px solid var(--grey-100);
  font-size: 14px;
}
.stu-mini-list li:last-child { border-bottom: none; }
.stu-mini-list .msym { color: var(--stu-violet); font-size: 20px; flex: none; }
.stu-mini-list span { min-width: 0; }
.stu-mini-list em {
  margin-inline-start: auto;
  font-style: normal;
  font-size: 12px;
  color: var(--grey-600);
  white-space: nowrap;
}

.table-scroll { overflow-x: auto; }

/* ===== overview ===== */

.stu-next-when { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 0 0 4px; }
.stu-next-when strong { font-size: 19px; color: var(--ink); }
.stu-next-when span { font-size: 15px; color: var(--grey-600); }

.stu-checklist { list-style: none; margin: 12px 0; padding: 0; }
.stu-checklist li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--grey-800);
}
.stu-checklist .msym { color: var(--grey-400); font-size: 20px; }
.stu-checklist li.is-done { color: var(--grey-600); }
.stu-checklist li.is-done span { text-decoration: line-through; text-decoration-color: var(--grey-400); }
.stu-checklist li.is-done .msym { color: var(--green); }
.stu-week-done {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 700;
  color: var(--green);
}

.stu-streak { display: flex; align-items: flex-start; gap: 16px; }
.stu-streak-num { display: flex; align-items: center; gap: 4px; flex: none; }
.stu-streak-num .msym { font-size: 34px; color: var(--orange); }
.stu-streak-num strong { font-size: 34px; line-height: 1; color: var(--ink); }
.stu-streak h3 { margin: 0 0 4px; font-size: 15px; }
.stu-streak p { margin: 0 0 6px; }

.stu-step-line { display: flex; align-items: center; gap: 10px; margin: 10px 0; }
.stu-step-line .msym { color: var(--grey-400); }

/* ===== points explainer ===== */

.stu-points-table { width: 100%; border-collapse: collapse; margin: 12px 0 0; font-size: 14px; }
.stu-points-table td { padding: 8px 6px; border-bottom: 1px solid var(--grey-100); }
.stu-points-table .num { text-align: end; white-space: nowrap; color: var(--grey-600); }
.stu-points-table tfoot td {
  border-top: 2px solid var(--ink);
  border-bottom: none;
  padding-top: 10px;
  font-weight: 700;
  color: var(--ink);
}
.stu-points-table tfoot .num strong { font-size: 17px; }

.stu-honest {
  margin-top: 18px;
  padding: 14px 16px;
  background: var(--grey-50);
  border-inline-start: 4px solid var(--ink);
}
.stu-honest strong { display: block; margin-bottom: 5px; color: var(--ink); }
.stu-honest p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--grey-800); }

/* ===== badges ===== */

.stu-badges {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
  gap: 10px;
}
.stu-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 2px solid var(--grey-100);
  background: var(--grey-50);
}
.stu-badge .msym { font-size: 25px; color: var(--grey-400); flex: none; }
.stu-badge strong { display: block; font-size: 13.5px; line-height: 1.25; color: var(--grey-600); }
.stu-badge small { font-size: 11.5px; color: var(--grey-600); }
.stu-badge.is-earned { border-color: var(--stu-violet); background: var(--white); }
.stu-badge.is-earned .msym { color: var(--stu-violet); }
.stu-badge.is-earned strong { color: var(--ink); }

/* ===== my path ===== */

.stu-spine {
  list-style: none;
  display: flex;
  margin: 16px 0 0;
  padding: 0;
  gap: 3px;
}
.stu-spine li {
  flex: 1;
  text-align: center;
  padding: 11px 4px;
  background: var(--grey-100);
  color: var(--grey-600);
  font-weight: 700;
  font-size: 14px;
  position: relative;
}
.stu-spine li.is-done { background: var(--grey-200); color: var(--grey-800); }
.stu-spine li.is-here { background: var(--stu-violet); color: var(--white); }
.stu-spine li em {
  display: block;
  font-style: normal;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 3px;
  opacity: 0.85;
}

.stu-paths {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.stu-path { margin-bottom: 0 !important; border-top: 5px solid var(--acc, var(--stu-violet)); }
.stu-path.is-shut { opacity: 0.78; }
.stu-path-head { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.stu-path-icon { font-size: 30px; color: var(--acc, var(--stu-violet)); flex: none; }
.stu-path-head h3 { margin: 0; font-size: 18px; }
.stu-path-tag { margin: 2px 0 0; font-size: 13px; color: var(--grey-600); }
.stu-path-state {
  margin-inline-start: auto;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 9px;
  background: var(--grey-100);
  color: var(--grey-800);
  white-space: nowrap;
}
.stu-path.is-open .stu-path-state { background: var(--green); color: var(--white); }

.stu-path-what { margin: 16px 0; display: grid; gap: 12px; }
.stu-path-what dt {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--grey-600);
  margin-bottom: 3px;
}
.stu-path-what dd { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--grey-800); }

.stu-stages { list-style: none; margin: 0; padding: 0; }
.stu-stage { display: flex; gap: 12px; padding-bottom: 14px; position: relative; }
.stu-stage:not(:last-child)::before {
  content: '';
  position: absolute;
  inset-block-start: 18px;
  inset-block-end: 0;
  inset-inline-start: 8px;
  width: 2px;
  background: var(--grey-200);
}
.stu-stage-dot {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--grey-200);
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
}
.stu-stage-dot .msym { font-size: 13px; color: var(--white); }
.stu-stage.is-done .stu-stage-dot { background: var(--grey-400); }
.stu-stage.is-current .stu-stage-dot { background: var(--stu-violet); box-shadow: 0 0 0 4px rgba(91, 22, 181, 0.16); }
.stu-stage.is-next .stu-stage-dot { background: var(--cyan); }
.stu-stage-body { min-width: 0; flex: 1; }
.stu-stage-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.stu-stage-head strong { font-size: 14px; }
.stu-stage-status {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--grey-600);
}
.stu-stage.is-current .stu-stage-status { color: var(--stu-violet); font-weight: 700; }
.stu-stage.is-unavailable { opacity: 0.55; }
.stu-stage-line {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 6px 0 0;
  font-size: 12.5px;
  color: var(--grey-600);
}
.stu-stage-line .msym { font-size: 17px; }
.stu-stage-line a { color: var(--ink-3); }

.stu-cefr { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-top: 12px; }
.stu-cefr th {
  text-align: start;
  padding: 9px 8px;
  border-bottom: 2px solid var(--ink);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--grey-800);
  white-space: nowrap;
}
.stu-cefr td { padding: 9px 8px; border-bottom: 1px solid var(--grey-100); }
.stu-cefr tr.is-here { background: var(--grey-50); }
.stu-here-tag {
  font-style: normal;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--stu-violet);
  font-weight: 700;
  margin-inline-start: 5px;
}

/* ===== marks ===== */

.stu-mark-head { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.stu-mark-head h3 { margin: 3px 0 2px; font-size: 18px; }
.stu-mark-kind {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 3px 8px;
}
.stu-mark-avg { margin-inline-start: auto; text-align: center; }
.stu-mark-avg strong { display: block; font-size: 30px; line-height: 1; color: var(--ink); }
.stu-mark-avg small { font-size: 11px; color: var(--grey-600); }

.stu-skills { margin: 16px 0 0; display: grid; gap: 9px; }
.stu-skill { display: grid; grid-template-columns: minmax(120px, 190px) 1fr auto; align-items: center; gap: 12px; }
.stu-skill-name { display: flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--grey-800); }
.stu-skill-name .msym { font-size: 18px; color: var(--grey-400); }
.stu-skill-bar { height: 10px; background: var(--grey-100); overflow: hidden; }
.stu-skill-bar > span { display: block; height: 100%; background: var(--stu-violet); }
.stu-skill-num { font-size: 14px; font-weight: 700; color: var(--ink); min-width: 56px; text-align: end; }
.stu-skill-num em { font-style: normal; font-size: 12px; font-weight: 700; margin-inline-start: 4px; }
.stu-skill-num em.up { color: var(--green); }
.stu-skill-num em.down { color: var(--red); }

.stu-mark-level { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; font-size: 14px; }
.stu-mark-level .msym { color: var(--green); }

.stu-comment {
  margin: 16px 0 0;
  padding: 13px 16px;
  background: var(--grey-50);
  border-inline-start: 4px solid var(--stu-violet);
  font-size: 14px;
  line-height: 1.65;
  color: var(--grey-800);
}
.stu-comment-label {
  display: block;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--grey-600);
  margin-bottom: 5px;
}

.stu-history { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-top: 12px; }
.stu-history td { padding: 12px 8px; border-bottom: 1px solid var(--grey-100); vertical-align: top; }
.stu-hist-stat { display: flex; align-items: center; gap: 6px; color: var(--grey-800); }
.stu-hist-stat .msym { font-size: 18px; color: var(--grey-400); }

/* ===== homework and materials ===== */

.stu-tasks { display: grid; gap: 12px; }
.stu-task {
  display: flex;
  gap: 18px;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-inline-start: 5px solid var(--grey-400);
  flex-wrap: wrap;
}
.stu-task.is-due { border-inline-start-color: var(--cyan); }
.stu-task.is-dueToday { border-inline-start-color: var(--orange); }
.stu-task.is-overdue { border-inline-start-color: var(--red); }
.stu-task.is-onTime { border-inline-start-color: var(--green); }
.stu-task.is-late { border-inline-start-color: var(--orange); }
.stu-task-main { flex: 1 1 260px; min-width: 0; }
.stu-task-kind {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--grey-600);
  font-weight: 700;
}
.stu-task-main h3 { margin: 4px 0 6px; font-size: 16px; }
.stu-task-main p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--grey-800); }
.stu-task-side {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 150px;
}
.stu-task-due { font-weight: 700; font-size: 14px; color: var(--ink); }
.stu-task.is-overdue .stu-task-due { color: var(--red); }
.stu-task.is-dueToday .stu-task-due { color: var(--orange); }
.stu-task-side small { font-size: 12px; color: var(--grey-600); }
.stu-task-mark { font-size: 13px; color: var(--grey-800); }
.stu-task-mark strong { font-size: 17px; color: var(--ink); }

.stu-materials { list-style: none; margin: 14px 0 0; padding: 0; }
.stu-materials li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 13px 0;
  border-bottom: 1px solid var(--grey-100);
  flex-wrap: wrap;
}
.stu-materials li:last-child { border-bottom: none; }
.stu-mat-icon .msym { font-size: 26px; color: var(--stu-violet); }
.stu-materials li.is-done .stu-mat-icon .msym { color: var(--green); }
.stu-mat-body { flex: 1 1 240px; min-width: 0; }
.stu-mat-body strong { display: block; font-size: 14.5px; margin-bottom: 3px; }
.stu-mat-body p { margin: 0 0 4px; font-size: 13px; line-height: 1.55; color: var(--grey-800); }
.stu-mat-body small { font-size: 11.5px; color: var(--grey-600); }
.stu-materials li .btn { flex: none; }

/* ===== talk to my teacher ===== */

.stu-thread { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 12px; }
.stu-msg { padding: 13px 16px; background: var(--grey-50); border: 1px solid var(--grey-100); }
.stu-msg.from-student {
  background: var(--white);
  border-inline-start: 4px solid var(--cyan);
  margin-inline-start: 32px;
}
.stu-msg.from-teacher { border-inline-start: 4px solid var(--stu-violet); margin-inline-end: 32px; }
.stu-msg.is-new { background: #f4efff; }
.stu-msg-head { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; margin-bottom: 6px; }
.stu-msg-head strong { font-size: 13.5px; }
.stu-msg-head time { margin-inline-start: auto; font-size: 11.5px; color: var(--grey-600); }
.stu-msg p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--grey-800); }

.stu-compose fieldset { border: none; margin: 0 0 12px; padding: 0; }
.stu-compose legend {
  padding: 0;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--grey-600);
  margin-bottom: 8px;
}
.stu-topics { display: flex; flex-wrap: wrap; gap: 7px; }
.stu-topic input { position: absolute; opacity: 0; pointer-events: none; }
.stu-topic span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 2px solid var(--grey-100);
  font-size: 13px;
  cursor: pointer;
  color: var(--grey-800);
}
.stu-topic span .msym { font-size: 18px; color: var(--grey-400); }
.stu-topic input:checked + span { border-color: var(--stu-violet); background: var(--grey-50); font-weight: 600; }
.stu-topic input:checked + span .msym { color: var(--stu-violet); }
.stu-topic input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.stu-compose textarea {
  width: 100%;
  padding: 11px 13px;
  border: 2px solid var(--grey-100);
  font: inherit;
  font-size: 14px;
  resize: vertical;
  margin-bottom: 12px;
}
.stu-compose textarea:focus { border-color: var(--stu-violet); outline: none; }

.stu-demo-note p { margin: 0 0 12px; font-size: 13px; line-height: 1.6; color: var(--grey-600); }

/* ===== events ===== */

.stu-events { display: grid; gap: 12px; margin-top: 12px; }
.stu-event {
  display: flex;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--grey-200);
  background: var(--white);
  flex-wrap: wrap;
}
.stu-event.is-attended { background: var(--grey-50); }
.stu-event-date {
  flex: none;
  width: 54px;
  text-align: center;
  background: var(--stu-violet);
  color: var(--white);
  padding: 8px 0;
  align-self: flex-start;
}
.stu-event-date strong { display: block; font-size: 21px; line-height: 1; }
.stu-event-date span { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; }
.stu-event-body { flex: 1 1 240px; min-width: 0; }
.stu-event-kind {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
  color: var(--grey-600);
}
.stu-event-kind .msym { font-size: 16px; }
.stu-event-body h3 { margin: 5px 0 5px; font-size: 16px; }
.stu-event-body p { margin: 0 0 5px; font-size: 13.5px; line-height: 1.55; color: var(--grey-800); }
.stu-event-side {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  min-width: 150px;
}
.stu-event-link { font-size: 12.5px; color: var(--ink-3); }

/* ===== empty state ===== */

.stu-empty { text-align: center; padding: 40px 24px; }
.stu-empty-icon { font-size: 46px; color: var(--grey-400); }
.stu-empty .btn-row { justify-content: center; }

/* ===== narrow screens ===== */

@media (max-width: 1150px) {
  .stu-tabs button { padding: 11px 9px; gap: 6px; font-size: 13px; }
  .stu-tabs button .msym { font-size: 18px; }
}

@media (max-width: 900px) {
  .stu-facts { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .stu-facts { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .stu-head { padding: 20px 18px; }
  .stu-who h1 { font-size: 22px; }
  .stu-switch { margin-inline-start: 0; width: 100%; }
  .stu-tabs button { padding: 11px 12px; font-size: 13px; }
  .stu-tabs button span:not(.count-pill) { display: none; }
  .stu-tabs button.active span:not(.count-pill) { display: inline; }
  .stu-skill { grid-template-columns: 1fr auto; }
  .stu-skill-bar { grid-column: 1 / -1; order: 3; }
  .stu-msg.from-student { margin-inline-start: 0; }
  .stu-msg.from-teacher { margin-inline-end: 0; }
  .stu-spine { flex-wrap: wrap; }
  .stu-spine li { flex: 1 1 30%; }
}

/* The full badge list spells out each criterion, so the rows are taller and
   wider than the summary strip on the overview card. */
.stu-badges-full { grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }
.stu-badges-full li { align-items: flex-start; }
.stu-badges-full .msym { margin-top: 1px; }
.stu-badges-full p { margin: 3px 0 4px; font-size: 12.5px; line-height: 1.5; color: var(--grey-800); }
.stu-badge-note {
  display: block;
  margin-top: 5px;
  font-style: italic;
  font-size: 12px;
  line-height: 1.5;
  color: var(--grey-600);
}

.stu-class-count { margin: 10px 0 4px; font-size: 14px; color: var(--grey-800); }
.stu-class-count strong { font-size: 26px; color: var(--ink); margin-inline-end: 5px; }

/* ===== the journey timeline =====
   One horizontal track under the header. Each stop is a column: a caption
   (a date, or "You are here"), a dot on the line, then the stop's content.
   The line is drawn per stop so it can change style — solid behind the
   student, dashed ahead of them. The track scrolls sideways on its own when
   it is wider than the card; the page itself never does. */

.stu-journey { margin-bottom: 18px; padding-bottom: 10px; }
.stu-journey-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  margin-bottom: 8px;
}
.stu-journey-head h2 { margin-bottom: 4px; }
.stu-journey-head .muted { margin: 0; max-width: 640px; }
.stu-journey-head .btn { flex: none; }

.stu-journey-scroll {
  position: relative;
  overflow-x: auto;
  margin: 0 -8px;
  padding: 4px 8px 12px;
  scrollbar-width: thin;
}
.stu-journey-scroll:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.stu-jn-track { display: flex; list-style: none; margin: 0; padding: 0; min-width: min-content; }

.stu-jn {
  --jn-line: var(--grey-200);
  position: relative;
  flex: 0 0 auto;
  width: 168px;
  padding-inline-end: 18px;
  display: flex; flex-direction: column;
}
.stu-jn-now { width: 250px; }
.stu-jn-options { width: 470px; }
.stu-jn-level { width: 140px; }
.stu-jn:last-child { padding-inline-end: 0; }

/* the line, drawn from this dot to the next one */
.stu-jn::before {
  content: '';
  position: absolute;
  top: 33px;
  inset-inline-start: 12px;
  inset-inline-end: -12px;
  border-top: 3px solid var(--jn-line);
}
.stu-jn:last-child::before { display: none; }
.stu-jn.is-done { --jn-line: var(--stu-violet, var(--ink)); }
.stu-jn.is-now::before { border-top-style: dashed; }
.stu-jn.is-next::before,
.stu-jn.is-later::before { border-top-style: dashed; }

.stu-jn-cap {
  height: 20px;
  font-size: 12px; font-weight: 700; color: var(--grey-600);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.stu-jn-cap strong { color: var(--ink); text-transform: uppercase; letter-spacing: 0.04em; font-size: 11.5px; }
.stu-jn.is-now .stu-jn-cap strong { color: var(--cyan); }

.stu-jn-dot {
  position: relative; z-index: 1;
  width: 26px; height: 26px; border-radius: 50%;
  margin: 1px 0 10px;
  display: grid; place-items: center;
  background: var(--white);
  border: 3px solid var(--grey-400);
}
.stu-jn-dot .msym { font-size: 16px; color: var(--white); }
.stu-jn.is-done .stu-jn-dot { background: var(--stu-violet, var(--ink)); border-color: var(--stu-violet, var(--ink)); }
.stu-jn.is-now .stu-jn-dot {
  border-color: var(--cyan); background: var(--cyan-bright);
  box-shadow: 0 0 0 6px rgba(0, 220, 255, 0.22);
}
.stu-jn.is-next .stu-jn-dot { border-color: var(--ink); }

.stu-jn-body { align-self: stretch; }
.stu-jn-now .stu-jn-body { align-self: flex-start; width: 100%; }
.stu-jn-body h3 {
  display: flex; align-items: flex-start; gap: 6px;
  font-size: 14px; font-weight: 800; line-height: 1.3; color: var(--ink);
  margin-bottom: 5px;
}
.stu-jn-body h3 .msym { font-size: 18px; color: var(--grey-600); flex: none; margin-top: -1px; }
.stu-jn-body p { font-size: 12.5px; line-height: 1.45; color: var(--grey-800); margin: 0 0 6px; }
.stu-jn-body small { font-size: 11.5px; color: var(--grey-600); }

/* "now" is a card of its own — the one stop that is about today */
.stu-jn-now .stu-jn-body {
  background: var(--grey-50);
  border: 2px solid var(--cyan-bright);
  border-radius: 12px;
  padding: 12px 14px;
}
.stu-jn-now .stu-jn-body h3 .msym { color: var(--cyan); }
.stu-jn-now .stu-bar { background: var(--grey-200); margin: 8px 0 5px; height: 7px; border-radius: 4px; }
.stu-jn-now .stu-bar > span { background: var(--cyan); }

/* after the course: the branch */
.stu-jn-opts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  border: 1px solid var(--grey-200); border-radius: 12px; padding: 12px;
}
.stu-jn-opts h4 {
  display: flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--grey-600); margin: 0 0 8px;
}
.stu-jn-opts h4 .msym { font-size: 16px; }
.stu-jn-opts ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.stu-jn-opts li a {
  display: flex; align-items: flex-start; gap: 6px; flex-wrap: nowrap;
  font-size: 12.5px; font-weight: 700; line-height: 1.35; color: var(--ink);
}
.stu-jn-opts li a:hover span:not(.band-chip) { text-decoration: underline; }
.stu-jn-opts li small { display: block; margin-top: 2px; }
.stu-jn-opts a.is-assess { flex-direction: column; gap: 1px; }
.stu-jn-opts .band-chip { flex: none; margin-top: 1px; }
.stu-jn-opts .stu-jn-path {
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--purple);
}
.stu-jn-opts .muted { font-size: 12px; margin: 0; }
.stu-jn-opts .stu-jn-nothere { font-size: 11.5px; color: var(--grey-600); margin: 8px 0 0; font-style: italic; }

/* levels still ahead */
.band-chip.is-future { background: var(--white); color: var(--ink); border: 2px solid var(--grey-200); }
.stu-jn-level .band-chip.small { font-size: 13px; padding: 3px 9px; }
.stu-jn-miles { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.stu-jn-miles li { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--grey-800); }
.stu-jn-miles .msym { font-size: 15px; color: var(--purple); }

@media (max-width: 700px) {
  .stu-journey-head { flex-direction: column; }
  .stu-jn-options { width: 430px; }
}
