/* Student specialization workspace: access, academic progress and a clear next course. */
.student-workspace .aula-specialization-grid,
.student-workspace .aula-specialization-grid:has(> .student-route-card:only-child) { grid-template-columns: minmax(0, 1fr); gap: 28px; }
.student-workspace .student-route-card { padding: 0; overflow: hidden; background: #fff; border-color: #dce4ee; border-radius: 18px; box-shadow: 0 6px 24px rgb(23 45 76 / 5%); }
.student-workspace .student-route-card:hover { transform: none; box-shadow: 0 6px 24px rgb(23 45 76 / 5%); }
.student-workspace .student-route-card:hover img { transform: none; }
.student-route-head { display: grid; grid-template-columns: minmax(190px, 29%) minmax(0, 1fr); }
.student-route-cover { position: relative; overflow: hidden; min-height: 245px; background: #173c60; }
.student-route-cover::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgb(8 28 48 / 74%)); }
.student-route-cover > img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.student-route-cover > span { position: absolute; z-index: 1; bottom: 20px; left: 22px; right: 18px; color: #fff; font-size: 11px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.student-route-overview { padding: 26px 30px; min-width: 0; }
.student-route-badge { display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px; border-radius: 5px; color: #204d85; background: #edf3fc; font-size: 11px; line-height: 1.5; font-weight: 600; }
.student-route-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.student-route-card[data-route-stage="completed"] .student-route-badge { background: #e7f5ed; color: #16633f; }
.student-workspace .student-route-head h3 { margin: 12px 0 0; color: #192d43; font-size: clamp(20px, 1.8vw, 25px); font-weight: 700; line-height: 1.3; letter-spacing: -.025em; text-wrap: balance; overflow-wrap: anywhere; }
.student-route-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 13px 0 0; color: #586a7c; font-size: 12px; line-height: 1.6; }
.student-route-meta > span + span { padding-left: 14px; border-left: 1px solid #dbe3ed; }
.student-route-metric { margin-top: 22px; }
.student-route-metric > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 12px; color: #536579; }
.student-route-metric strong { color: #1d3650; font-size: 20px; font-weight: 650; }
.student-route-metric strong small { font-size: 12px; color: #536579; font-weight: 400; }
.student-route-metric > small { color: #536579; font-size: 12px; line-height: 1.6; }
.student-route-meter { height: 6px; margin-top: 9px; overflow: hidden; border-radius: 6px; background: #e8edf4; }
.student-route-meter > span { display: block; height: 100%; width: var(--coverage, 0%); background: #258463; border-radius: inherit; }
.student-route-next { display: flex; align-items: center; gap: 16px; padding: 20px 26px; background: #f0f5fc; border-top: 1px solid #e0e9f5; border-bottom: 1px solid #e0e9f5; }
.student-route-next-icon { display: grid; place-items: center; flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; background: #fff; color: #23599e; box-shadow: 0 2px 8px rgb(33 70 115 / 7%); font-size: 13px; }
.student-route-next-copy { flex: 1; min-width: 0; }
.student-route-next-copy p { margin: 0 0 5px; color: #28528a; font-size: 11px; font-weight: 650; line-height: 1.5; }
.student-route-next-copy p > span { color: #536579; font-weight: 400; }
.student-route-next-copy > strong { display: block; color: #1f354d; font-size: 14px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.student-route-primary { display: inline-flex; align-items: center; justify-content: center; gap: 14px; flex-shrink: 0; min-height: 44px; padding: 12px 18px; border: 1px solid #2459a1; border-radius: 8px; background: #2459a1; color: #fff; text-decoration: none; font: inherit; font-size: 12px; font-weight: 650; line-height: 1.5; cursor: pointer; }
.student-route-primary:hover { background: #1b477f; border-color: #1b477f; color: #fff; }
.student-route-plan { padding: 24px 26px; }
.student-route-plan-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 16px; }
.student-route-plan-heading h4 { margin: 0; color: #1d334c; font-size: 15px; font-weight: 650; }
.student-route-plan-heading > span { color: #5a6b7d; font-size: 11px; line-height: 1.5; }
.student-route-course-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 0; margin: 0; list-style: none; }
.student-route-course-list li { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid #dee6f0; border-radius: 10px; background: #fff; }
.student-route-course-list li.is-next { border-color: #7fa6d7; box-shadow: 0 0 0 1px rgb(36 89 161 / 7%); }
.student-route-course-cover { position: relative; height: 105px; overflow: hidden; background: #e7edf3; }
.student-route-course-cover::after { position: absolute; content: ""; inset: 0; background: linear-gradient(rgb(14 35 57 / 18%), transparent 80%); }
.student-route-course-cover > img { width: 100%; height: 100%; object-fit: cover; }
.student-route-course-number { position: absolute; z-index: 1; top: 10px; left: 10px; padding: 4px 8px; border: 1px solid rgb(255 255 255 / 70%); border-radius: 5px; background: #fff; color: #233e5a; font-size: 10px; font-weight: 650; line-height: 1.5; }
.is-approved .student-route-course-number { color: #16633f; background: #eefaf3; }
.student-route-course-body { display: flex; flex-direction: column; flex: 1; padding: 14px; }
.student-route-course-status { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; color: #576b80; font-size: 10px; line-height: 1.6; }
.is-approved .student-route-course-status { color: #16633f; }
.student-route-current { color: #204d85; font-size: 9px; font-weight: 650; padding: 1px 5px; border-radius: 3px; background: #edf3fc; }
.student-route-course-name { display: block; color: #1e344c; margin-top: 8px; font-size: 13px; line-height: 1.55; font-weight: 600; overflow-wrap: anywhere; }
.student-route-course-action { margin-top: auto; padding-top: 13px; }
.student-route-course-action :is(a, button) { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 38px; padding: 8px 0 0; border: 0; border-top: 1px solid #e8edf4; background: transparent; color: #245495; font: inherit; font-size: 11px; font-weight: 650; text-align: left; text-decoration: none; cursor: pointer; }
.student-route-course-action :is(a, button):hover { color: #173d72; text-decoration: underline; }
.student-route-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 26px; border-top: 1px solid #e8edf4; background: #fbfcfe; }
.student-route-next-step { margin: 0; color: #536579; font-size: 11px; line-height: 1.7; max-width: 62ch; }
.student-route-footer > button { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; min-height: 40px; padding: 8px 0; border: 0; color: #245495; background: transparent; font: inherit; font-size: 11px; font-weight: 600; cursor: pointer; }
.student-route-footer > button:hover { text-decoration: underline; }
.student-route-card :is(a, button):focus-visible, .student-route-empty button:focus-visible { outline: 3px solid #356bd6; outline-offset: 3px; }
.student-route-empty { grid-column: 1 / -1; padding: 34px; border: 1px solid #dbe5f1; border-radius: 14px; background: #fff; max-width: 820px; }
.student-route-empty h3 { margin: 0 0 10px; color: #162c43; font-size: 20px; }
.student-route-empty p { margin: 0 0 22px; color: #52657a; font-size: 14px; line-height: 1.8; }
.student-route-empty button { min-height: 44px; padding: 10px 18px; border-radius: 8px; border: 1px solid #2459a1; color: #fff; background: #2459a1; font: inherit; font-size: 13px; cursor: pointer; }
@media (max-width: 1150px) {
  .student-route-head { grid-template-columns: minmax(150px, 27%) minmax(0, 1fr); }
  .student-route-overview { padding: 23px; }
  .student-route-next { flex-wrap: wrap; }
  .student-route-primary { margin-left: 58px; }
  .student-route-next-copy { flex-basis: calc(100% - 60px); }
  .student-route-plan-heading > span { max-width: 100%; }
  .student-route-footer { align-items: flex-start; flex-direction: column; gap: 4px; }
}
@media (max-width: 760px) {
  .student-route-head { grid-template-columns: minmax(0, 1fr); }
  .student-route-cover { min-height: 150px; max-height: 150px; }
  .student-route-cover > img { object-position: center 46%; }
  .student-route-overview { padding: 22px; }
  .student-workspace .student-route-head h3 { font-size: 22px; }
  .student-route-course-list { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .student-route-course-list li { display: grid; grid-template-columns: 100px minmax(0, 1fr); }
  .student-route-course-cover { height: 100%; min-height: 160px; }
  .student-route-course-cover > img { position: absolute; inset: 0; }
  .student-route-course-body { padding: 13px; }
  .student-route-next { padding: 20px 22px; }
  .student-route-plan { padding: 22px; }
  .student-route-plan-heading { display: block; }
  .student-route-plan-heading > span { display: block; margin-top: 6px; }
  .student-route-footer { padding: 17px 22px; }
}
@media (max-width: 420px) {
  .student-route-overview, .student-route-plan { padding: 18px; }
  .student-workspace .student-route-head h3 { font-size: 20px; }
  .student-route-meta { gap: 5px 10px; font-size: 11px; }
  .student-route-meta > span + span { padding-left: 10px; }
  .student-route-meta > span:last-child { border: 0; padding-left: 0; flex-basis: 100%; }
  .student-route-next { padding: 18px; gap: 12px; }
  .student-route-next-icon { width: 34px; height: 34px; font-size: 11px; }
  .student-route-next-copy { flex-basis: calc(100% - 46px); }
  .student-route-next-copy p > span { display: block; }
  .student-route-next-copy > strong { font-size: 13px; }
  .student-route-primary { width: 100%; margin-left: 0; }
  .student-route-course-list li { grid-template-columns: 74px minmax(0, 1fr); }
  .student-route-course-number { left: 5px; top: 8px; padding: 3px 5px; font-size: 9px; }
  .student-route-course-name { font-size: 12px; }
  .student-route-footer { padding: 15px 18px; }
  .student-route-footer > button { white-space: normal; text-align: left; }
  .student-route-empty { padding: 22px; }
}
