:root {
  color-scheme: light;
  --rr-ink: #111827;
  --rr-muted: #5f6878;
  --rr-line: #dfe3e8;
  --rr-soft: #f5f6f7;
  --rr-blue: #0b5cab;
  --rr-blue-soft: #eef6ff;
  --rr-green: #0f7657;
  --rr-green-soft: #eaf8f2;
  --rr-red: #b42318;
  --rr-red-soft: #fff1f0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.rr-page {
  background: #fff;
  color: var(--rr-ink);
  font-family: ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0;
  margin: 0;
}

.rr-page button,
.rr-page input {
  font: inherit;
}

.rr-shell {
  margin-inline: auto;
  max-width: 1180px;
  padding-inline: 24px;
  width: 100%;
}

.rr-button-primary,
.rr-button-secondary {
  align-items: center;
  border-radius: 7px;
  display: inline-flex;
  font-weight: 650;
  justify-content: center;
  min-height: 44px;
  text-decoration: none;
}

.rr-button-primary {
  background: #111;
  border: 1px solid #111;
  color: #fff !important;
}

.rr-intro {
  max-width: 1000px;
  padding-block: 42px 32px;
}

.rr-kicker {
  color: var(--rr-blue);
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 12px;
}

.rr-intro h1 {
  font-size: 40px;
  font-weight: 620;
  line-height: 1.08;
  margin: 0;
  max-width: 820px;
  overflow-wrap: break-word;
}

.rr-lead {
  color: var(--rr-muted);
  font-size: 16px;
  line-height: 1.65;
  margin: 20px 0 0;
  max-width: 940px;
}

.rr-calculator-band {
  border-bottom: 1px solid var(--rr-line);
  padding-block: 32px;
}

.rr-calculator-switch {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.rr-expert-link {
  align-items: center;
  color: var(--rr-ink);
  display: inline-flex;
  font-size: 14px;
  font-weight: 650;
  gap: 7px;
  line-height: 1.4;
  text-decoration: none;
}

.rr-expert-link:hover {
  color: var(--rr-blue);
}

.rr-expert-link svg {
  flex: 0 0 auto;
  transition: transform 160ms ease;
}

.rr-expert-link:hover svg {
  transform: translateX(2px);
}

.rr-calculator {
  border: 1px solid #cfd5dc;
  border-radius: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.94fr);
  overflow: hidden;
}

.rr-form-pane {
  padding: 30px;
}

.rr-pane-heading {
  font-size: 22px;
  font-weight: 650;
  margin: 0;
}

