/* Level and block pages: where you are, the classes in order, where you left off. */
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0 0 12px; font-weight: 800; font-size: .9rem; color: var(--muted); }
.breadcrumbs a { color: var(--brand-navy-2); text-decoration: none; border-radius: 6px; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs a:focus-visible { outline: 3px solid var(--brand-cyan); outline-offset: 2px; }

.continue-class {
  display: inline-flex; align-items: center; gap: 14px; flex-shrink: 0;
  min-height: 56px; padding: 10px 20px 10px 22px; border-radius: 999px;
  background: var(--brand-navy-2); color: #fff; text-decoration: none;
  box-shadow: 0 4px 0 var(--brand-navy);
}
.continue-class strong { display: block; font-size: 1rem; }
.continue-class small { display: block; font-weight: 700; opacity: .85; font-size: .82rem; }
.continue-class:hover { background: var(--brand-cyan-strong); }
.continue-class:focus-visible { outline: 3px solid var(--brand-cyan); outline-offset: 3px; }
.continue-class svg { width: 20px; height: 20px; flex-shrink: 0; }

.level-search { margin: 0 0 18px; grid-template-columns: 1fr; }
.level-search-results h2, .level-page .section > h2 { margin: 0 0 12px; font-size: 1.25rem; }
.level-search-results .class-list + .class-list { margin-top: 12px; }
.level-search-results > p { color: var(--muted); font-weight: 700; }
.level-page .section { margin-bottom: 22px; }

.block-card .block-summary { margin: 4px 0 0; color: var(--muted); font-weight: 750; font-size: .92rem; }
.block-card .block-summary strong { color: var(--brand-navy-2); }
.block-card.is-last { border-color: var(--brand-cyan); }

.class-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.class-list > li + li { border-top: 1px solid var(--line); }
.class-row {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto 24px; align-items: center; gap: 16px;
  padding: 14px 22px; color: var(--text); text-decoration: none;
}
.class-row:hover { background: var(--surface-soft); }
.class-row:focus-visible { outline: 3px solid var(--brand-cyan); outline-offset: -3px; }
.class-position {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand-cyan-soft); color: var(--brand-navy-2); font-weight: 900;
}
.class-row.is-review .class-position { background: var(--accent-orange-soft); color: #7a5200; }
.class-row.is-last { background: var(--brand-cyan-soft); }
.class-row.is-last .class-position { background: var(--brand-navy-2); color: #fff; }
.class-text strong { display: block; font-size: 1.05rem; line-height: 1.25; }
.class-text small { display: block; margin-top: 3px; color: var(--muted); font-size: .88rem; font-weight: 650; line-height: 1.35;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.class-text .class-block { color: var(--brand-navy-2); font-weight: 800; -webkit-line-clamp: 1; }
.class-meta { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; }
.class-tag { border-radius: 999px; padding: 4px 10px; font-size: .75rem; font-weight: 900; white-space: nowrap; }
.class-tag.is-last { background: var(--brand-navy-2); color: #fff; }
.class-tag.is-review { background: var(--accent-orange-soft); color: #7a5200; }
.class-tag.is-teacher-only { background: var(--accent-purple-soft); color: #4d2aa6; }
.class-code { min-width: 58px; text-align: right; color: var(--muted); font-size: .8rem; font-weight: 800; white-space: nowrap; }
.class-go { display: grid; place-items: center; color: var(--brand-navy-2); }
.class-go svg { width: 18px; height: 18px; }

.block-pager { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin: 16px 4px 0; font-weight: 900; }
.block-pager a { color: var(--brand-navy-2); text-decoration: none; }
.block-pager a:hover { text-decoration: underline; }

@media (max-width: 700px) {
  .level-header, .block-header { flex-direction: column; align-items: flex-start; }
  .continue-class { width: 100%; justify-content: space-between; }
  .class-row { grid-template-columns: 34px minmax(0, 1fr) 18px; gap: 12px; padding: 12px 14px; }
  .class-meta { grid-column: 2; grid-row: 2; justify-content: flex-start; }
  .class-code { min-width: 0; text-align: left; }
  .class-go { grid-column: 3; grid-row: 1; }
}
