/* Keep a little breathing room after the figures, while keeping the next row close. */
#panel-s .panel-columns { padding-top:36px; }
/* S: frame the course journey with its teaching data, without changing other themes. */
#panel-s .sov-stack {
  grid-template-columns:minmax(0,.95fr) minmax(0,1.55fr) minmax(0,.95fr);
  column-gap:clamp(18px,1.55vw,30px);
  row-gap:clamp(16px,2vh,24px);
  grid-template-rows:auto auto;
  align-content:start;
}
#panel-s .sov-student-faculty { grid-column:1; grid-row:1; }
#panel-s .sov-student-path { grid-column:2; grid-row:1; }
#panel-s .sov-student-units { grid-column:3; grid-row:1; }
#panel-s .sov-student-units .sov-column-label { height:5em; flex:0 0 5em; }
@supports (grid-template-rows:subgrid) {
  #panel-s .sov-student-units .sov-columns { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); grid-template-rows:15px minmax(0,1fr) auto; align-items:stretch; }
  #panel-s .sov-student-units .sov-column { display:grid; grid-row:1 / span 3; grid-template-rows:subgrid; height:auto; justify-items:center; }
  #panel-s .sov-student-units .sov-column-rail { align-self:stretch; }
  #panel-s .sov-student-units .sov-column-label { height:auto; }
}

/* A quiet halo and brighter leading rule establish the middle section as the focus. */
#panel-s .sov-card.sov-student-path {
  display:flex; flex-direction:column;
  padding:15px clamp(14px,1.25vw,24px) 18px;
  border-top-color:rgba(99,210,230,.58);
  background:radial-gradient(ellipse 90% 75% at 50% 0%,rgba(37,139,168,.13),transparent 72%);
  box-shadow:inset 0 1px 0 rgba(129,228,239,.12);
}
#panel-s .sov-card.sov-student-path::before {
  position:absolute; top:-1px; left:clamp(14px,1.25vw,24px); width:64px; height:2px;
  background:linear-gradient(90deg,#62e1f0,#f3a070,transparent); content:'';
}
#panel-s .sov-student-path h3 { font-size:clamp(19px,1.2vw,22px); }
#panel-s .sov-student-path .sov-caption { color:#9bc8d3; }
#panel-s .sov-student-path .sov-insight { justify-content:center; margin-top:auto; padding-top:16px; }

/* Each segment begins and ends at the center of its two adjacent dots. */
#panel-s .sov-course-timeline {
  --course-gap:14px;
  --course-axis:76px;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:var(--course-gap); margin:14px 0 0;
}
#panel-s .sov-course-timeline::before { display:none; }
#panel-s .sov-course-step { height:190px; text-align:center; }
#panel-s .sov-course-label {
  position:absolute; z-index:2; left:0; display:flex; width:100%; flex-direction:column;
  align-items:center; gap:4px;
}
#panel-s .sov-course-step.is-above .sov-course-label { bottom:calc(100% - var(--course-axis) - var(--course-offset) + 10px); }
#panel-s .sov-course-step.is-below .sov-course-label { top:calc(var(--course-axis) + var(--course-offset) + 22px); }
#panel-s .sov-course-term { position:relative; line-height:18px; font-size:12px; }
#panel-s .sov-course-dot {
  position:absolute; z-index:2; top:calc(var(--course-axis) + var(--course-offset)); left:50%;
  box-sizing:border-box; width:12px; height:12px; margin:0; transform:translateX(-50%);
  border:2px solid #ffc49d; background:#a74c2e; box-shadow:0 0 0 3px rgba(249,157,106,.08),0 0 12px rgba(246,138,86,.38);
}
#panel-s .sov-course-step strong { position:relative; min-height:0; font-size:clamp(13px,.87vw,15px); line-height:1.35; }
#panel-s .sov-course-step small { position:relative; margin:0; font-size:11px; line-height:1.3; }
#panel-s .sov-course-link { position:absolute; z-index:1; display:block; overflow:visible; pointer-events:none; }
#panel-s .sov-course-link.is-horizontal { top:calc(var(--course-axis) - 4px); left:50%; width:calc(100% + var(--course-gap)); height:44px; }
#panel-s .sov-course-link.is-vertical { display:none; }
#panel-s .sov-course-link path { stroke:#62ccdd; stroke-width:1.65; opacity:.82; filter:drop-shadow(0 0 3px rgba(65,194,220,.35)); }

@media(max-width:1100px) {
  #panel-s .sov-stack { grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-rows:none; grid-auto-rows:minmax(max-content,auto); }
  #panel-s .sov-student-path { grid-column:1 / -1; grid-row:1; }
  #panel-s .sov-student-faculty { grid-column:1; grid-row:2; }
  #panel-s .sov-student-units { grid-column:2; grid-row:2; }
}
@media(max-height:800px) and (min-width:701px) {
  #panel-s .sov-course-timeline { margin-top:10px; }
  #panel-s .panel-columns { padding-top:34px; }
  #panel-s .sov-student-path .sov-insight { padding-top:12px; }
}
@media(max-width:700px) {
  #panel-s .panel-columns { padding-top:25px; }
  #panel-s .sov-stack { grid-template-columns:minmax(0,1fr); gap:20px; }
  #panel-s .sov-student-path { grid-column:1; grid-row:1; }
  #panel-s .sov-student-faculty { grid-column:1; grid-row:2; }
  #panel-s .sov-student-units { grid-column:1; grid-row:3; }
  #panel-s .sov-course-timeline { grid-template-columns:1fr; gap:0; margin-top:18px; }
  #panel-s .sov-course-step { height:auto; min-height:67px; padding:0 0 17px 30px; text-align:left; }
  #panel-s .sov-course-label { position:static; width:auto; align-items:flex-start; }
  #panel-s .sov-course-step:last-child { min-height:0; padding-bottom:0; }
  #panel-s .sov-course-term { line-height:18px; }
  #panel-s .sov-course-dot { position:absolute; top:4px; left:0; margin:0; transform:none; }
  #panel-s .sov-course-step strong { min-height:0; }
  #panel-s .sov-course-step small { margin-top:0; }
  #panel-s .sov-course-link.is-horizontal { display:none; }
  #panel-s .sov-course-link.is-vertical { display:block; top:10px; left:-4px; width:20px; height:100%; }
  #panel-s .sov-student-path .sov-insight { justify-content:flex-start; }
}
