/* Калькулятор перевода дроби в десятичное число — дополнение к calcs.css
   Загружать: /wp-content/themes/colormag/my/kalkulyator-drobi-v-desyatichnoe.css
   ============================================================ */

.rc-calc--kalkulyator-drobi-v-desyatichnoe .rc-calc__fraction-row {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.rc-calc--kalkulyator-drobi-v-desyatichnoe .rc-calc__fraction-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 90px;
}

.rc-calc--kalkulyator-drobi-v-desyatichnoe .rc-calc__fraction-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 110px;
}

.rc-calc--kalkulyator-drobi-v-desyatichnoe .rc-calc__fraction-stack .rc-calc__field-input {
  text-align: center;
}

.rc-calc--kalkulyator-drobi-v-desyatichnoe .rc-calc__fraction-bar {
  height: 2px;
  background: #667eea;
  margin: 6px 0;
  border-radius: 2px;
}

.rc-calc--kalkulyator-drobi-v-desyatichnoe .rc-calc__fraction-cap {
  margin-top: 6px;
  font-size: 12px;
  color: #6b7280;
  text-align: center;
  line-height: 1.3;
}

.rc-calc--kalkulyator-drobi-v-desyatichnoe .rc-calc__result-equation {
  font-size: 22px;
  text-align: center;
  margin: 12px 0 16px;
  color: #1f2937;
  font-weight: 600;
}

.rc-calc--kalkulyator-drobi-v-desyatichnoe .rc-calc__frac {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  vertical-align: middle;
  margin: 0 4px;
  line-height: 1.1;
}

.rc-calc--kalkulyator-drobi-v-desyatichnoe .rc-calc__frac-num,
.rc-calc--kalkulyator-drobi-v-desyatichnoe .rc-calc__frac-den {
  padding: 0 6px;
}

.rc-calc--kalkulyator-drobi-v-desyatichnoe .rc-calc__frac-num {
  border-bottom: 2px solid #1f2937;
}

.rc-calc--kalkulyator-drobi-v-desyatichnoe .rc-calc__steps {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed #d1d5db;
}

.rc-calc--kalkulyator-drobi-v-desyatichnoe .rc-calc__steps-title {
  font-weight: 600;
  margin-bottom: 8px;
  color: #1f2937;
}

.rc-calc--kalkulyator-drobi-v-desyatichnoe .rc-calc__steps-body {
  color: #374151;
  line-height: 1.7;
}

.rc-calc--kalkulyator-drobi-v-desyatichnoe .rc-calc__steps-body p {
  margin: 0 0 8px;
}

@media (max-width: 520px) {
  .rc-calc--kalkulyator-drobi-v-desyatichnoe .rc-calc__fraction-row {
    gap: 12px;
  }
  .rc-calc--kalkulyator-drobi-v-desyatichnoe .rc-calc__result-equation {
    font-size: 18px;
  }
}
