/* Cost To Insulate — "Is Insulation Worth It?" shortcode calculator
   Styles for the [cti_worth_calculator] shortcode. Extracted VERBATIM
   from standalone-page/calculator.html (the tested Custom HTML block) —
   do not edit here only; edit the source block and re-extract, or edit
   both and re-run tests/worth-shortcode.test.js, which fails if the
   shipped assets drift from the tested block. All classes carry the
   cti-worth- prefix: no overlap with the attic panel's cti-payback-. */

/* Tokens per ~/workspace/design-system/PORTFOLIO-DESIGN.md — same as the
   attic payback panel: white card, hairline border, 22px radius, Inter,
   ink #1D1D1F, secondary #6E6E73, one accent (site warm amber). */
.cti-worth {
  --cti-worth-accent: #b45309;
  --cti-worth-ink: #1d1d1f;
  --cti-worth-sub: #6e6e73;
  --cti-worth-line: #d2d2d7;
  --cti-worth-panel: #f5f5f7;
  background: #fff;
  border: 1px solid var(--cti-worth-line);
  border-radius: 22px;
  padding: 24px 28px;
  margin: 24px 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.011em;
  color: var(--cti-worth-ink);
}
.cti-worth-title { font-size: 24px; line-height: 1.25; margin: 0 0 16px; }
.cti-worth-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
  margin: 0 0 20px;
}
.cti-worth-fields label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
}
.cti-worth-fields .cti-worth-hint { font-weight: 400; color: var(--cti-worth-sub); }
.cti-worth-fields input,
.cti-worth-fields select {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--cti-worth-line);
  border-radius: 10px;
  font: inherit;
  font-weight: 400;
  background: #fff;
  color: var(--cti-worth-ink);
  width: 100%;
  box-sizing: border-box;
}
.cti-worth-btn {
  min-height: 44px;
  padding: 10px 26px;
  border: none;
  border-radius: 999px;
  background: var(--cti-worth-accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.cti-worth-result { margin-top: 24px; }
.cti-worth-big { font-size: 20px; margin: 0 0 8px; }
.cti-worth-big strong, .cti-worth-line strong { color: var(--cti-worth-accent); }
.cti-worth-line { margin: 0 0 8px; }
.cti-worth-lede { margin: 0 0 8px; }
.cti-worth-note, .cti-worth-assumptions {
  color: var(--cti-worth-sub);
  font-size: 15px;
  margin: 8px 0 0;
}
.cti-worth-example, .cti-worth-seal {
  background: var(--cti-worth-panel);
  border-radius: 16px;
  padding: 16px 20px;
  margin: 16px 0 0;
}
.cti-worth-example p { margin: 0 0 8px; }
.cti-worth-example p:last-child { margin-bottom: 0; }
.cti-worth-tablewrap { overflow-x: auto; margin: 16px 0 0; }
.cti-worth-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--cti-worth-line);
  border-radius: 16px;
  overflow: hidden;
  font-size: 16px;
}
.cti-worth-table th, .cti-worth-table td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--cti-worth-line);
}
.cti-worth-table thead th { background: var(--cti-worth-panel); }
.cti-worth-table tbody tr:last-child td { border-bottom: none; }
.cti-worth-table tr.cti-worth-target td { font-weight: 600; }
.cti-worth-link { color: var(--cti-worth-accent); font-weight: 600; }
@media (max-width: 640px) {
  .cti-worth { padding: 20px; }
  .cti-worth-fields { grid-template-columns: 1fr; }
}
