@font-face {
  font-family: Roboto;
  src: url('assets/Roboto-Variable.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  font-family: Roboto, Arial, sans-serif;
  color: #333;
  background: #f5f5f5;
  --blue: #004097;
  --line: #e2e2e2;
  --grid: #c7cbd0;
  --purple: #cc99ff;
  --green: #ccffcc;
}
* { box-sizing: border-box; }
body { margin: 0; }
#c_problem_list_025-1792396298672 .e_html-48 button, #c_problem_list_025-1792396298672 .e_html-48 input { font: inherit; }
#c_problem_list_025-1792396298672 .e_html-48 button { cursor: pointer; }
#c_problem_list_025-1792396298672 .e_html-48 h1, #c_problem_list_025-1792396298672 .e_html-48 h2, #c_problem_list_025-1792396298672 .e_html-48 h3, #c_problem_list_025-1792396298672 .e_html-48 p { margin: 0; }
#c_problem_list_025-1792396298672 .e_html-48 a { color: var(--blue); }
[hidden] { display: none !important; }
.container {
  width: 83.3333333333%;
  max-width: 1600px;
  margin: 0 auto;
  /* padding: 61px 0 40px; */
}
#c_problem_list_025-1792396298672 .e_html-48 h1 {
  position: relative;
  left: 12px;
  color: #111;
  font-size: 40px;
  line-height: 47px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 61px;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  color: #000;
  font-size: 20px;
  line-height: 23px;
  font-weight: 700;
}
.section-icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  background: rgb(0 64 151 / 20%);
  border-radius: 4px;
}
.section-icon img { display: block; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 48px;
  row-gap: 29px;
  margin-top: 38px;
}
.field { position: relative; min-width: 0; }
.field label {
  display: block;
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 400;
  line-height: 19px;
}
.input-wrap { position: relative; }
.field input {
  display: block;
  width: 100%;
  height: 50px;
  padding: 0 65px 0 19px;
  border: 1px solid var(--line);
  border-radius: 4px;
  outline: none;
  background: #fff;
  color: #333;
  font-size: 14px;
  line-height: 16px;
  appearance: textfield;
  -moz-appearance: textfield;
}
.field:nth-child(even) input { padding-left: 16px; }
.field input::-webkit-inner-spin-button,
.field input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.field input::placeholder { color: #999; opacity: 1; }
.field input:focus { border-color: var(--blue); box-shadow: 0 0 0 2px rgb(0 64 151 / 10%); }
.field input[aria-invalid=true] { border-color: #b42318; }

/* Distinguish the Wheel, Flat and Gradient inputs without borders. */
.grouped input { border: 0; }
#wheelDiameter, #motorCount { background: #e5effa; }
#flatSpeed, #flatTime { background: #e6f3eb; }
#slopeSpeed, #speedReduction, #slopeTime, #slope { background: #eee7f7; }
.grouped input[aria-invalid=true] { box-shadow: 0 0 0 2px rgb(180 35 24 / 45%); }

.unit {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 14px;
  line-height: 16px;
  color: #999;
}
.field-error { display: block; color: #b42318; font-size: 12px; line-height: 18px; margin-top: 5px; }
.field-error:empty { display: none; }
.grouped:nth-child(odd) { width: calc(100% + 65px); padding-left: 135px; }
.grouped:nth-child(even) { padding-left: 70px; }
.grouped:nth-child(even) .input-wrap { top: -1px; }
.group-label {
  position: absolute;
  left: 2px;
  top: 40px;
  color: var(--blue);
  font-size: 16px;
  line-height: 19px;
  font-weight: 600;
}
.field:nth-child(5) .group-label { color: #31659a; }
.field:nth-child(7) .group-label { left: 0; top: 32px; color: #35704b; }
.field:nth-child(7) .group-label { left: 0; top: 32px; color: #16a34a; }
.field:nth-child(9) .group-label { top: 84px; color: #76529b; }
.field:nth-child(n+9) { top: 1px; }
.field:nth-child(n+13) { left: 2px; }
.actions {
  position: relative;
  left: 31px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  height: 45px;
  margin-top: 51px;
}
.calculate-button {
  width: 176px;
  height: 45px;
  padding: 0 16px 0 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 3px;
  background: var(--blue);
  color: white;
  font-size: 18px;
  line-height: 21px;
}
.calculate-button:hover { background: #00367f; }
.arrow { position: relative; display: block; width: 24px; height: 24px; opacity: .7; }
.arrow img { position: absolute; }
.arrow img:first-child { width: 15.1333px; height: 1.13333px; left: 4.4333px; top: 11.4333px; }
.arrow img:last-child { width: 8.13333px; height: 15.1333px; right: 4.4333px; top: 4.4333px; }
.reset-button {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 156px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #969a9d;
  font-size: 16px;
  line-height: 19px;
  white-space: nowrap;
}
.reset-button:hover { color: var(--blue); }
.reset-icon { position: relative; display: block; width: 24px; height: 24px; flex: none; }
.reset-icon img:first-child { position: absolute; left: 2.56667px; top: 2.56667px; width: 18.8667px; height: 18.8667px; }
.reset-icon img:last-child { position: absolute; left: 2.56667px; top: 2.56667px; width: 5.86667px; height: 5.86667px; }
button:focus-visible, .table-scroll:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; margin-top: 15px;}
.form-status:not(.error), .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.form-status.error { margin-top: 16px; text-align: center; color: #b42318; font-size: 14px; line-height: 20px; }
#results { margin-top: 61px; }
.scenario { margin-top: 50px; }
.scenario:first-child { margin-top: 46px; }
.scenario h3 {
  color: var(--blue);
  font-size: 20px;
  line-height: 23px;
  font-weight: 700;
  margin-bottom: 15px;
}
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 4px; background: white;margin-top: 15px; }
table { width: 100%; min-width: 1000px; table-layout: fixed; border-collapse: separate; border-spacing: 0; text-align: center; }
th {
  height: 67px;
  padding: 0 4px;
  font-size: 18px;
  font-weight: 400;
  line-height: 21px;
  background: #dce0e5;
  border-right: 1px solid var(--grid);
}
th span { display: block; margin-top: 6px; font-size: 16px; line-height: 19px; }
td { height: 76px; padding: 0 4px; font-size: 16px; line-height: 19px; border-top: 1px solid var(--grid); border-right: 1px solid var(--grid); }
tbody tr:last-child td { height: 77px; }
th:last-child, td:last-child { border-right: 0; }
.peak-torque { background: var(--purple); }
.constant-output { background: var(--green); }
.distance-table { width: 731px; max-width: 100%; margin: 22px auto 0; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: #fff; }
.distance-row { display: grid; grid-template-columns: minmax(0, 1fr) 125px 142px; height: 60px; }
.distance-row + .distance-row { border-top: 1px solid var(--grid); }
.distance-row > span, .distance-row > output { display: flex; align-items: center; justify-content: center; padding: 0; font-size: 16px; line-height: 19px; }
.distance-row .distance-label { justify-content: flex-start; padding: 0 20px; white-space: nowrap; }
.distance-row .distance-unit { border-left: 1px solid var(--grid); border-right: 1px solid var(--grid); }
.distance-row output { background: var(--green); }
.distance-table + .scenario { margin-top: 39px; }
.has-results .distance-table + .scenario { margin-top: 49px; }
.legend { margin: 33px 0 0 9px; font-size: 16px; line-height: 19px; }
.legend p { display: flex; align-items: center; gap: 10px; }
.legend p:first-child { margin-left: 1px; }
.legend p + p { margin-top: 15px; }
.swatch { display: inline-block; width: 80px; height: 30px; flex: none; }
.acceleration { background: var(--purple); }
.constant { background: var(--green); }
.warning { background: #fff4e5; border-left: 3px solid #c57912; padding: 14px 18px; font-size: 14px; line-height: 1.6; margin-top: 24px; }
.skip-link { position: fixed; left: 16px; top: 16px; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); z-index: 10; }
.skip-link:focus { width: auto; height: auto; padding: 12px; overflow: visible; clip-path: none; background: #fff; color: var(--blue); }
@media (min-width: 1000px) and (max-width: 1400px) {
  .grouped:nth-child(odd) { padding-left: 100px; width: calc(100% + 40px); }
  .grouped:nth-child(even) { padding-left: 40px; }
}
@media (max-width: 999px) {
  #c_problem_list_025-1792396298672 .e_html-48 h1{
    text-align: center;
    left: 0;
    font-size: 24px;
    line-height: 1.2em;
    margin-bottom: 30px;
  }
  .container { width: 100%;  }
  h1 { left: 0; font-size: 30px; line-height: 38px; margin-bottom: 42px; }
  .form-grid { column-gap: 24px; row-gap: 26px; margin-top: 30px; }
  .grouped:nth-child(odd), .grouped:nth-child(even) { width: auto; padding-left: 0; }
  .grouped:nth-child(even) .input-wrap { top: 0; }
  .group-label, .field:nth-child(7) .group-label, .field:nth-child(9) .group-label { top: -23px; left: 0; font-size: 12px; line-height: 16px; font-weight: 700; }
  .grouped:nth-child(-n+10) { margin-top: 23px; }
  .field:nth-child(n+9) { top: 0; }
  .field:nth-child(n+13) { left: 0; }
  .field input, .field:nth-child(even) input { padding-left: 12px; }
  .unit { right: 12px; }
  .actions { left: 0; margin-top: 35px; }
  #results { margin-top: 45px; }
  .scenario { margin-top: 36px; }
  .scenario:first-child { margin-top: 32px; }
  .distance-table + .scenario, .has-results .distance-table + .scenario { margin-top: 36px; }
  .distance-row { grid-template-columns: minmax(0, 1fr) 60px 95px; min-height: 60px; height: auto; }
  .distance-row .distance-label { white-space: normal; padding: 14px 12px; }
  .distance-row > span, .distance-row > output { font-size: 13px; }
}
@media (max-width: 580px) {
  .container { padding-top: 30px; }
  h1 { font-size: 26px; line-height: 34px; margin-bottom: 32px; }
  .section-title { font-size: 17px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); row-gap: 24px; margin-top: 28px; }
  .field label { font-size: 14px; }
  .grouped:nth-child(even) { margin-top: 0; }
  .actions { gap: 16px; }
  .calculate-button { width: 158px; padding-left: 18px; }
  .reset-button { width: auto; font-size: 14px; }
  .scenario h3 { font-size: 18px; line-height: 23px; }
  .legend { margin-left: 0; font-size: 12px; line-height: 18px; }
  .swatch { width: 55px; height: 24px; }
  .distance-row { grid-template-columns: minmax(0, 1fr) 42px 76px; }
  .distance-row > span, .distance-row > output { font-size: 12px; line-height: 18px; }
}