

.workouts_section .faq_panel .card {
  padding: 24px 24px 8px;
}

.workouts_section .faq_panel .card-header h2 .btn {
  white-space: normal;
  text-align: left;
}

.workout_list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.workout_list li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--light-purple);
}

.workout_list li:last-child {
  border-bottom: none;
}

.workout_list .exercise_main {
  flex: 1 1 auto;
  min-width: 0;
}

.workout_list .exercise_name {
  font-weight: 600;
  color: var(--dark-purple);
  display: block;
}

.workout_list .exercise_notes {
  display: block;
  font-size: 13px;
  color: var(--body-text-purple);
  margin-top: 2px;
}

.workout_list .exercise_meta {
  flex: 0 0 auto;
  color: var(--purple);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.workout_list .warmup_badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background: var(--purple);
  padding: 2px 8px;
  border-radius: 999px;
  margin-right: 10px;
  vertical-align: middle;
}

.pace_calc_section .calc_box {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  padding: 32px;
  max-width: 880px;
  margin: 0 auto;
}

.pace_calc_section .calc_row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.pace_calc_section .calc_row label {
  flex: 0 0 120px;
  font-weight: 600;
  color: var(--dark-purple);
  margin: 0;
}

.pace_calc_section .calc_row .control {
  flex: 1 1 auto;
  min-width: 200px;
}

.pace_calc_section .calc_row .value_out {
  flex: 0 0 120px;
  text-align: right;
  font-weight: 700;
  color: var(--purple);
  font-variant-numeric: tabular-nums;
}

.pace_calc_section select.unit_select {
  width: 100%;
  max-width: 240px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid var(--light-bg);
  padding: 0 12px;
  color: var(--dark-purple);
  font-weight: 600;
  background: #fff;
}

.pace_calc_section select.unit_select:focus {
  outline: none;
  border-color: var(--purple);
}

.pace_calc_section input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: var(--light-purple);
  border-radius: 999px;
  outline: none;
  margin: 0;
}

.pace_calc_section input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--purple);
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

.pace_calc_section input[type=range]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--purple);
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

.pace_calc_section input[type=range]::-ms-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--purple);
  border: 3px solid #fff;
  cursor: pointer;
}

.pace_calc_section input[type=range]::-moz-range-track {
  height: 6px;
  background: var(--light-purple);
  border-radius: 999px;
}

.distance_presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -8px 0 22px 136px; 
}

.distance_presets .preset_chip {
  background: var(--light-purple);
  color: var(--dark-purple);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.distance_presets .preset_chip:hover,
.distance_presets .preset_chip:focus {
  background: var(--purple);
  color: #fff;
  outline: none;
}

.distance_presets .preset_chip:active {
  transform: translateY(1px);
}

.pace_results {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.pace_box {
  background: var(--light-purple);
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
}

.pace_box .pace_label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--body-text-purple);
  margin-bottom: 6px;
}

.pace_box .pace_value {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: var(--dark-purple);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 767px) {
  .pace_results {
    grid-template-columns: repeat(2, 1fr);
  }
  .pace_calc_section .calc_row label,
  .pace_calc_section .calc_row .value_out {
    flex: 1 1 100%;
    text-align: left;
  }
  .pace_calc_section .calc_row .value_out {
    text-align: right;
  }
  .distance_presets {
    margin-left: 0;
  }
}

.pace_table_section .table_wrap {
  max-width: 1200px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  padding: 8px;
  max-height: 620px;
  overflow: auto;
}

.pace_table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  min-width: 900px; 
}

.pace_table thead th {
  position: sticky;
  background: var(--dark-purple);
  color: #fff;
  font-weight: 600;
  padding: 10px 8px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.pace_table thead tr:first-child th {
  top: 0;
}

.pace_table thead tr:nth-child(2) th {
  top: 36px; 
  font-size: 11px;
  padding: 6px 8px;
}

.pace_table tbody td {
  padding: 8px 8px;
  text-align: center;
  border-bottom: 1px solid var(--light-purple);
  color: var(--body-text-purple);
}

.pace_table tbody td.mph_cell {
  font-weight: 700;
  color: var(--dark-purple);
}

.pace_table tbody td.pace_cell {
  font-weight: 600;
  color: var(--dark-purple);
  border-right: 2px solid var(--light-purple);
}

.pace_table tbody tr:nth-child(even) td {
  background: var(--light-purple);
}

.pace_table tbody tr.is-current td {
  background: var(--purple);
  color: #fff;
  font-weight: 700;
}

.pace_table tbody tr.is-current td.mph_cell,
.pace_table tbody tr.is-current td.pace_cell {
  color: #fff;
}
