/* Clever Solar Tools — shared styling for embedded tools.
   Everything is prefixed .cst- so it can't collide with your theme. */

.cst-tool {
  margin: 1.5rem 0;
}

.cst-card {
  box-sizing: border-box;
  max-width: 34rem;
  padding: 1.5rem;
  border: 1px solid #dfe3e8;
  border-radius: 10px;
  background: #fff;
  font-size: 1rem;
  line-height: 1.5;
  color: #1f2933;
}

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

.cst-card__title {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
  line-height: 1.3;
}

.cst-card__intro {
  margin: 0 0 1.25rem;
  color: #5c6b7a;
  font-size: 0.9375rem;
}

.cst-field {
  margin-bottom: 1rem;
}

.cst-field > label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  font-size: 0.9375rem;
}

.cst-hint {
  font-weight: 400;
  color: #7b8794;
}

.cst-input-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cst-card input[type="number"],
.cst-card select {
  width: 100%;
  max-width: 12rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid #cbd2d9;
  border-radius: 6px;
  background: #fff;
  font: inherit;
  color: inherit;
}

.cst-card input[type="number"]:focus,
.cst-card select:focus {
  outline: 2px solid #0b6bcb;
  outline-offset: 1px;
  border-color: #0b6bcb;
}

.cst-unit {
  color: #5c6b7a;
  font-size: 0.9375rem;
}

.cst-result {
  margin-top: 1.5rem;
  padding: 1.1rem 1.25rem;
  border-radius: 8px;
  background: #f4f7fa;
  border: 1px solid #e3e9ef;
}

.cst-result__value {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.15;
  color: #0b4f8a;
}

.cst-result__label {
  margin-top: 0.15rem;
  font-size: 0.9375rem;
  color: #5c6b7a;
}

.cst-result__sub {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #5c6b7a;
}

.cst-notice {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  border-left: 4px solid #c9911a;
  background: #fdf6e3;
  color: #6b4e00;
  font-size: 0.9375rem;
}

@media (max-width: 480px) {
  .cst-card { padding: 1.1rem; }
  .cst-result__value { font-size: 1.6rem; }
}