.rr-pane-copy {
  color: var(--rr-muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 7px 0 0;
}

.rr-fieldset {
  border: 0;
  border-top: 1px solid var(--rr-line);
  margin: 25px 0 0;
  padding: 22px 0 0;
}

.rr-fieldset legend {
  color: #343b46;
  font-size: 13px;
  font-weight: 750;
  padding: 0 10px 0 0;
}

.rr-fields {
  display: grid;
  gap: 17px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rr-field {
  min-width: 0;
}

.rr-field label {
  display: block;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  margin-bottom: 7px;
}

.rr-input-wrap {
  align-items: center;
  background: #fff;
  border: 1px solid #bdc5cf;
  border-radius: 6px;
  display: flex;
  min-height: 46px;
  overflow: hidden;
}

.rr-input-wrap:focus-within {
  border-color: var(--rr-blue);
  box-shadow: 0 0 0 3px rgb(11 92 171 / 0.13);
}

.rr-input-wrap input {
  appearance: textfield;
  background: transparent;
  border: 0;
  color: var(--rr-ink);
  min-width: 0;
  outline: 0;
  padding: 11px 4px 11px 13px;
  width: 100%;
}

.rr-input-wrap input::-webkit-inner-spin-button,
.rr-input-wrap input::-webkit-outer-spin-button {
  appearance: none;
  margin: 0;
}

.rr-unit {
  color: var(--rr-muted);
  flex: 0 0 auto;
  font-size: 13px;
  padding: 0 13px 0 8px;
}

.rr-field-help {
  color: var(--rr-muted);
  display: block;
  font-size: 12px;
  line-height: 1.45;
  margin-top: 6px;
}

.rr-form-actions {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-top: 25px;
}

.rr-button-primary,
.rr-button-secondary {
  cursor: pointer;
  padding: 10px 18px;
}

.rr-button-secondary {
  background: #fff;
  border: 1px solid #bdc5cf;
  color: var(--rr-ink);
}

.rr-button-primary:hover {
  background: #323232;
}

.rr-button-secondary:hover {
  background: var(--rr-soft);
}

.rr-local-note {
  align-items: center;
  color: var(--rr-muted);
  display: flex;
  font-size: 12px;
  gap: 7px;
  line-height: 1.5;
  margin: 18px 0 0;
}

.rr-local-note svg {
  color: var(--rr-green);
  flex: 0 0 auto;
  height: 16px;
  width: 16px;
}

#calculator-status {
  height: 1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.rr-results {
  background: #f6f8fa;
  border-left: 1px solid var(--rr-line);
  padding: 30px;
}

.rr-result-lead {
  color: var(--rr-muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 7px 0 20px;
}

.rr-primary-metrics {
  border-bottom: 1px solid #d6dce3;
  border-top: 1px solid #d6dce3;
}

.rr-metric {
  align-items: center;
  border-bottom: 1px solid #dfe3e8;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 66px;
  padding-block: 12px;
}

.rr-metric:last-child {
  border-bottom: 0;
}

.rr-metric-label {
  font-size: 14px;
  font-weight: 620;
  line-height: 1.4;
}

.rr-metric small {
  color: var(--rr-muted);
  display: block;
  font-size: 11px;
  font-weight: 450;
  margin-top: 3px;
}

.rr-metric output {
  color: var(--rr-ink);
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  font-weight: 720;
  min-width: 108px;
  text-align: right;
}

.rr-metric[data-tone="positive"] output {
  color: var(--rr-green);
}

.rr-metric[data-tone="negative"] output {
  color: var(--rr-red);
}

.rr-detail-title {
  font-size: 13px;
  font-weight: 750;
  margin: 24px 0 8px;
}

.rr-detail-list {
  margin: 0;
}

.rr-detail-list div {
  align-items: baseline;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding-block: 7px;
}

.rr-detail-list dt {
  color: var(--rr-muted);
  font-size: 12px;
}

.rr-detail-list dd {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  margin: 0;
  text-align: right;
}

.rr-result-note {
  border-left: 3px solid var(--rr-blue);
  color: #46505e;
  font-size: 12px;
  line-height: 1.55;
  margin: 22px 0 0;
  padding: 2px 0 2px 12px;
}

.rr-result-note a {
  color: var(--rr-blue);
  display: inline-flex;
  font-weight: 650;
  gap: 6px;
  margin-top: 8px;
  text-decoration: none;
}

.rr-result-note a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rr-content-section {
  padding-block: 86px;
}

.rr-content-section.rr-alt {
  background: var(--rr-soft);
  border-bottom: 1px solid var(--rr-line);
  border-top: 1px solid var(--rr-line);
}

.rr-section-head {
  max-width: 750px;
}

.rr-section-label {
  color: var(--rr-blue);
  font-size: 13px;
  font-weight: 750;
  margin: 0 0 10px;
}

.rr-section-head h2,
.rr-example-copy h2,
.rr-cta h2 {
  font-size: 34px;
  font-weight: 650;
  line-height: 1.15;
  margin: 0;
}

.rr-section-head > p:last-child,
.rr-prose p {
  color: var(--rr-muted);
  font-size: 16px;
  line-height: 1.75;
}

.rr-example-copy > p:not(.rr-section-label) {
  color: var(--rr-muted);
  font-size: 14px;
  line-height: 1.7;
}

.rr-formula-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 34px;
  overflow: hidden;
}

.rr-formula {
  background: #fff;
  border: 1px solid var(--rr-line);
  margin: 0 -1px -1px 0;
  padding: 24px;
}

.rr-formula h3 {
  font-size: 17px;
  margin: 0;
}

.rr-formula p {
  color: var(--rr-muted);
  font-size: 14px;
  line-height: 1.65;
  margin: 9px 0 0;
}

.rr-formula code {
  background: var(--rr-blue-soft);
  border-radius: 4px;
  color: #174a79;
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  line-height: 1.55;
  margin-top: 14px;
  overflow-wrap: anywhere;
  padding: 10px;
}

.rr-example-grid {
  align-items: start;
  column-gap: 60px;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  row-gap: 32px;
}

.rr-example-table {
  border-collapse: collapse;
  font-size: 14px;
  width: 100%;
}

.rr-example-table caption {
  font-size: 16px;
  font-weight: 700;
  padding-bottom: 14px;
  text-align: left;
}

.rr-example-table th,
.rr-example-table td {
  border-bottom: 1px solid var(--rr-line);
  padding: 12px 0;
}

.rr-example-table th {
  color: var(--rr-muted);
  font-weight: 500;
  text-align: left;
}

.rr-example-table td {
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  text-align: right;
}

.rr-callout {
  background: var(--rr-green-soft);
  border: 1px solid #a8dccb;
  border-radius: 7px;
  color: #174e3d;
  grid-column: 1 / -1;
  line-height: 1.65;
  padding: 18px;
}

.rr-interpretation-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 38px;
}

.rr-prose {
  border-top: 3px solid #bdc5cf;
  padding-top: 20px;
}

.rr-prose:nth-child(1) {
  border-color: var(--rr-blue);
}

.rr-prose:nth-child(2) {
  border-color: var(--rr-green);
}

.rr-prose:nth-child(3) {
  border-color: #b7791f;
}

.rr-prose h3 {
  font-size: 19px;
  margin: 0;
}

.rr-prose p {
  font-size: 14px;
  margin-bottom: 0;
}

.rr-faq-head {
  align-items: center;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.rr-faq-head h2 {
  font-size: 48px;
  font-weight: 500;
  line-height: 1.2;
  margin: 0;
}

.rr-faq-head p {
  color: rgb(17 24 39 / 0.4);
  font-size: 16px;
  line-height: 1.5;
  margin: 16px 0 0;
  max-width: 512px;
}

.rr-faq {
  margin: 48px auto 0;
  max-width: 672px;
}

.rr-cta-band {
  background: #111827;
  color: #fff;
}

.rr-cta {
  align-items: center;
  display: flex;
  gap: 32px;
  justify-content: space-between;
  padding-block: 58px;
}

.rr-cta p {
  color: rgb(255 255 255 / 0.68);
  line-height: 1.6;
  margin: 10px 0 0;
}

.rr-cta .rr-button-primary {
  background: #fff;
  border-color: #fff;
  color: #111827 !important;
  flex: 0 0 auto;
}

.rr-footer {
  background: #f5f6f7;
  border-top: 1px solid var(--rr-line);
  padding-block: 42px;
}

.rr-footer-inner {
  align-items: flex-start;
  display: flex;
  gap: 40px;
  justify-content: space-between;
}

.rr-footer-brand img {
  height: 32px;
  width: auto;
}

.rr-footer-brand p {
  color: var(--rr-muted);
  font-size: 12px;
  margin: 16px 0 0;
}

.rr-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  justify-content: flex-end;
}

.rr-footer-links a,
.rr-footer-links button {
  background: transparent;
  border: 0;
  color: var(--rr-muted);
  font-size: 13px;
  padding: 0;
  text-decoration: none;
}

.rr-footer-links a:hover,
.rr-footer-links button:hover {
  color: var(--rr-ink);
}

@media (max-width: 980px) {
  .rr-calculator {
    grid-template-columns: 1fr;
  }

  .rr-results {
    border-left: 0;
    border-top: 1px solid var(--rr-line);
  }

  .rr-interpretation-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .rr-shell {
    padding-inline: 16px;
  }

  .rr-intro {
    padding-block: 30px 24px;
  }

  .rr-intro h1 {
    font-size: 32px;
    line-height: 1.12;
  }

  .rr-lead {
    font-size: 16px;
    line-height: 1.65;
  }

  .rr-calculator-band {
    padding-block: 16px;
  }

  .rr-calculator-band .rr-shell {
    padding-inline: 0;
  }

  .rr-calculator {
    border-left: 0;
    border-radius: 0;
    border-right: 0;
  }

  .rr-form-pane,
  .rr-results {
    padding: 24px 16px;
  }

  .rr-fields,
  .rr-formula-grid,
  .rr-example-grid {
    grid-template-columns: 1fr;
  }

  .rr-form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .rr-metric output {
    font-size: 18px;
    min-width: 98px;
  }

  .rr-content-section {
    padding-block: 62px;
  }

  .rr-section-head h2,
  .rr-example-copy h2,
  .rr-cta h2 {
    font-size: 28px;
  }

  .rr-faq-head h2 {
    font-size: 36px;
  }

  .rr-example-grid {
    gap: 32px;
  }

  .rr-cta,
  .rr-footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .rr-footer-links {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
