/* Unified course footer navigation · 2026-10-03 */
body:has(> .lesson-bottom-nav) > main:last-of-type {
  height: auto !important;
  min-height: 0 !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.lesson-bottom-nav {
  position: relative;
  z-index: 20;
  clear: both;
  width: min(960px, calc(100% - 24px));
  margin: 28px auto max(22px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  box-sizing: border-box;
}

.lesson-nav-btn {
  min-width: 0;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 7px;
  box-sizing: border-box;
  border: 1px solid #dfe6f5;
  border-radius: 14px;
  background: #fff;
  color: #315acd;
  text-decoration: none;
  font: 700 14px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(49, 90, 205, 0.09);
  -webkit-tap-highlight-color: transparent;
}

.lesson-nav-btn:active {
  background: #f4f7ff;
}

.lesson-nav-text {
  white-space: nowrap;
}

.nav-empty {
  visibility: hidden;
}
