/* UniCheatSheet — homepage course cards (public "Semester N" lists + paid "Your courses"). Content-named, never changed in place.
   CSS only: markup, the screen-reader count line (.sem-course-m, read by Content Manager checks) and evo.js are untouched.
   Same type, colours, icons, hover and press. */
/* 1. cards in one grid row share its height (the row already is that tall; the card now fills it); content stays centred */
.home-v3 .sem-list .sem-courses ul, .home-v3 .uc-study .sem-courses--mine ul { align-items: stretch !important; }
.home-v3 .sem-list .sem-courses ul > li, .home-v3 .uc-study .sem-courses--mine ul > li { display: flex; }
.home-v3 .sem-list .sem-courses ul > li > .sem-course, .home-v3 .uc-study .sem-courses--mine ul > li > .sem-course { flex: 1 1 auto; }
/* 2. the title is its own line(s); the specialisation badge opens the count line (visual order only: a zero-height break after the title) */
.home-v3 .sem-list .sem-course-n::after, .home-v3 .uc-study .sem-course-n::after { content: ""; order: 1; flex-basis: 100%; height: 0; }
.home-v3 .sem-list .sem-course-n > .sem-course-track, .home-v3 .uc-study .sem-course-n > .sem-course-track { order: 2; margin: 4px 0 0 !important; }
.home-v3 .sem-list .sem-course-n > .evo-meta, .home-v3 .uc-study .sem-course-n > .evo-meta { order: 3; flex-basis: auto !important; }
/* 3. narrow phones: the count line wraps instead of running off the card */
@media (max-width: 380px) { .home-v3 .sem-list .evo-meta, .home-v3 .uc-study .evo-meta { flex-wrap: wrap !important; row-gap: 2px !important; } }
