/* v12.37 — solar installment article: chart figures, highlighted table rows,
   installment formula, and the progressive 36-month calculator. */

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.solar-installment-guide .guide-hero h1 {
  font-size: clamp(38px, 2.9vw, 50px);
}

.installment-summary-note {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid #e4dfd7;
  color: #173d62 !important;
  font-weight: 700;
}

.installment-figure {
  margin: 28px 0;
}

.installment-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #e4dfd7;
  border-radius: 20px;
  background: #fbf8f1;
  box-shadow: 0 16px 40px rgba(34, 50, 65, .08);
}

.installment-figure figcaption {
  margin-top: 10px;
  color: #647588;
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

.installment-table table {
  min-width: 0;
}

.installment-table td {
  color: #0b2a4d;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.installment-table td:nth-child(2):not(:last-child) {
  color: #5b6d7f;
  font-weight: 500;
}

.installment-table tbody th {
  width: auto;
}

.installment-row-highlight th,
.installment-row-highlight td {
  background: #fbf0dc;
}

.installment-formula {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  padding: 20px 22px;
  border-radius: 18px;
  background: #0b2a4d;
}

.installment-formula span {
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font: 800 15px/1.3 Manrope, Inter, sans-serif;
}

.installment-formula b {
  color: #e3b15f;
  font: 800 22px/1 Manrope, Inter, sans-serif;
}

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

.installment-choice-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Calculator — hidden until its script runs, so the page never shows a dead form. */
.installment-calc {
  margin: 30px 0 36px;
  padding: 26px;
  border: 1px solid #e4dfd7;
  border-radius: 22px;
  background: linear-gradient(135deg, #fffdf8 0%, #f4efe6 100%);
  box-shadow: 0 16px 40px rgba(34, 50, 65, .07);
}

.installment-calc[hidden] {
  display: none;
}

.installment-calc-head h3 {
  margin: 4px 0 6px;
}

.installment-calc-head p:not(.eyebrow) {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

.installment-calc-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 14px;
  margin-top: 18px;
}

.installment-calc label {
  display: grid;
  gap: 6px;
}

.installment-calc label span {
  color: #173d62;
  font: 800 11px/1.2 Manrope, Inter, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.installment-calc select,
.installment-calc input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #cfc7b8;
  border-radius: 12px;
  background: #fff;
  color: #0b2a4d;
  font: 700 15px/1.2 Inter, Arial, sans-serif;
}

.installment-calc select:focus-visible,
.installment-calc input:focus-visible {
  outline: 3px solid rgba(201, 169, 110, .55);
  outline-offset: 1px;
}

.installment-calc-result {
  display: grid;
  grid-template-columns: 1.4fr 1fr .7fr;
  gap: 12px;
  margin: 18px 0 0;
}

.installment-calc-result div {
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e4dfd7;
}

.installment-calc-result div:first-child {
  background: #0b2a4d;
  border-color: #0b2a4d;
}

.installment-calc-result dt {
  color: #647588;
  font: 800 10px/1.2 Manrope, Inter, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.installment-calc-result div:first-child dt {
  color: #e3b15f;
}

.installment-calc-result dd {
  margin: 6px 0 0;
  color: #0b2a4d;
  font: 800 20px/1.15 Manrope, Inter, sans-serif;
  font-variant-numeric: tabular-nums;
}

.installment-calc-result div:first-child dd {
  color: #fff;
  font-size: 26px;
}

.installment-calc-note {
  margin: 12px 0 0;
  font-size: 12px !important;
  line-height: 1.55 !important;
}

@media (max-width: 920px) {
  .installment-include-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .installment-include-grid,
  .installment-choice-grid,
  .installment-calc-grid,
  .installment-calc-result {
    grid-template-columns: 1fr;
  }

  .installment-calc {
    padding: 20px;
  }

  .installment-formula {
    gap: 8px;
    padding: 16px;
  }

  .installment-formula span {
    font-size: 13px;
  }

  .installment-table th,
  .installment-table td {
    padding: 12px;
  }

  /* The phone chart above already shows each setup's brand and size. */
  .installment-package-table th:nth-child(2),
  .installment-package-table td:nth-child(2) {
    display: none;
  }
}

@media print {
  .installment-calc {
    display: none;
  }
}

.installment-figure picture {
  display: block;
}
