/* Scoped to .m35. Layout follows the public calculator widget this replaces.
   Mission35 logo replaces the previous widget badge. */

.m35 {
  --m35-ink: #1c1c1c;
  --m35-muted: #5e6872;
  --m35-line: #d9dde3;
  --m35-panel: #e5f6ea;
  --m35-button: #14643f;
  color: var(--m35-ink);
  color-scheme: light;
  font-family: "Segoe UI", "Liberation Sans", "Nimbus Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
}

.m35 *,
.m35 *::before,
.m35 *::after {
  box-sizing: border-box;
}

.m35 [hidden] {
  display: none !important;
}

.m35-card {
  background: #fff;
  color: var(--m35-ink);
}

.m35-title {
  margin: 0 0 22px;
  color: #161616;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.15;
  text-transform: none;
}

.m35-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.86fr);
  gap: 28px 34px;
  align-items: start;
}

.m35-form {
  margin: 0;
}

.m35-field {
  margin: 0 0 22px;
}

.m35-field label {
  display: block;
  margin: 0 0 8px;
  color: #222;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.m35 input[type="text"] {
  display: block;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #cfd5dc;
  border-radius: 6px;
  background: #fff;
  color: #222;
  font: inherit;
  font-size: 16px;
  box-shadow: none;
}

.m35 input[aria-invalid="true"] {
  border-color: #a12622;
}

.m35-range {
  display: block;
  width: 100%;
  margin: 10px 0 4px;
  accent-color: #7d8b86;
}

.m35-scale {
  display: flex;
  justify-content: space-between;
  color: var(--m35-muted);
  font-size: 13px;
}

.m35-hint,
.m35-error,
.m35-pay-note,
.m35-loan-note,
.m35-next-copy {
  margin: 6px 0 0;
  color: var(--m35-muted);
  font-size: 14px;
  font-weight: 400;
}

.m35-panel {
  background: var(--m35-panel);
  border-radius: 12px;
  padding: 22px 22px 20px;
}

.m35-pay-label {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}

.m35-pay {
  margin: 4px 0 0;
  min-height: 1.1em;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.m35-loan-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  font-size: 16px;
  font-weight: 700;
}

.m35-loan-row strong {
  font-variant-numeric: tabular-nums;
}

.m35-error {
  margin-top: 12px;
  color: #8d1d1a;
  font-weight: 700;
}

.m35-next {
  margin: 22px 0 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
}

.m35-next-copy {
  margin-top: 10px;
  color: #243028;
  font-size: 16px;
}

.m35-button {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--m35-button);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.m35-button:hover {
  background: #0e4e31;
  color: #fff;
}

.m35 a:focus-visible,
.m35 button:focus-visible,
.m35 input:focus-visible {
  outline: 3px solid #14643f;
  outline-offset: 2px;
}

.m35-brand {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.m35-logo {
  display: block;
  width: 168px;
  height: auto;
}

.m35-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 720px) {
  .m35-title {
    font-size: 28px;
  }

  .m35-columns {
    grid-template-columns: 1fr;
  }

  .m35-next {
    font-size: 24px;
  }

  .m35-brand {
    justify-content: center;
  }
}
