/* Copied from RDS offered_courses so this page matches the official list.
   System/Roboto stack only — no Google Fonts @import so first paint is not blocked. */

html:has(.offered-page) {
  color-scheme: light;
}

.offered-page {
  margin: 0;
  font-family: "IBM Plex Sans", Roboto, Arial, sans-serif;
  font-size: 14px;
  background: #f4f6f9 !important;
  color: #1b2430;
  color-scheme: light;
}

.offered-page .site-header {
  width: 100%;
  background: #102a43;
  padding: 14px 20px;
  text-align: center;
  border-radius: 12px;
}

.offered-page .header-lockup {
  max-width: 300px;
  height: auto;
  display: inline-block;
  vertical-align: middle;
}

.offered-page .title-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 4px;
  gap: 12px;
}

.offered-page .page-title {
  grid-column: 2;
  text-align: center;
  padding: 0;
  color: #102a43 !important;
  font-family: "IBM Plex Serif", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 500;
  font-family: Roboto, Arial, sans-serif;
}

.offered-page .changes-btn {
  grid-column: 3;
  justify-self: end;
  position: relative;
  z-index: 2;
  border: 1px solid #102a43;
  background: #102a43;
  color: #fff;
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.offered-page .changes-panel[hidden] {
  display: none !important;
}

.offered-page .changes-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: end;
  margin: 0 0 14px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #d5dde8;
  border-radius: 10px;
}

.offered-page .changes-filters label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #003e7e;
}

.offered-page .changes-filters select,
.offered-page .changes-filters input {
  width: auto !important;
  min-width: 180px;
  margin: 0;
  background: #fff !important;
  color: #111 !important;
  border: 1px solid #667 !important;
  border-radius: 6px;
  padding: 8px 10px;
}

.offered-page .changes-panel {
  max-width: 1200px;
  margin: 0 auto 18px;
  padding: 16px;
  background: #fff;
  border: 1px solid #d5dde8;
  border-radius: 10px;
}

.offered-page .changes-panel h2 {
  margin: 0 0 12px;
  font-size: 18px;
  color: #003e7e;
}

.offered-page .change-batch {
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
}

.offered-page .change-batch time {
  display: block;
  font-weight: 700;
  color: #003e7e;
  margin-bottom: 6px;
}

.offered-page .change-batch li {
  margin: 4px 0;
  font-size: 14px;
}

.offered-page .change-added {
  color: #1d6b4f;
}

.offered-page .change-removed {
  color: #9b1d2a;
}

.offered-page .change-updated {
  color: #8a5a00;
}

.offered-page .page-subtitle,
.offered-page .sync-info {
  text-align: center;
  color: #666;
  font-size: 0.85rem;
  margin: 0 0 6px;
}

.offered-page .sync-info {
  color: #444;
  font-size: 13px;
  margin-bottom: 14px;
}

.offered-page .table-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px 40px;
  position: relative;
  min-height: 320px;
}

.offered-page .table-skeleton {
  display: none;
  height: 280px;
  border-radius: 8px;
  background: linear-gradient(90deg, #e8edf5 0%, #f7f9fc 45%, #e8edf5 90%);
  background-size: 200% 100%;
  animation: offered-shimmer 1.1s ease-in-out infinite;
}

.offered-page .table-wrap.is-loading .table-skeleton {
  display: block;
}

.offered-page .table-wrap.is-loading #offeredCourseTbl,
.offered-page .table-wrap.is-loading .dataTables_wrapper {
  display: none;
}

@keyframes offered-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.offered-page table#offeredCourseTbl {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  box-shadow: none;
}

.offered-page .dataTables_wrapper {
  width: 100%;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(16, 42, 67, 0.05), 0 8px 24px rgba(16, 42, 67, 0.06);
  padding: 14px 16px 10px;
  overflow: auto;
  border: 1px solid #e4ebf2;
}

.offered-page .dt-top,
.offered-page .dt-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 12px;
}

.offered-page .dt-bottom {
  margin: 12px 0 0;
}

.offered-page .dataTables_length,
.offered-page .dataTables_filter,
.offered-page .dataTables_info,
.offered-page .dataTables_paginate {
  float: none !important;
  width: auto;
  color: #111 !important;
  opacity: 1 !important;
  font-size: 13px;
}

.offered-page .dataTables_filter {
  margin-left: auto;
}

/* Global styles.css sets select { width: 100% } — keep these compact. */
.offered-page .dataTables_wrapper .dataTables_length select,
.offered-page .dataTables_wrapper .dataTables_filter input {
  width: auto !important;
  min-width: 72px;
  max-width: 240px;
  margin: 0 8px;
  display: inline-block;
  background: #fff !important;
  color: #111 !important;
  opacity: 1 !important;
  border: 1px solid #667 !important;
  color-scheme: light;
}

.offered-page #offeredCourseTbl thead th {
  background: #102a43;
  color: #fff;
  text-align: center;
  padding: 11px 8px;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.offered-page #offeredCourseTbl tbody td {
  text-align: center;
  padding: 7px 8px;
  font-size: 13px;
  border-bottom: 1px solid #eee;
  color: #1b2430;
  background: #fff;
}

.offered-page #offeredCourseTbl tbody tr:hover {
  background: #f0f4ff;
}

.offered-page td.full {
  background: #c0392b !important;
  color: #fff;
  font-weight: 600;
}

.offered-page .dataTables_wrapper .dataTables_filter input,
.offered-page .dataTables_wrapper .dataTables_length select {
  border-radius: 4px;
  padding: 6px 8px;
}

.offered-page .official-link {
  display: block;
  text-align: center;
  margin: 0 0 16px;
  color: #003e7e;
}

.offered-page .page {
  padding: 16px 0 8px;
}

.offered-page .offered-shell {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 16px 40px;
}

.offered-page .offered-content {
  min-width: 0;
}

.offered-page .planner-nav {
  max-width: none;
  margin: 0;
  position: sticky;
  top: 16px;
}

@media (max-width: 900px) {
  .offered-page .offered-shell {
    display: block;
  }

  .offered-page .planner-nav {
    flex-direction: row;
    flex-wrap: wrap;
    position: static;
    margin-bottom: 16px;
  }
}
