.evana-calc,
.evana-calc input,
.evana-calc select,
.evana-calc textarea,
.evana-calc label,
.evana-calc button {
  font-family: inherit;
  font-size: inherit;
}

.evana-calc {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px;
  margin: 16px 0;
  background: #fff;
}

.evana-calc__title {
  margin: 0 0 12px 0;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 700;
}

.evana-calc__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 720px) {
  .evana-calc__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.evana-calc__label {
  display: block;
  font-family: inherit;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.evana-calc__req {
  color: #b91c1c;
}

.evana-calc__input {
  width: 100%;
  padding: 10px 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  box-sizing: border-box;
}

.evana-help { cursor: help; margin-left: .4em; opacity: .7; }
.evana-help:hover { opacity: 1; }

.evana-calc__actions {
  margin-top: 14px;
}

.evana-calc button,
.evana-calc__button {
  font: inherit;           /* sterker dan font-family/font-size */
  letter-spacing: inherit;
  font-weight: 700;
}

.evana-calc__actions {
  margin-top: 14px;
  display: flex;
  justify-content: center;
}

.evana-calc__errors {
  border: 1px solid #fecaca;
  background: #fff1f2;
  color: #7f1d1d;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.evana-calc__result {
  margin-top: 18px;
}

.evana-chart {
  margin-top: 16px;
}

.evana-chart__title {
  margin: 0 0 8px 0;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 700;
}

.evana-chart__canvas-wrap {
  height: 320px; /* Chart.js is responsive; hoogte is belangrijk */
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px;
}

.evana-calc__debug {
  margin-top: 14px;
}

/* Chart title bold */
.evana-chart__title {
  font-weight: 700;
}

/* Help tooltip icon */
.evana-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15em;
  height: 1.15em;
  border-radius: 999px;
  font-size: 0.85em;
  line-height: 1;
  cursor: help;
  opacity: 0.75;
}
.evana-help:hover { opacity: 1; }

/* Sliders */
.evana-range {
  display: flex;
  align-items: center;
  gap: 10px;
}
.evana-range__input {
  flex: 1;
  padding: 0;          /* range wants no padding */
  border: 0;           /* avoid text input border styles */
}
.evana-range__value {
  min-width: 3.5em;
  text-align: right;
  opacity: 0.85;
  font-variant-numeric: tabular-nums;
}

/* Center actions */
.evana-calc__actions {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

.evana-chart__meta {
  margin: -4px 0 8px 0;
  opacity: 0.75;
  font-size: 0.95em;
}

/* X-axis legend */
.evana-x-legend {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 6px 12px;
  font-size: 0.9rem;
  opacity: 0.9;
}

.evana-x-legend__item {
  display: flex;
  gap: 6px;
  align-items: baseline;
}

.evana-x-legend__key {
  font-weight: 600;
  min-width: 3ch;
}

.evana-x-legend__label {
  opacity: 0.85;
}
