.research-notes.learning-catalog {max-width: 74rem;}
.learning-catalog nav {display:flex; flex-wrap:wrap; gap:.6rem; align-items:center;}
.learning-catalog section {scroll-margin-top:6rem;}
.department-courses {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,14rem),1fr));gap:1rem;}
.department-courses .course-card {display:flex;flex-direction:column;min-width:0;border:1px solid #c8d7e4;border-radius:12px;overflow:hidden;background:white;color:#19304a;text-decoration:none;}
.course-thumb {background:linear-gradient(115deg,var(--shade) 35%,#172c45);display:grid;place-items:center;}
.course-thumb svg {height:7rem;width:100%;}
.course-card h3,.course-card p,.course-card span {margin:.8rem 1rem 0;}
.course-card h3 {font-size:1.2rem;letter-spacing:normal;line-height:1.3;}
.course-card p {flex:1;}
.course-card span {margin-bottom:1rem;color:#185769;text-decoration:underline;}
.course-card:hover,.course-card:focus-visible {outline:2px solid #327d86;outline-offset:2px;}
.learning-catalog details + details {margin-top:.5rem;}

/* Keep the illustrations moving while learners browse. The toggle also works without JS. */
.learning-motion {display:inline-flex;align-items:center;gap:.5rem;margin-top:1rem;cursor:pointer;}
.learning-motion input {width:1.1rem;height:1.1rem;}
@media (prefers-reduced-motion: no-preference) {
  .thumb-cycle svg {animation: course-turn 12s linear infinite;}
  .thumb-surface svg {animation: course-tilt 4s ease-in-out infinite alternate;}
  .thumb-basis path {transform-origin:38px 80px;animation: course-shear 3s ease-in-out infinite alternate;}
  .thumb-order circle, .thumb-matrix rect {transform-box:fill-box;transform-origin:center;animation: course-highlight 2.4s ease-in-out infinite;}
  .thumb-order circle:nth-child(2n), .thumb-matrix rect:nth-child(3n) {animation-delay:-.8s;}
  .thumb-order circle:nth-child(3n), .thumb-matrix rect:nth-child(3n + 1) {animation-delay:-1.6s;}
  .thumb-fit path {transform-origin:84px 52px;animation: course-fit 3s ease-in-out infinite alternate;}
  .thumb-code text:last-child {animation: course-print 3s ease-out infinite;}
}
@media (prefers-reduced-motion: reduce) {.learning-motion {display:none;}}
.learning-catalog:has(.learning-motion input:checked) .course-thumb :is(svg,path,rect,circle,text) {animation-play-state:paused;}
@keyframes course-turn {to {transform:rotate(360deg);}}
@keyframes course-tilt {from {transform:perspective(450px) rotateY(-27deg) rotateZ(-5deg);} to {transform:perspective(450px) rotateY(27deg) rotateZ(5deg);}}
@keyframes course-shear {from {transform:skewX(-12deg);} to {transform:skewX(12deg);}}
@keyframes course-highlight {50% {transform:scale(1.3);fill:#ffc774;opacity:1;}}
@keyframes course-fit {from {transform:rotate(-12deg);} to {transform:rotate(9deg);}}
@keyframes course-print {0%,15% {clip-path:inset(0 100% 0 0);} 70%,100% {clip-path:inset(0);}}
.learning-tools {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,17rem),1fr));gap:1rem;align-items:stretch;}
.learning-tools > .tool-tile {min-width:0;padding:1rem;border-radius:14px;background:#edf5fa;border:1px solid #bdcfde;}
.learning-tools :is(.scanner,.sample,.rotation) {width:100%;max-width:none;box-sizing:border-box;margin:0;}
.learning-tools svg {display:block;max-width:100%;max-height:10rem;margin:.5rem auto;}
.learning-tools input[type=range] {width:100%;max-width:100%;}
.learning-tools output {display:block;margin-top:.65rem;}
