/* The Class Finder uses the same .blue-class row in schedules and campus expansions. */
body article.blue-class {
  transition: border-color 150ms ease, transform 150ms ease;
  -webkit-tap-highlight-color: rgba(24,183,230,.2);
}
body article.blue-class > .blue-date {
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
body article.blue-class .class-choices button.blue-detail-btn,
body article.blue-class .class-choices button.blue-detail-btn:is(:focus, :active) {
  color: #0a2853 !important;
  background-color: #eef5ff !important;
  border: 1px solid #7796bd !important;
  min-height: 44px;
}
body article.blue-class .class-choices button.blue-detail-btn span {
  color: inherit !important;
}
body article.blue-class .class-choices .class-register:any-link,
body .blue-dialog .blue-detail-actions .blue-btn:any-link {
  color: #0a2853 !important;
  background-color: #f8c400 !important;
}
body article.blue-class .class-choices :is(a, button):focus-visible,
body dialog.blue-dialog :is(a, button):focus-visible,
body .blue-calendar button:focus-visible,
body .blue-views button:focus-visible {
  outline: 3px solid #2452d6 !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 3px #fff !important;
}
body article.blue-class:focus-within > .blue-date,
body article.blue-class:active > .blue-date {
  background-color: #0a2853 !important;
  border-color: #0a2853 !important;
  color: #fff !important;
}
body article.blue-class:is(:focus-within, :active) > .blue-date :is(small, b) {
  color: #fff !important;
}
body article.blue-class:active,
body article.blue-class:focus-within {
  border-color: #527399 !important;
}
body article.blue-class .class-choices button.blue-detail-btn:active {
  background-color: #cfdef3 !important;
}
body article.blue-class .class-choices .class-register:active,
body .blue-dialog .blue-detail-actions .blue-btn:active {
  background-color: #e6b400 !important;
}

@media (hover: hover) and (pointer: fine) {
  body article.blue-class:hover {
    border-color: #527399 !important;
    transform: translateY(-2px);
  }
  body article.blue-class:hover > .blue-date {
    background-color: #0a2853 !important;
    border-color: #0a2853 !important;
    color: #fff !important;
  }
  body article.blue-class:hover > .blue-date :is(small, b) {
    color: #fff !important;
  }
  body article.blue-class .class-choices button.blue-detail-btn:hover {
    color: #0a2853 !important;
    background-color: #dbeaff !important;
    border-color: #527399 !important;
  }
  body article.blue-class .class-choices .class-register:hover,
  body .blue-dialog .blue-detail-actions .blue-btn:hover {
    background-color: #ffd334 !important;
  }
}
/* Pressed feedback is immediate on touch. The native button and link actions
   remain independent, and hover never changes the number of taps needed. */
@media (hover: none), (pointer: coarse) {
  body article.blue-class,
  body article.blue-class > .blue-date {
    transition: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  body article.blue-class,
  body article.blue-class > .blue-date,
  body article.blue-class .class-choices :is(a, button) {
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
}
/* Three-day courses fit one row on desktop. At phone width, give each
   meeting time its own column so the dates can wrap independently. */
@media (min-width: 660px) {
  .blue-dialog .blue-detail-body .blue-timed-days:has(> li:nth-child(3):last-child) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .blue-dialog .blue-detail-body .blue-timed-days:has(> li:nth-child(3):last-child) li {
    display: grid;
    gap: 3px;
    padding: 9px 11px;
    justify-content: start;
  }
}
@media (max-width: 479px) {
  .blue-dialog .blue-detail-body .blue-timed-days li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 6px;
  }
  .blue-dialog .blue-detail-body .blue-timed-days li > strong {
    white-space: nowrap;
  }
}
