/**
 * Weekly Catalogue 2026. Pagination and sort controls.
 * Row, hero, and button styling come from course-2026.css.
 */

body.ys-weekly-2026 .ys-course p.ys-weekly__progress {
  margin: 1.15rem 0 0;
  color: var(--ys-teal);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.4;
}

body.ys-weekly-2026 .ys-course p.ys-course__action {
  margin-top: 1rem;
}

body.ys-weekly-2026 .ys-course__class {
  grid-template-columns: 3.25rem minmax(0, 1fr) auto;
}

body.ys-weekly-2026 .ys-weekly__sort {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.85rem;
}

body.ys-weekly-2026 .ys-weekly__sort-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--ys-line);
  border-radius: 8px;
  background: transparent;
  color: var(--ys-ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
}

body.ys-weekly-2026 .ys-weekly__sort-link.is-current {
  border-color: var(--ys-teal);
  background: var(--ys-teal);
  color: #ffffff;
}

body.ys-weekly-2026 .ys-weekly__sort-link:hover,
body.ys-weekly-2026 .ys-weekly__sort-link:focus-visible {
  border-color: var(--ys-teal);
}

body.ys-weekly-2026 .ys-weekly__sort-link:focus-visible,
body.ys-weekly-2026 .ys-weekly__page:focus-visible {
  outline: 2px solid #0c2832;
  outline-offset: 3px;
}

body.ys-weekly-2026 .ys-weekly__range {
  margin: 0 0 0.85rem;
  color: var(--ys-muted);
  font-size: 0.92rem;
}

body.ys-weekly-2026 .ys-weekly__pages {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin-top: 1.25rem;
}

body.ys-weekly-2026 .ys-weekly__page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--ys-line);
  border-radius: 8px;
  background: var(--ys-field);
  color: var(--ys-ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
}

body.ys-weekly-2026 a.ys-weekly__page:hover,
body.ys-weekly-2026 a.ys-weekly__page:focus-visible {
  border-color: var(--ys-teal);
  color: var(--ys-teal);
}

body.ys-weekly-2026 .ys-weekly__page.is-current {
  border-color: var(--ys-teal);
  background: var(--ys-teal);
  color: #ffffff;
}

body.ys-weekly-2026 .ys-weekly__page.is-disabled {
  opacity: 0.45;
}

body.ys-weekly-2026 .ys-weekly__gap {
  min-width: 1.5rem;
  color: var(--ys-muted);
  text-align: center;
}

@media (min-width: 720px) {
  body.ys-weekly-2026 .ys-course__class {
    grid-template-columns: 3.5rem minmax(0, 1fr) auto auto;
  }
}
