/* ===== Lesson Tables ===== */

:root {
  --tbl-header-bg: #1F2A44;
  --tbl-header-color: #ffffff;
  --tbl-border: #E2E8F0;
  --tbl-header-border: rgba(255, 255, 255, 0.15);
  --tbl-stripe-bg: #F0F9FB;
  --tbl-hover-bg: #ECFEFF;
  --tbl-accent: #0E7490;
  --tbl-negative-color: #DC2626;
  --tbl-radius: 10px;
}

/* Wrapper gives the table its rounded corners + shadow (border-radius on <table> itself doesn't clip cells) */
.lesson_table_wrap {
  display: inline-block;
  border-radius: var(--tbl-radius);
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(31, 42, 68, 0.12);
  border: 1px solid var(--tbl-border);
}

.lesson_table {
  border-collapse: collapse;
  background: #ffffff;
}

.lesson_table th {
  background: var(--tbl-header-bg);
  color: var(--tbl-header-color);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 10px 22px;
  text-align: center;
  border-right: 1px solid var(--tbl-header-border);
}

.lesson_table td {
  padding: 9px 22px;
  text-align: center;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  border-bottom: 1px solid var(--tbl-border);
  border-right: 1px solid var(--tbl-border);
  color: #1e293b;
}

.lesson_table th:last-child,
.lesson_table td:last-child {
  border-right: none;
}

.lesson_table tbody tr:nth-child(even) {
  background: var(--tbl-stripe-bg);
}

.lesson_table tbody tr:hover {
  background: var(--tbl-hover-bg);
}

.lesson_table tbody tr:last-child td {
  border-bottom: none;
}

/* Highlight a standout value (e.g. the negative number in the "new pattern" table) */
.lesson_table_negative {
  color: var(--tbl-negative-color);
  font-weight: 700;
}

/* Container for showing several small tables side by side */
.lesson_table_group {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 14px;
}

.lesson_table_group_item {
  text-align: center;
}

.lesson_table_group_label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--tbl-accent);
}

/* ---------- Mobile adaptation ---------- */
@media (max-width: 480px) {
  .lesson_table th,
  .lesson_table td {
    padding: 7px 14px;
    font-size: 0.9rem;
  }
}