.lesson2-4-page {
  min-height: 100vh;
  background: linear-gradient(180deg, var(--color-bg) 0%, #edf4f1 100%);
}

.lesson2-4-page .navbar,
.lesson2-4-page .nav-menu {
  direction: ltr;
}

.l24-main {
  padding: clamp(1rem, 3vw, 1.5rem) 0 clamp(3rem, 8vw, 5rem);
}

.l24-container {
  max-width: min(100%, 920px);
}

.l24-back {
  margin: 0 0 1rem;
  text-align: left;
  direction: ltr;
}

.l24-back a {
  font-size: 0.95rem;
  font-weight: 600;
}

.l24-hero {
  margin-bottom: 1.1rem;
}

.l24-kicker {
  margin: 0 0 0.35rem;
  color: #2d6b56;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: left;
  direction: ltr;
}

.l24-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.45rem, 4vw, 2rem);
  color: #1b2b25;
  text-align: center;
}

.l24-lead {
  margin: 0;
  color: #4f6760;
  line-height: 1.9;
}

.l24-viewer {
  margin-top: 1rem;
  padding: clamp(1rem, 3vw, 1.35rem);
  padding-bottom: clamp(4.8rem, 9vw, 6.2rem);
  border: 1px solid rgba(28, 58, 48, 0.12);
  border-radius: 16px;
  background: #f6faf8;
  box-shadow: 0 5px 18px rgba(28, 58, 48, 0.07);
}

.l24-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}

.l24-jump {
  display: flex;
  align-items: center;
}

.l24-jump-shell {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 42px;
  padding: 0.22rem;
  border: 1px solid #cfd9d4;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(31, 50, 43, 0.08);
}

.l24-jump input {
  width: 92px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  padding: 0 0.75rem;
  font-size: 0.92rem;
  text-align: center;
  color: #1f322b;
  outline: none;
  box-shadow: none;
}

/* Hide number input spinners/arrows */
.l24-jump input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.l24-jump input[type="number"]::-webkit-outer-spin-button,
.l24-jump input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.l24-jump input:focus {
  background-color: #f7fbf9;
}

.l24-jump input::placeholder {
  color: #97a7a0;
}

.l24-jump-trigger {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #0f8f6c;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease;
}

.l24-jump-trigger:hover {
  background: #0c7e5f;
}

.l24-jump-trigger:active {
  transform: scale(0.96);
}

@media (prefers-reduced-motion: reduce) {
  .l24-jump input,
  .l24-jump-trigger {
    transition: none;
  }
}

.l24-count {
  margin: 0;
  color: #476059;
  font-size: 0.95rem;
  direction: ltr;
}

.l24-title {
  margin: 0 0 0.85rem;
  color: #20342d;
  font-size: 1.35rem;
  text-align: center;
}

.l24-text {
  margin-top: 0.85rem;
  padding: 0.9rem 0.95rem;
  border-radius: 12px;
  border: 1px solid rgba(28, 58, 48, 0.11);
}

.l24-text h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  color: #1f322b;
}

.l24-text p {
  margin: 0;
  line-height: 1.95;
  color: #30443d;
}

.l24-text--de {
  background: #eef7ff;
  border-color: rgba(73, 117, 160, 0.17);
}

.l24-text--fa {
  background: #f2fbf6;
  border-color: rgba(64, 130, 97, 0.17);
}

.l24-actions {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 30;
  display: flex;
  gap: 0.55rem;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.55rem;
  border: 1px solid rgba(28, 58, 48, 0.14);
  border-radius: 999px;
  background: rgba(246, 250, 248, 0.92);
  box-shadow: 0 10px 24px rgba(28, 58, 48, 0.12);
  backdrop-filter: blur(6px);
}

.l24-actions .btn {
  width: 48px;
  min-width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  line-height: 1;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.l24-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(28, 58, 48, 0.18);
  filter: saturate(1.04);
}

.l24-actions .btn:active {
  transform: scale(0.94);
}

.l24-nav-btn--prev {
  background: #ffffff;
  border-color: rgba(28, 58, 48, 0.2);
  color: #2a4a40;
}

.l24-nav-btn--next {
  background: linear-gradient(135deg, #118a68, #0f7a5c);
  border-color: transparent;
  color: #ffffff;
}

.l24-actions .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

@media (max-width: 760px) {
  .l24-main {
    padding: 0.7rem 0 2.2rem;
  }

  .l24-container {
    padding-inline: 0.75rem;
  }

  .l24-hero h1 {
    font-size: clamp(1.2rem, 6vw, 1.55rem);
  }

  .l24-lead,
  .l24-text p {
    font-size: 0.95rem;
    line-height: 1.82;
  }

  .l24-viewer {
    padding: 0.9rem;
    border-radius: 12px;
  }

  .l24-title {
    font-size: 1.15rem;
  }

  .l24-actions {
    bottom: calc(10px + env(safe-area-inset-bottom));
    padding: 0.34rem 0.46rem;
  }

  .l24-actions .btn {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    font-size: 1.1rem;
  }

  .l24-meta {
    justify-content: space-between;
    align-items: center;
    gap: 0.55rem;
  }

  .l24-jump {
    width: auto;
    max-width: 170px;
  }

  .l24-jump-shell {
    width: 100%;
  }

  .l24-jump input {
    width: 72px;
    flex: 0 0 auto;
  }
}
