/* X115 Magazine Calculators */
.x115-calc-box {
  margin: 28px 0;
  padding: 22px;
  border: 1px solid #e3e7eb;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.x115-calc-title {
  margin: 0 0 18px;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
  text-align: center;
}

.x115-calc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.x115-calc-grid.x115-calc-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.x115-calc-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.x115-calc-field label {
  font-weight: 600;
  line-height: 1.3;
}

.x115-calc-field input,
.x115-calc-field select {
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  padding: 9px 11px;
  border: 1px solid #ccd3da;
  border-radius: 8px;
  background: #fff;
  font: inherit;
}

.x115-calc-field input:focus,
.x115-calc-field select:focus {
  outline: 2px solid rgba(64, 158, 255, 0.25);
  border-color: #409eff;
}

.x115-calc-helper {
  margin: -6px 0 4px;
  color: #777;
  font-size: 14px;
}

.x115-calc-results {
  margin-top: 20px;
}

.x115-calc-subtitle {
  margin: 0 0 12px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
}

.x115-calc-result-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-top: 1px solid #edf0f3;
}

.x115-calc-result-row:first-child {
  border-top: 0;
}

.x115-calc-result-row > span:first-child {
  font-weight: 600;
}

.x115-calc-result-row > span:last-child {
  text-align: right;
  white-space: nowrap;
}

.x115-calc-main-result {
  margin-top: 20px;
  padding: 16px;
  border-radius: 10px;
  background: #f7f9fb;
  text-align: center;
}

.x115-calc-main-result span {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
}

.x115-calc-main-result strong {
  display: block;
  font-size: 26px;
  line-height: 1.2;
}

.x115-calc-interpretation {
  margin-top: 14px;
  color: #777;
  font-size: 20px;
  text-align: center;
}

.x115-calc-note {
  margin: 18px 0 0;
  color: #777;
  font-size: 13px;
}

.x115-calc-note strong {
  color: #555;
}

.x115-calc-inline-note {
  margin-top: 8px;
  color: #777;
  font-size: 14px;
}

.x115-calc-warning {
  color: #a15c00;
}

@media (max-width: 760px) {
  .x115-calc-grid,
  .x115-calc-grid.x115-calc-grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .x115-calc-box {
    padding: 18px;
  }

  .x115-calc-result-row {
    display: block;
  }

  .x115-calc-result-row > span {
    display: block;
  }

  .x115-calc-result-row > span:last-child {
    margin-top: 4px;
    text-align: left;
    white-space: normal;
  }
}


.x115-calc-disclaimer {
  margin: 18px 0 0;
  padding-top: 12px;
  border-top: 1px solid #edf0f3;
  color: #777;
  font-size: 12.5px;
  line-height: 1.45;
}

.x115-calc-disclaimer strong {
  color: #555;
}

.x115-calc-result-row > span:last-child {
  white-space: normal;
}


.x115-calc-result-row.x115-calc-long-text {
  display: block;
}

.x115-calc-result-row.x115-calc-long-text > span:first-child {
  display: block;
  margin-bottom: 5px;
}

.x115-calc-result-row.x115-calc-long-text > span:last-child {
  display: block;
  text-align: left;
  white-space: normal;
  line-height: 1.55;
}

.x115-calc-result-row.x115-calc-long-text strong {
  font-weight: 600;
}

.x115-calc-ok {
  color: #247a4a;
}

.x115-calc-result-row.x115-calc-ok strong {
  color: #247a4a;
}


/* Claim readability patch */
.x115-calc-result-row.x115-calc-ok > span:last-child,
.x115-calc-ok {
  color: #1f7a45;
}

.x115-calc-result-row.x115-calc-warning > span:last-child,
.x115-calc-warning {
  color: #9a5a00;
}

.x115-calc-result-row.x115-calc-long-text > span:last-child {
  font-weight: 600;
}

.x115-calc-result-row.x115-calc-long-text.x115-calc-ok > span:last-child {
  color: #1f7a45;
}

.x115-calc-result-row.x115-calc-long-text.x115-calc-warning > span:last-child {
  color: #9a5a00;
}


.x115-calc-note-inside {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #eef0f3;
}


/* Severity colors patch */
.x115-calc-danger {
  color: #b42318;
}

.x115-calc-result-row.x115-calc-danger > span:last-child,
.x115-calc-result-row.x115-calc-long-text.x115-calc-danger > span:last-child {
  color: #b42318;
}

.x115-calc-result-row.x115-calc-danger strong {
  color: #b42318;
}

.x115-calc-interpretation.x115-calc-ok {
  color: #1f7a45;
}

.x115-calc-interpretation.x115-calc-warning {
  color: #9a5a00;
}

.x115-calc-interpretation.x115-calc-danger {
  color: #b42318;
}
